public:
HRESULT LZCompressBuffer(
ID3D11Buffer *pDstBuffer,
UINT DstOffsetBytes,
ID3D11Buffer *pSrcBuffer,
UINT SrcOffsetBytes,
UINT SrcSizeBytes,
UINT CopyFlags
)
pDstBuffer
Type: ID3D11Buffer *
[in] The destination buffer, as a pointer to an ID3D11Buffer instance.
DstOffsetBytes
Type: UINT
[in] The 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] The source offset, in bytes.
SrcSizeBytes
Type: UINT
[in] The number of bytes to process.
CopyFlags
Type: UINT
[in] Flags to control the compressing. Reserved for future use; must be zero.
Type: HRESULT
S_OK if successful; otherwise, an error code.
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.
Header: Declared in d3d11_x.h (d3d11_1.h on other Windows platforms).
Library: Use d3d11_x.lib (d3d11.lib on other Windows platforms).