ID3D11DeviceContextX::SetResourceCompressionX Method

Updates the compression status of a resource that is specified using a D3D11X_DESCRIPTOR_RESOURCE structure.

Syntax

public:
void SetResourceCompressionX(
         const D3D11X_DESCRIPTOR_RESOURCE *pResource,
         UINT Compression
)  

Parameters

pResource
Type: D3D11X_DESCRIPTOR_RESOURCE *

[in] The resource, as a pointer to a D3D11X_DESCRIPTOR_RESOURCE structure.

Compression
Type: UINT 

[in] The resource compression status, as a bitwise-OR’d combination of D3D11X_RESOURCE_COMPRESSION enumeration constants.

Return value

None.

Remarks

Since the runtime does not track successive decompression operations to subregions of a resource that end up collectively decompressing the entire resource, SetResourceCompressionX may be used to explicitly update the compression status of the resource to reflect such aggregate changes. Calling SetResourceCompressionX 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.

Requirements

Header: Declared in d3d11_x.h.

Library: Use d3d11_x.lib.

See also

Reference

ID3D11DeviceContextX Interface

ID3D11DeviceContextX Members