CommandListCast function
This function template casts a constant pointer to any command list into a const pointer to an ID3D12CommandList.
This cast is useful for passing strongly-typed command list pointers into ExecuteCommandLists.
Syntax
ID3D12CommandList * const * inline CommandListCast(
t_CommandListType * const * pp
);
Parameters
-
pp
-
Type: t_CommandListType * const *
The strongly-typed command list to cast.
The template argument t_CommandListType specifies any strongly-typed command list object.
Return value
Type: ID3D12CommandList * const *
The strongly-typed command list, reinterpreted as an ID3D12CommandList.
Remarks
CommandListCast performs a reinterpret_cast. The cast is valid as long as the const-ness of the command list is respected.
The CommandListCast function is defined as the following:
template <typename t_CommandListType>
inline ID3D12CommandList * const * CommandListCast(t_CommandListType * const * pp)
{
return reinterpret_cast<ID3D12CommandList * const *>(pp);
}
Requirements
Requirement | Value |
---|---|
Header |
|
Library |
|
DLL |
|
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for