Begins recording of a batch of resources to be used with SetResourcesFromBatch.
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; 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 SetFastResourcesFromBatch. To add resources to the batch, call SetFastResourcesIntoBatch.
A batch is limited to 4096 bytes of data; if that amount is exceeded, EndResourceBatch will fail.
Header: Declared in d3d11_x.h.
Library: Use d3d11_x.lib.
Optimizing Monolithic Driver Performance