ID3D11DeviceContextX::EndResourceBatch Method

Concludes recording a batch of resources.

Syntax

public:
UINT EndResourceBatch(
         UINT *pSizeNeeded
)  

Parameters

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.

Return value

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.

Remarks

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.

Requirements

Header: Declared in d3d11_x.h.

Library: Use d3d11_x.lib.

See also

Optimizing Monolithic Driver Performance

Reference

ID3D11DeviceContextX Interface

ID3D11DeviceContextX Members