ID3D11DmaEngineContextX::LZDecompressBuffer Method

Decompresses a buffer.

Syntax

public:
HRESULT LZDecompressBuffer(
         ID3D11Buffer *pDstBuffer,
         UINT DstOffsetBytes,
         ID3D11Buffer *pSrcBuffer,
         UINT SrcOffsetBytes,
         UINT SrcSizeBytes,
         UINT CopyFlags
)  

Parameters

pDstBuffer
Type: ID3D11Buffer *

[in] The destination buffer, as a pointer to an ID3D11Buffer instance.

DstOffsetBytes
Type: UINT 

[in] Destination offset in bytes.

pSrcBuffer
Type: ID3D11Buffer *

[in] The source buffer, as a pointer to an ID3D11Buffer instance. The maximum size of the memory pointed to by this parameter is 4MB.

SrcOffsetBytes
Type: UINT 

[in] Source offset in bytes.

SrcSizeBytes
Type: UINT 

[in] Source size in bytes.

CopyFlags
Type: UINT 

[in] Flags to control the decompressing. Reserved for future use; must be zero.

Return value

Type: HRESULT 

S_OK if successful; otherwise, an error code. D3D11X_DMA_LZ_ERROR enumeration constants can be returned from the DMA Engine through ID3D11DmaEngineContextX::CopyLastErrorCodeToBuffer or ID3D11DmaEngineContextX::CopyLastErrorCodeToMemory.

Remarks

The source and destination addresses must be 4-byte aligned. In this method, the source address is the buffer start address pSrcBuffer plus the offset SrcOffsetBytes, and the destination address is the buffer start address pDstBuffer plus the offset DstOffsetBytes.

Requirements

Header: Declared in d3d11_x.h (d3d11_1.h on other Windows platforms).

Library: Use d3d11_x.lib (d3d11.lib on other Windows platforms).

See also

Reference

ID3D11DmaEngineContextX Interface

ID3D11DmaEngineContextX Members