D3D11_FORMAT_SUPPORT Enumeration

Which resources are supported for a given format and given device (see ID3D11Device::CheckFormatSupport and ID3D11Device::CheckFeatureSupport).

Syntax

typedef enum D3D11_FORMAT_SUPPORT
{
    D3D11_FORMAT_SUPPORT_BUFFER = 0x1,
    D3D11_FORMAT_SUPPORT_IA_VERTEX_BUFFER = 0x2,
    D3D11_FORMAT_SUPPORT_IA_INDEX_BUFFER = 0x4,
    D3D11_FORMAT_SUPPORT_SO_BUFFER = 0x8,
    D3D11_FORMAT_SUPPORT_TEXTURE1D = 0x10,
    D3D11_FORMAT_SUPPORT_TEXTURE2D = 0x20,
    D3D11_FORMAT_SUPPORT_TEXTURE3D = 0x40,
    D3D11_FORMAT_SUPPORT_TEXTURECUBE = 0x80,
    D3D11_FORMAT_SUPPORT_SHADER_LOAD = 0x100,
    D3D11_FORMAT_SUPPORT_SHADER_SAMPLE = 0x200,
    D3D11_FORMAT_SUPPORT_SHADER_SAMPLE_COMPARISON = 0x400,
    D3D11_FORMAT_SUPPORT_SHADER_SAMPLE_MONO_TEXT = 0x800,
    D3D11_FORMAT_SUPPORT_MIP = 0x1000,
    D3D11_FORMAT_SUPPORT_MIP_AUTOGEN = 0x2000,
    D3D11_FORMAT_SUPPORT_RENDER_TARGET = 0x4000,
    D3D11_FORMAT_SUPPORT_BLENDABLE = 0x8000,
    D3D11_FORMAT_SUPPORT_DEPTH_STENCIL = 0x10000,
    D3D11_FORMAT_SUPPORT_CPU_LOCKABLE = 0x20000,
    D3D11_FORMAT_SUPPORT_MULTISAMPLE_RESOLVE = 0x40000,
    D3D11_FORMAT_SUPPORT_DISPLAY = 0x80000,
    D3D11_FORMAT_SUPPORT_CAST_WITHIN_BIT_LAYOUT = 0x100000,
    D3D11_FORMAT_SUPPORT_MULTISAMPLE_RENDERTARGET = 0x200000,
    D3D11_FORMAT_SUPPORT_MULTISAMPLE_LOAD = 0x400000,
    D3D11_FORMAT_SUPPORT_SHADER_GATHER = 0x800000,
    D3D11_FORMAT_SUPPORT_BACK_BUFFER_CAST = 0x1000000,
    D3D11_FORMAT_SUPPORT_TYPED_UNORDERED_ACCESS_VIEW = 0x2000000,
    D3D11_FORMAT_SUPPORT_SHADER_GATHER_COMPARISON = 0x4000000,
    D3D11_FORMAT_SUPPORT_DECODER_OUTPUT = 0x8000000,
    D3D11_FORMAT_SUPPORT_VIDEO_PROCESSOR_OUTPUT = 0x10000000,
    D3D11_FORMAT_SUPPORT_VIDEO_PROCESSOR_INPUT = 0x20000000,
    D3D11_FORMAT_SUPPORT_VIDEO_ENCODER = 0x40000000
} D3D11_FORMAT_SUPPORT;  

Constants

Constant Description
D3D11_FORMAT_SUPPORT_BUFFERBuffer resources supported.
D3D11_FORMAT_SUPPORT_IA_VERTEX_BUFFERVertex buffers supported.
D3D11_FORMAT_SUPPORT_IA_INDEX_BUFFERIndex buffers supported.
D3D11_FORMAT_SUPPORT_SO_BUFFERStreaming output buffers supported.
D3D11_FORMAT_SUPPORT_TEXTURE1D1D texture resources supported.
D3D11_FORMAT_SUPPORT_TEXTURE2D2D texture resources supported.
D3D11_FORMAT_SUPPORT_TEXTURE3D3D texture resources supported.
D3D11_FORMAT_SUPPORT_TEXTURECUBECube texture resources supported.
D3D11_FORMAT_SUPPORT_SHADER_LOADThe HLSL Load method for texture objects is supported.
D3D11_FORMAT_SUPPORT_SHADER_SAMPLEThe HLSL Sample method for texture objects is supported.
Note
If the device supports the format as a resource (1D, 2D, 3D, or cube map) but doesn't support this option, the resource can still use the Sample method but must use only the point filtering sampler state to perform the sample.
D3D11_FORMAT_SUPPORT_SHADER_SAMPLE_COMPARISONThe HLSL SampleCmp and SampleCmpLevelZero methods for texture objects are supported.
D3D11_FORMAT_SUPPORT_SHADER_SAMPLE_MONO_TEXTReserved.
D3D11_FORMAT_SUPPORT_MIPMipmaps are supported.
D3D11_FORMAT_SUPPORT_MIP_AUTOGENAutomatic generation of mipmaps is supported.
D3D11_FORMAT_SUPPORT_RENDER_TARGETRendertargets are supported.
D3D11_FORMAT_SUPPORT_BLENDABLEBlend operations supported.
D3D11_FORMAT_SUPPORT_DEPTH_STENCILDepth stencils supported.
D3D11_FORMAT_SUPPORT_CPU_LOCKABLECPU locking supported.
D3D11_FORMAT_SUPPORT_MULTISAMPLE_RESOLVEMultisample antialiasing (MSAA) resolve operations are supported. For more info, see ID3D11DeviceContex::ResolveSubresource.
D3D11_FORMAT_SUPPORT_DISPLAYFormat can be displayed on screen.
D3D11_FORMAT_SUPPORT_CAST_WITHIN_BIT_LAYOUTFormat cannot be cast to another format.
D3D11_FORMAT_SUPPORT_MULTISAMPLE_RENDERTARGETFormat can be used as a multisampled rendertarget.
D3D11_FORMAT_SUPPORT_MULTISAMPLE_LOADFormat can be used as a multisampled texture and read into a shader with the HLSL load function.
D3D11_FORMAT_SUPPORT_SHADER_GATHERFormat can be used with the HLSL gather function. This value is available in DirectX 10.1 or higher.
D3D11_FORMAT_SUPPORT_BACK_BUFFER_CASTFormat supports casting when the resource is a back buffer.
D3D11_FORMAT_SUPPORT_TYPED_UNORDERED_ACCESS_VIEWFormat can be used for an unordered access view.
D3D11_FORMAT_SUPPORT_SHADER_GATHER_COMPARISONFormat can be used with the HLSL gather with comparison function.
D3D11_FORMAT_SUPPORT_DECODER_OUTPUT Format can be used with the decoder output.

Direct 3D 11

Note
This value is not supported until Direct3D 11.1.
D3D11_FORMAT_SUPPORT_VIDEO_PROCESSOR_OUTPUT Format can be used with the video processor output.

Direct 3D 11

Note
This value is not supported until Direct3D 11.1.
D3D11_FORMAT_SUPPORT_VIDEO_PROCESSOR_INPUT Format can be used with the video processor input.

Direct 3D 11

Note
This value is not supported until Direct3D 11.1.
D3D11_FORMAT_SUPPORT_VIDEO_ENCODER Format can be used with the video encoder.

Direct 3D 11

Note
This value is not supported until Direct3D 11.1.

Requirements

Header: Declared in d3d11_x.h (d3d11.h on other Windows platforms).