Updates the compression status of a resource that is specified using ID3D11Resource.
public:
void SetResourceCompression(
ID3D11Resource *pResource,
UINT Compression
)
pResource
Type: ID3D11Resource *
[in] The resource, as a pointer to ID3D11Resource.
Compression
Type: UINT
[in] The resource compression status, as a bitwise-OR’d combination of D3D11X_RESOURCE_COMPRESSION enumeration constants.
Since the runtime does not track successive decompression operations to subregions of a resource that end up collectively decompressing the entire resource, SetResourceCompression may be used to explicitly update the compression status of the resource to reflect such aggregate changes. Calling SetResourceCompression may be necessary to prevent validation from flagging a resource on bind for read as requiring decompression, when the relevant regions to be read have already been sufficiently decompressed through multiple API calls.
Header: Declared in d3d11_x.h.
Library: Use d3d11_x.lib.