Concludes recording a batch of resources.
public:
UINT EndResourceBatch(
UINT *pSizeNeeded
)
pSizeNeeded
Type: UINTÂ *
[out] 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 BeginResourceBatch is exceeded.
Type: UINTÂ
Returns the resultant number of bytes in the batch. Will be zero if the buffer size specified at BeginResourceBatch is exceeded, or if the maximum size of 4096 bytes is exceeded.
Call EndResourceBatch at the conclusion of recording a batch of resources. BeginResourceBatch must be called before EndResourceBatch.
The resulting batch can be copied around memory as needed using the returned size. SetFastResourcesFromBatch 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