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

Represents a depth stencil buffer. More...

#include <DepthStencilBuffer.h>

Static Public Member Functions

static DepthStencilBuffer Create (ID3D11Device1 *device, U32 width, U32 height, DXGI_FORMAT format=DXGI_FORMAT_D24_UNORM_S8_UINT, bool useAsShaderResource=false, U32 multiSamples=1, U32 msQuality=0, U32 arraySize=1)
 Creates a depth stencil buffer.
 

Public Attributes

ComPtr< ID3D11Texture2D > Texture
 The depth stencil texture.
 
ComPtr< ID3D11DepthStencilView > DSView
 The depth stencil view.
 
ComPtr< ID3D11DepthStencilView > ReadOnlyDSView
 The read only depth stencil view.
 
ComPtr< ID3D11ShaderResourceView > SRView
 The shader resource view.
 
U32 Width
 The width of the depth stencil buffer.
 
U32 Height
 The height of the depth stencil buffer.
 
U32 MultiSamples
 The number of multisamples.
 
U32 MSQuality
 The multisample quality of the depth stencil buffer.
 
DXGI_FORMAT Format
 The format of the depth stencil buffer.
 
U32 ArraySize
 The number of array slices.
 
std::vector< ComPtr< ID3D11DepthStencilView > > ArraySlices
 The array slices.
 

Detailed Description

Represents a depth stencil buffer.

Member Function Documentation

◆ Create()

DepthStencilBuffer Nui::Graphics::DepthStencilBuffer::Create ( ID3D11Device1 * device,
U32 width,
U32 height,
DXGI_FORMAT format = DXGI_FORMAT_D24_UNORM_S8_UINT,
bool useAsShaderResource = false,
U32 multiSamples = 1,
U32 msQuality = 0,
U32 arraySize = 1 )
static

Creates a depth stencil buffer.

Parameters
deviceDX11 device
widthThe width of the depth stencil buffer
heightThe height of the depth stencil buffer
formatThe format of the depth stencil buffer
useAsShaderResourceWhether or not to use the depth stencil buffer as a shader resource
multiSamplesThe number of multisamples
msQualityThe multisample quality
arraySizeThe number of array slices
Returns
The depth stencil buffer

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