CD3D11_RENDER_TARGET_VIEW_DESC::CD3D11_RENDER_TARGET_VIEW_DESC(D3D11_RTV_DIMENSION,DXGI_FORMAT,UINT,UINT,UINT) function (d3d11.h)
Instantiates a new instance of a CD3D11_RENDER_TARGET_VIEW_DESC structure that is initialized with D3D11_RENDER_TARGET_VIEW_DESC values.
Syntax
void CD3D11_RENDER_TARGET_VIEW_DESC(
D3D11_RTV_DIMENSION viewDimension,
DXGI_FORMAT format,
UINT mipSlice,
UINT firstArraySlice,
UINT arraySize
);
Parameters
viewDimension
Type: D3D11_RTV_DIMENSION
A D3D11_RTV_DIMENSION-typed value that specifies the resource type of the view.
format
Type: DXGI_FORMAT
A DXGI_FORMAT-typed value that specifies the viewing format.
mipSlice
Type: UINT
The index of the mipmap level to use mip slice. FirstElement for D3D11_BUFFER_SRV.
firstArraySlice
Type: UINT
The index of the first element to use in an array of elements.
NumElements for D3D11_BUFFER_SRV. FirstWSlice for D3D11_TEX3D_RTV.
arraySize
Type: UINT
Number of elements in the array. WSize for D3D11_TEX3D_RTV.
Return value
None
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 7 [desktop apps | UWP apps] |
Minimum supported server | Windows Server 2008 R2 [desktop apps | UWP apps] |
Target Platform | Windows |
Header | d3d11.h |
Library | D3D11.lib |
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