Skip to content

Advanced Samples

This section contains advanced samples that demonstrate how to efficiently manage memory and descriptors.

# Walkthrough Topic
1 Dynamic descriptors ResourceDescriptorHeap of shader model 6.6
2 Defragmentation Compacting GPU memory at runtime
3 Resource aliasing Transient images sharing memory

The samples in the repository build on each other: each one starts from the basic rendering sample and adds one technique. These walkthroughs follow that structure and describe only what each sample changes, so start with basic rendering and then pick whatever you need.

Running the samples

All samples share the same controls:

Key Action
F7 Toggle V-Sync
F8 Toggle full screen
F9 Switch to the Vulkan backend
F10 Switch to the DirectX 12 backend
Esc Exit the application

F11 and F12 are deliberately unused, as debuggers such as Visual Studio, RenderDoc and PIX reserve them.

To build the samples, configure the engine with LITEFX_BUILD_EXAMPLES enabled, which is the default. The executables and their shaders and assets are placed in the binaries directory of your build.