D3D12_DESCRIPTOR_HEAP_FLAGS Enumeration

In this article

Syntax

Constants

D3D12_DESCRIPTOR_HEAP_FLAG_NONE

Indicates default usage of a heap.

D3D12_DESCRIPTOR_HEAP_FLAG_SHADER_VISIBLE

The flag D3D12_DESCRIPTOR_HEAP_FLAG_SHADER_VISIBLE can optionally be set on a descriptor heap to indicate it is be bound on a command list for reference by shaders. Descriptor heaps created without this flag allow applications the option to stage descriptors in CPU memory before copying them to a shader visible descriptor heap, as a convenience. But it is also fine for applications to directly create descriptors into shader visible descriptor heaps with no requirement to stage anything on the CPU.

This flag only applies to CBV, SRV, UAV and samplers. It does not apply to other descriptor heap types since shaders do not directly reference the other types.