Begins recording of a batch of resources to be used with SetResourcesFromBatch_Debug.
public:
void BeginResourceBatch(
void *pBuffer,
UINT BufferSize
)
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.
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.
Header: Declared in d3d11_x.h.
Library: Use d3d11_x.lib.
Optimizing Monolithic Driver Performance