3 #include "pixel_buffer.h" 22 DepthBuffer(
float depth_clear = 1.0f, UINT stencil_clear = 0);
31 void Create(
const eastl::wstring& name, UINT width, UINT height, DXGI_FORMAT format);
const UINT & GetDSV() const
Definition: depth_buffer.h:34
DepthBuffer(float depth_clear=1.0f, UINT stencil_clear=0)
Constructs a DepthBuffer with a preset depth and stencil clear value.
Definition: depth_buffer.cc:10
Wrapper for DepthBuffer-like resources.
Definition: depth_buffer.h:14
UINT dsv_depth_read_id_
The Depth Stencil View for this DepthBuffer with depth read only.
Definition: depth_buffer.h:63
UINT dsv_id_
The base Depth Stencil View for this DepthBuffer.
Definition: depth_buffer.h:62
const UINT & GetDSVReadOnly() const
Definition: depth_buffer.h:43
const UINT & GetStencilClearValue() const
Definition: depth_buffer.h:52
UINT dsv_read_id_
The Depth Stencil View for this DepthBuffer which is completely read only.
Definition: depth_buffer.h:65
UINT dsv_stencil_read_id_
The Depth Stencil View for this DepthBuffer with stencil read only.
Definition: depth_buffer.h:64
void Create(const eastl::wstring &name, UINT width, UINT height, DXGI_FORMAT format)
Creates the actual DepthBuffer.
Definition: depth_buffer.cc:24
const UINT & GetDSVDepthReadOnly() const
Definition: depth_buffer.h:37
Wrapper for pixel-type resources.
Definition: pixel_buffer.h:16
const UINT & GetDSVStencilReadOnly() const
Definition: depth_buffer.h:40
UINT srv_stencil_id_
The Shader Resource View for this DepthBuffer for the stencil part.
Definition: depth_buffer.h:67
float depth_clear_
The depth clear value.
Definition: depth_buffer.h:69
void CreateDerivedViews(DXGI_FORMAT format)
Creates all the resource descriptors (views) for this resource.
Definition: depth_buffer.cc:43
The main Blowbox namespace.
Definition: image.cc:8
UINT stencil_clear_
The stencil clear value.
Definition: depth_buffer.h:68
const float & GetDepthClearValue() const
Definition: depth_buffer.h:55
const UINT & GetDepthSRV() const
Definition: depth_buffer.h:46
UINT srv_depth_id_
The Shader Resource View for this DepthBuffer for the depth part.
Definition: depth_buffer.h:66
const UINT & GetStencilSRV() const
Definition: depth_buffer.h:49