typedef struct D3D11X_RESOURCE_VIEW_DESC {
UINT Flags;
union {
UINT64 AddressOffset;
void *pAddressBase;
};
D3D11X_FORMAT Format;
D3D11X_SWIZZLE Swizzle[4];
UINT MemoryType;
D3D11X_VIEW_DIMENSION ViewDimension;
union {
D3D11X_BUFFER_VIEW Buffer;
D3D11X_TEX1D_VIEW Texture1D;
D3D11X_TEX1D_ARRAY_VIEW Texture1DArray;
D3D11X_TEX2D_VIEW Texture2D;
D3D11X_TEX2D_ARRAY_VIEW Texture2DArray;
D3D11X_TEX2DMS_VIEW Texture2DMS;
D3D11X_TEX2DMS_ARRAY_VIEW Texture2DMSArray;
D3D11X_TEX3D_VIEW Texture3D;
D3D11X_TEXCUBE_VIEW TextureCube;
D3D11X_TEXCUBE_ARRAY_VIEW TextureCubeArray;
};
} D3D11X_RESOURCE_VIEW_DESC;
Flags
Flags that control the resource view description, as a D3D11X_RESOURCE_VIEW_FLAG enumeration constant.
AddressOffset
The address offset.
pAddressBase
The base address.
Format
The format, as a D3D11X_FORMAT structure.
Swizzle
An array of D3D11X_SWIZZLE enumeration constants.
MemoryType
The type of memory. Reserved; use zero.
ViewDimension
The view dimension, as a D3D11X_VIEW_DIMENSION enumeration constant.
Buffer
A D3D11X_BUFFER_VIEW structure.
Texture1D
A D3D11X_TEX1D_VIEW structure.
Texture1DArray
A D3D11X_TEX1D_ARRAY_VIEW structure.
Texture2D
A D3D11X_TEX2D_VIEW structure.
Texture2DArray
A D3D11X_TEX2D_ARRAY_VIEW structure.
Texture2DMS
A D3D11X_TEX2DMS_VIEW structure.
Texture2DMSArray
A D3D11X_TEX2DMS_ARRAY_VIEW structure.
Texture3D
A D3D11X_TEX3D_VIEW structure.
TextureCube
A D3D11X_TEXCUBE_VIEW structure.
TextureCubeArray
A D3D11X_TEXCUBE_ARRAY_VIEW structure.
This structure is used by the following:
Header: Declared in d3d11_x.h.