D3D11_UNORDERED_ACCESS_VIEW_DESC Structure

Specifies the subresources from a resource that are accessible using an unordered-access view.

Syntax

typedef struct D3D11_UNORDERED_ACCESS_VIEW_DESC {
    DXGI_FORMAT Format;
    D3D11_UAV_DIMENSION ViewDimension;
    union {
        D3D11_BUFFER_UAV Buffer;
        D3D11_TEX1D_UAV Texture1D;
        D3D11_TEX1D_ARRAY_UAV Texture1DArray;
        D3D11_TEX2D_UAV Texture2D;
        D3D11_TEX2D_ARRAY_UAV Texture2DArray;
        D3D11_TEX3D_UAV Texture3D;
    };
} D3D11_UNORDERED_ACCESS_VIEW_DESC;  

Members

Format
The data format (see DXGI_FORMAT).

ViewDimension
The resource type (see D3D11_UAV_DIMENSION), which specifies how the resource will be accessed.

Buffer
Specifies which buffer elements can be accessed (see D3D11_BUFFER_UAV).

Texture1D
Specifies the subresources in a 1D texture that can be accessed (see D3D11_BUFFER_UAV).

Texture1DArray
Specifies the subresources in a 1D texture array that can be accessed (see D3D11_TEX1D_ARRAY_UAV).

Texture2D
Specifies the subresources in a 2D texture that can be accessed (see D3D11_TEX2D_UAV).

Texture2DArray
Specifies the subresources in a 2D texture array that can be accessed (see D3D11_TEX2D_ARRAY_UAV).

Texture3D
Specifies the subresources in a 2D texture array that can be accessed (see D3D11_TEX2D_ARRAY_UAV).

Remarks

An unordered-access-view description is passed into ID3D11Device::CreateUnorderedAccessView to create a view.

This structure is also used by D3D11XInitializeResourceViewDesc.

Requirements

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