MSDN Documentation

DirectX Graphics Structures

This section details the structures used in DirectX for graphics programming.

Common Structures

Shader Structures

Rasterizer Structures

Sampler Structures

Example Usage

Here's a brief example of how a structure might be defined and used:

// Defining a vertex structure
    struct Vertex
    {
        float x, y, z;
        float r, g, b;
    };

    // Creating an input element description for the vertex structure
    D3D11_INPUT_ELEMENT_DESC layout[] =
    {
        { "POSITION", 0, DXGI_FORMAT_R32G32B32_FLOAT, 0, 0, D3D11_INPUT_PER_VERTEX_DATA, 0 },
        { "COLOR",    0, DXGI_FORMAT_R32G32B32_FLOAT, 0, 12, D3D11_INPUT_PER_VERTEX_DATA, 0 }
    };

    // ... later used to create the input layout for the graphics pipeline