ID3D11DmaEngineContextX::CopyLastErrorCodeToMemory Method

Copies the last error code to memory.

Syntax

public:
void CopyLastErrorCodeToMemory(
         void *pAddress
)  

Parameters

pAddress
Type: void *

[in] The memory location at which to write the error code. The content at that memory location will be one member of either the D3D11X_DMA_JPEG_ERROR_FLAGS enumeration or the D3D11X_DMA_LZ_ERROR enumeration.

Return value

None.

Example

The following example calls CopyLastErrorCodeToMemory.

C++

void* pErrorCodeBuffer = VirtualAlloc( NULL, 64 * 1024, MEM_GRAPHICS | MEM_LARGE_PAGES | MEM_RESERVE | MEM_COMMIT, PAGE_READWRITE | PAGE_GPU_COHERENT );
pDmaEngineContext->JPEGDecode( ... );
pDmaEngineContext->CopyLastErrorCodeToMemory( pErrorCodeBuffer );
pDmaEngineContext->LZDecode( ... );
pDmaEngineContext->CopyLastErrorCodeToMemory( (void*)( (UINT32*)pErrorCodeBuffer + 1 ) );
pDmaEngineContext->Submit();  

Requirements

Header: Declared in d3d11_x.h.

Library: Use d3d11_x.lib.

See also

Reference

ID3D11DmaEngineContextX Interface

ID3D11DmaEngineContextX Members