UpdateSubresources (stack-allocating) function
Updates subresources with a stack-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*
The command list, as a pointer to an ID3D12GraphicsCommandList.
-
pDestinationResource [in]
-
Type: ID3D12Resource*
The destination resource, as a pointer to an ID3D12Resource.
-
pIntermediate [in]
-
Type: ID3D12Resource*
The intermediate resource, as a pointer to an ID3D12Resource.
-
IntermediateOffset
-
Type: UINT64
The offset, in bytes, to the intermediate resource.
-
FirstSubresource [in]
-
Type: UINT
The index of the first subresource in the resource. Valid values range from 0 to MaxSubresources.
-
NumSubresources [in]
-
Type: UINT
The number of subresources in the resource. Valid values range from 1 to (MaxSubresources - 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.
Remarks
The declaration of this function begins with: template <UINT MaxSubresources>
Requirements
Requirement | Value |
---|---|
Header |
|
Library |
|
DLL |
|