ID3D12GraphicsCommandList::SetResourceCompressionStateX Method

Sets the compression state of a resource.

Syntax

public:
void SetResourceCompressionStateX(
         ID3D12Resource *pResource,
         D3D12XBOX_COMPRESSION_STATE_FLAGS CompressionStateFlags,
         D3D12_RESOURCE_STATES PreserveFlags
)  

Parameters

pResource
Type: ID3D12Resource *

[in, out] The resource, as a pointer to ID3D12Resource.

CompressionStateFlags
Type: D3D12XBOX_COMPRESSION_STATE_FLAGS 

Flags that specify the compression state.

PreserveFlags
Type: D3D12_RESOURCE_STATES 

Flags that specify the resource states to be preserved.

Return value

None.

Requirements

Header: Declared in d3d12_x.h.

Library: Use d3d12_x.lib.

See also

Reference

ID3D12GraphicsCommandList Interface

ID3D12GraphicsCommandList Members