ID3D11ComputeContextX::EndResourceBatch Method

Concludes recording a batch of resources.

Syntax

public:
UINT EndResourceBatch(
         UINT *pSizeNeeded
)  

Parameters

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.

Return value

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.

Remarks

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.

Requirements

Header: Declared in d3d11_x.h.

Library: Use d3d11_x.lib.

See also

Reference

Optimizing Monolithic Driver Performance

ID3D11ComputeContextX Interface

ID3D11ComputeContextX Members