D3D11X_BUFFER_VIEW_FLAG Enumeration

Flags to control a buffer view.

Syntax

typedef enum D3D11X_BUFFER_VIEW_FLAG
{
    D3D11X_BUFFER_VIEW_RAW,
    D3D11X_BUFFER_VIEW_ADD_THREAD_ID,
    D3D11X_BUFFER_VIEW_CACHE_SWIZZLE,
    D3D11X_BUFFER_VIEW_ENABLE_SWIZZLE,
    D3D11X_BUFFER_VIEW_ENABLE_HASH,
    D3D11X_BUFFER_VIEW_ENABLE_HEAP
} D3D11X_BUFFER_VIEW_FLAG;  

Constants

Constant Description
D3D11X_BUFFER_VIEW_RAW Raw.
D3D11X_BUFFER_VIEW_ADD_THREAD_ID Add thread ID.
D3D11X_BUFFER_VIEW_CACHE_SWIZZLE Cache swizzle.
D3D11X_BUFFER_VIEW_ENABLE_SWIZZLE Enable AOS to SOA swizzle.
D3D11X_BUFFER_VIEW_ENABLE_HASH Enable hash.
D3D11X_BUFFER_VIEW_ENABLE_HEAP Enable heap.

Remarks

This enumeration is used by the D3D11X_BUFFER_VIEW structure.

Buffers support per-channel swizzle, AOS to SOA swizzle, and L1-friendly cache swizzle. Per-channel swizzle is always used by the GPU and is set by D3D11X_RESOURCE_VIEW_DESC::Swizzle. D3D11X_RESOURCE_VIEW_DESC::Swizzle needs to always be set to a valid value, regardless of what D3D11X_BUFFER_VIEW_ENABLE_SWIZZLE and D3D11X_BUFFER_VIEW_CACHE_SWIZZLE are set to.

Requirements

Header: Declared in d3d11_x.h.