D3D11X_UPDATE_VIEW Enumeration

Flags for updating a view.

Syntax

typedef enum D3D11X_UPDATE_VIEW
{
    D3D11X_UPDATE_VIEW_SET_ADDRESS = 0x8000,
    D3D11X_UPDATE_VIEW_SET_STRIDE = 0x4000,
    D3D11X_UPDATE_VIEW_SET_ELEMENTS = 0x2000,
    D3D11X_UPDATE_VIEW_SET_MEMORY_TYPE = 0x1000,
    D3D11X_UPDATE_VIEW_OFFSET_ADDRESS_STRIDE = 0x0100,
    D3D11X_UPDATE_VIEW_TYPE_BUFFER = 0x0040
} D3D11X_UPDATE_VIEW;  

Constants

Constant Description
D3D11X_UPDATE_VIEW_SET_ADDRESS Set address.
D3D11X_UPDATE_VIEW_SET_STRIDE Set the stride. Cannot be used for texture shader resource and unordered access views.
D3D11X_UPDATE_VIEW_SET_ELEMENTS Set the elements. Cannot be used for texture shader resource and unordered access views. When D3D11X_UPDATE_VIEW_SET_ELEMENTS is used to update the size of a raw byte address buffer, the NumElements given to D3D11XUpdateDescriptorView should be set to the size of the buffer in bytes, and not the size in DWORDs. (DWORDs are the units of NumElements and ElementWidth in the view Compose… and Create… APIs.) NumElements therefore specifies the size of the buffer in bytes for vertex buffers and byte address buffers. It specifies the size of the buffer in elements (size in bytes / stride in bytes) for structured buffers (stride of the structure), for typed buffers (stride of the data format), and for constant buffers (stride of 16).
D3D11X_UPDATE_VIEW_SET_MEMORY_TYPE Set the memory type.
D3D11X_UPDATE_VIEW_OFFSET_ADDRESS_STRIDE Offset address stride. This flag may only be used if neither D3D11X_UPDATE_VIEW_SET_ADDRESS nor D3D11X_UPDATE_VIEW_SET_STRIDE has been included.
D3D11X_UPDATE_VIEW_TYPE_BUFFER Type buffer.

Remarks

These are UINT values.

Descriptor update functions allow for rapid incremental modifications without the need for full recomposition.

When a D3D11X_UPDATE_VIEW flag is not included, the corresponding parameter (or AddressAndStride sub-parameter) in D3D11XUpdateDescriptorView must be set to 0.

Requirements

Header: Declared in d3d11_x.h.