D3D12_DESCRIPTOR_HEAP_FLAGS Enumeration

Specifies options for a heap.

Syntax

typedef enum D3D12_DESCRIPTOR_HEAP_FLAGS {
  D3D12_DESCRIPTOR_HEAP_FLAG_NONE,
  D3D12_DESCRIPTOR_HEAP_FLAG_SHADER_VISIBLE
} ;

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.

Remarks

This enum is used by the D3D12_DESCRIPTOR_HEAP_DESC structure.

Requirements

   
Header d3d12.h

See Also

Core Enumerations

Creating Descriptor Heaps

Descriptor Heaps