ID3D11DmaEngineContextX::LZCompressMemory Method

Compresses memory to LZ format.

Syntax

public:
HRESULT LZCompressMemory(
         void *pDstAddress,
         void *pSrcAddress,
         UINT SrcSizeBytes,
         UINT CopyFlags
)  

Parameters

pDstAddress
Type: void *

[in] The destination address. Must be in graphics memory. Must be 4-byte aligned.

pSrcAddress
Type: void *

[in] The source address. Must be in graphics memory. The maximum size of the memory pointed to by this parameter is 4MB. Must be 4-byte aligned.

SrcSizeBytes
Type: UINT 

[in] The source size in bytes.

CopyFlags
Type: UINT 

[in] Flags reserved for future use; must be zero.

Return value

Type: HRESULT 

S_OK if successful; otherwise, an error code.

Remarks

The memory manager reserves the virtual address range up to 1TB for graphics memory.

Requirements

Header: Declared in d3d11_x.h.

Library: Use d3d11_x.lib.

See also

Reference

ID3D11DmaEngineContextX Interface

ID3D11DmaEngineContextX Members