Copies the last error code to memory.
public:
void CopyLastErrorCodeToMemory(
void *pAddress
)
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.
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();
Header: Declared in d3d11_x.h.
Library: Use d3d11_x.lib.