Concludes recording a batch of resources.
public:
UINT EndResourceBatch(
UINT *pSizeNeeded
)
pSizeNeeded
Type: UINTÂ *
[out, optional] Optional pointer to where the resultant size of the batch should be written. This value will be correct even if the buffer size specified at ID3D11ComputeContextX::BeginResourceBatch is exceeded.
Type: UINTÂ
Returns the resultant number of bytes in the batch. Will be zero if the buffer size specified at ID3D11ComputeContextX::BeginResourceBatch is exceeded, or if the maximum size of 4096 bytes is exceeded.
Call EndResourceBatch at the conclusion of recording a batch of resources. ID3D11ComputeContextX::BeginResourceBatch must be called before EndResourceBatch.
The resulting batch can be copied around memory as needed using the returned size. ID3D11ComputeContextX::SetFastResourcesFromBatch_Debug requires that the buffer alignment be a multiple of 16.
Header: Declared in d3d11_x.h.
Library: Use d3d11_x.lib.
Optimizing Monolithic Driver Performance