Nui Engine
A game engine framework
Loading...
Searching...
No Matches
Nui::Graphics::RenderTarget2D Struct Reference

Represents a 2D render target. More...

#include <RenderTarget2D.h>

Static Public Member Functions

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.
 

Public Attributes

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.
 

Detailed Description

Represents a 2D render target.

Member Function Documentation

◆ 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
deviceDX11 device
widthThe width of the render target
heightThe height of the render target
formatThe format of the render target
numMipLevelsThe number of mip levels
multiSamplesThe number of multisamples
msQualityThe multisample quality
autoGenMipMapsWhether or not the render target automatically generates mipmaps
arraySizeThe array slice size
Returns
The render target 2D

The documentation for this struct was generated from the following files: