UpdateSubresources (heap-allocating) function
Updates subresources with a heap-allocating implementation.
Syntax
UINT64 inline UpdateSubresources(
_In_ ID3D12GraphicsCommandList *pCmdList,
_In_ ID3D12Resource *pDestinationResource,
_In_ ID3D12Resource *pIntermediate,
UINT64 IntermediateOffset,
_In_ UINT FirstSubresource,
_In_ UINT NumSubresources,
_In_ D3D12_SUBRESOURCE_DATA *pSrcData
);
Parameters
-
pCmdList [in]
-
Type: ID3D12GraphicsCommandList*
A pointer to the ID3D12GraphicsCommandList interface for the command list.
-
pDestinationResource [in]
-
Type: ID3D12Resource*
A pointer to the ID3D12Resource interface that represents the destination resource.
-
pIntermediate [in]
-
Type: ID3D12Resource*
A pointer to the ID3D12Resource interface that represents the intermediate resource.
-
IntermediateOffset
-
Type: UINT64
The offset, in bytes, to the intermediate resource.
-
FirstSubresource [in]
-
Type: UINT
The index of the first subresource in the resource. The range of valid values is 0 to D3D12_REQ_SUBRESOURCES.
-
NumSubresources [in]
-
Type: UINT
The number of subresources in the resource. The range of valid values is 0 to (D3D12_REQ_SUBRESOURCES - FirstSubresource).
-
pSrcData [in]
-
Type: D3D12_SUBRESOURCE_DATA*
Pointer to an array (of length NumSubresources) of pointers to D3D12_SUBRESOURCE_DATA structures containing descriptions of the subresource data used for the update.
Return value
Type: UINT64
The size, in bytes, of the buffer.
Requirements
Requirement | Value |
---|---|
Header |
|
Library |
|
DLL |
|