Sign in Feedback

DirectX 11 Structures

D3D11_BUFFER_DESC

Describes a buffer resource.

Details
typedef struct D3D11_BUFFER_DESC {
    UINT ByteWidth;
    D3D11_USAGE Usage;
    UINT BindFlags;
    UINT CPUAccessFlags;
    UINT MiscFlags;
    UINT StructureByteStride;
} D3D11_BUFFER_DESC;

D3D11_SHADER_RESOURCE_VIEW_DESC

Describes a shader resource view.

Details
typedef struct D3D11_SHADER_RESOURCE_VIEW_DESC {
    DXGI_FORMAT Format;
    D3D11_SRV_DIMENSION ViewDimension;
    UINT NumElements;
    // ... other members
} D3D11_SHADER_RESOURCE_VIEW_DESC;

D3D11_DEPTH_STENCIL_DESC

Describes a depth-stencil state.

Details
typedef struct D3D11_DEPTH_STENCIL_DESC {
    BOOL DepthEnable;
    D3D11_DEPTH_WRITE_MASK DepthWriteMask;
    D3D11_COMPARISON_FUNC DepthFunc;
    // ... stencil buffer settings
} D3D11_DEPTH_STENCIL_DESC;

D3D11_RENDER_TARGET_BLEND_DESC

Describes a render-target blend.

Details
typedef struct D3D11_RENDER_TARGET_BLEND_DESC {
    BOOL BlendEnable;
    D3D11_BLEND SrcBlend;
    D3D11_BLEND DestBlend;
    D3D11_BLEND_OP BlendOp;
    // ... alpha blend settings
} D3D11_RENDER_TARGET_BLEND_DESC;

D3D11_INPUT_ELEMENT_DESC

Describes an input-stream data element.

Details
typedef struct D3D11_INPUT_ELEMENT_DESC {
    LPCSTR SemanticName;
    UINT SemanticIndex;
    DXGI_FORMAT Format;
    UINT InputSlot;
    // ... etc.
} D3D11_INPUT_ELEMENT_DESC;

D3D11_VIEWPORT

Specifies the viewport transform.

Details
typedef struct D3D11_VIEWPORT {
    FLOAT TopLeftX;
    FLOAT TopLeftY;
    FLOAT Width;
    FLOAT Height;
    FLOAT MinDepth;
    FLOAT MaxDepth;
} D3D11_VIEWPORT;

D3D11_UNORDERED_ACCESS_VIEW_DESC

Describes an unordered-access view.

Details
typedef struct D3D11_UNORDERED_ACCESS_VIEW_DESC {
    DXGI_FORMAT Format;
    D3D11_UAV_DIMENSION ViewDimension;
    // ... other members
} D3D11_UNORDERED_ACCESS_VIEW_DESC;