Represents a 2D render target.
More...
#include <RenderTarget2D.h>
|
static RenderTarget2D | Create (ID3D11Device1 *device, U32 width, U32 height, DXGI_FORMAT format, U32 numMipLevels=1, U32 multiSamples=1, U32 msQuality=0, bool autoGenMipMaps=false, U32 arraySize=1) |
| Creates a render target.
|
|
|
ComPtr< ID3D11Texture2D > | Texture |
| The texture of the render target.
|
|
ComPtr< ID3D11RenderTargetView > | RTView |
| The render target view.
|
|
ComPtr< ID3D11ShaderResourceView > | SRView |
| The shader resource view for the render target.
|
|
U32 | Width |
| The width of the render target.
|
|
U32 | Height |
| The height of the render target.
|
|
U32 | NumMipLevels |
| The number of mip levels of the render target.
|
|
U32 | MultiSamples |
| The number of multisamples of the render target.
|
|
U32 | MSQuality |
| The multisample quality of the render target.
|
|
DXGI_FORMAT | Format |
| The format of the render target.
|
|
bool | AutoGenMipMaps |
| Whether or not the render target automatically generates mipmaps.
|
|
U32 | ArraySize |
| The array slice size of the render target.
|
|
std::vector< ComPtr< ID3D11RenderTargetView > > | RTVArraySlices |
| The array slices of the render target.
|
|
std::vector< ComPtr< ID3D11ShaderResourceView > > | SRVArraySlices |
| The SRV array slices of the render target.
|
|
Represents a 2D render target.
◆ Create()
RenderTarget2D Nui::Graphics::RenderTarget2D::Create |
( |
ID3D11Device1 * | device, |
|
|
U32 | width, |
|
|
U32 | height, |
|
|
DXGI_FORMAT | format, |
|
|
U32 | numMipLevels = 1, |
|
|
U32 | multiSamples = 1, |
|
|
U32 | msQuality = 0, |
|
|
bool | autoGenMipMaps = false, |
|
|
U32 | arraySize = 1 ) |
|
static |
Creates a render target.
- Parameters
-
device | DX11 device |
width | The width of the render target |
height | The height of the render target |
format | The format of the render target |
numMipLevels | The number of mip levels |
multiSamples | The number of multisamples |
msQuality | The multisample quality |
autoGenMipMaps | Whether or not the render target automatically generates mipmaps |
arraySize | The array slice size |
- Returns
- The render target 2D
The documentation for this struct was generated from the following files: