ID3D11ComputeContextX::BeginResourceBatch Method

Begins recording of a batch of resources to be used with SetResourcesFromBatch_Debug.

Syntax

public:
void BeginResourceBatch(
         void *pBuffer,
         UINT BufferSize
)  

Parameters

pBuffer
Type: void *

[out] Pointer to where the resource batch will be recorded.

BufferSize
Type: UINT 

[in] Size of the buffer in bytes. Can be set to zero; ID3D11ComputeContextX::EndResourceBatch can return the size of buffer needed for the recording.

Return value

None.

Remarks

BeginResourceBatch is used to begin recording of a batch of resources to be with ID3D11ComputeContextX::SetFastResourcesFromBatch_Debug.

A batch is limited to 4096 bytes of data; if that amount is exceeded, ID3D11ComputeContextX::EndResourceBatch will fail.

Requirements

Header: Declared in d3d11_x.h.

Library: Use d3d11_x.lib.

See also

Optimizing Monolithic Driver Performance

Reference

ID3D11ComputeContextX Interface

ID3D11ComputeContextX Members