D3D12_RESOURCE_FLAGS Enumeration

Identifies options for resources. This enumeration has the same enumeration constants as [D3D12RESOURCE_FLAGS](https://msdn.microsoft.com/en-us/library/dn986742(v=vs.85).aspx) for PC, and also has the following D3D12XBOX Xbox extension enumeration constants.

Syntax

typedef enum D3D12_RESOURCE_FLAGS
{
    D3D12XBOX_RESOURCE_FLAG_PREFER_INDEX_BUFFER = 0x10000,
    D3D12XBOX_RESOURCE_FLAG_ALLOW_INDIRECT_BUFFER = 0x20000,
    D3D12XBOX_RESOURCE_FLAG_PREFER_INDIRECT_BUFFER = D3D12XBOX_RESOURCE_FLAG_ALLOW_INDIRECT_BUFFER,
    D3D12XBOX_RESOURCE_FLAG_PREFER_PREDICATION_BUFFER = 0x40000,
    D3D12XBOX_RESOURCE_FLAG_PREFER_STREAM_OUTPUT = 0x80000,
    D3D12XBOX_RESOURCE_FLAG_DENY_COMPRESSION_DATA = 0x300000,
    D3D12XBOX_RESOURCE_FLAG_DENY_COLOR_COMPRESSION_DATA = 0x100000,
    D3D12XBOX_RESOURCE_FLAG_DENY_DEPTH_COMPRESSION_DATA = 0x100000,
    D3D12XBOX_RESOURCE_FLAG_DENY_STENCIL_COMPRESSION_DATA = 0x200000,
    D3D12XBOX_RESOURCE_FLAG_ALLOW_DCC = 0x400000,
    D3D12XBOX_RESOURCE_FLAG_FORCE_TEXTURE_COMPATIBILITY = 0x800000
} D3D12_RESOURCE_FLAGS;  

Constants

Constant Description
D3D12XBOX_RESOURCE_FLAG_PREFER_INDEX_BUFFER Marks the resource as preferring to be an index buffer.
D3D12XBOX_RESOURCE_FLAG_ALLOW_INDIRECT_BUFFER Allows the resource to be an indirect buffer.
D3D12XBOX_RESOURCE_FLAG_PREFER_INDIRECT_BUFFER Marks the resource as preferring to be an indirect buffer.
D3D12XBOX_RESOURCE_FLAG_PREFER_PREDICATION_BUFFER Marks the resource as preferring to be a predication buffer.
D3D12XBOX_RESOURCE_FLAG_PREFER_STREAM_OUTPUT Marks the resource as preferring to be used for stream output (SO).
D3D12XBOX_RESOURCE_FLAG_DENY_COMPRESSION_DATA Denies the resource the ability to use compression data.
D3D12XBOX_RESOURCE_FLAG_DENY_COLOR_COMPRESSION_DATA Denies the resource the ability to use color compression data.
D3D12XBOX_RESOURCE_FLAG_DENY_DEPTH_COMPRESSION_DATA Denies the resource the ability to use depth compression data.
D3D12XBOX_RESOURCE_FLAG_DENY_STENCIL_COMPRESSION_DATA Denies the resource the ability to use stencil compression data.
D3D12XBOX_RESOURCE_FLAG_ALLOW_DCC Enables Delta Color Compression (DCC) on supported color rendertarget resources; Xbox One X only.
D3D12XBOX_RESOURCE_FLAG_FORCE_TEXTURE_COMPATIBILITY Enables texture sampling of compatible compressed resources including supported color rendertarget resources and depth target resources; Xbox One X only.

Remarks

This enumeration is used by the D3D12_RESOURCE_DESC structure.

D3D12XBOX_RESOURCE_FLAG_ALLOW_INDIRECT_BUFFER and D3D12XBOX_RESOURCE_FLAG_PREFER_INDIRECT_BUFFER both require that the resource memory be allocated as GPU executable. This can be achieved with VirtualAlloc and PAGE_GPU_EXECUTE or with XMemAlloc and XALLOC_MEMTYPE_GRAPHICS_COMMAND_BUFFER_WRITECOMBINE or XALLOC_MEMTYPE_GRAPHICS_COMMAND_BUFFER_CACHEABLE.

Requirements

Header: Declared in d3d12_x.h.