Compresses memory to LZ format.
public:
HRESULT LZCompressMemory(
void *pDstAddress,
void *pSrcAddress,
UINT SrcSizeBytes,
UINT CopyFlags
)
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.
Type: HRESULT
S_OK if successful; otherwise, an error code.
The memory manager reserves the virtual address range up to 1TB for graphics memory.
Header: Declared in d3d11_x.h.
Library: Use d3d11_x.lib.