3 #include "pixel_buffer.h" 41 void Create(
const WString& name, UINT width, UINT height, DXGI_FORMAT format);
void CreateFromSwapChain(const WString &name, ID3D12Resource *swap_chain_resource, float clear_color[4])
Creates a ColorBuffer from a SwapChain buffer.
Definition: color_buffer.cc:25
D3D12_CLEAR_VALUE clear_value_
The clear value for this ColorBuffer.
Definition: color_buffer.h:70
const float * GetClearColor() const
Definition: color_buffer.h:53
UINT uav_id_
The UAV for this ColorBuffer.
Definition: color_buffer.h:68
Buffer-type for buffers with color data in them.
Definition: color_buffer.h:14
const UINT & GetRTV() const
Definition: color_buffer.h:47
void CreateDerivedViews(DXGI_FORMAT format)
Creates all the descriptors (views) for this ColorBuffer.
Definition: color_buffer.cc:65
Wrapper for pixel-type resources.
Definition: pixel_buffer.h:16
eastl::wstring WString
Typedef for wrapping the EASTL wstring.
Definition: string.h:20
UINT rtv_id_
The RTV for this ColorBuffer.
Definition: color_buffer.h:67
UINT srv_id_
The SRV for this ColorBuffer.
Definition: color_buffer.h:66
void Create(const WString &name, UINT width, UINT height, DXGI_FORMAT format)
Creates a new ColorBuffer.
Definition: color_buffer.cc:40
const UINT & GetUAV() const
Definition: color_buffer.h:50
const UINT & GetSRV() const
Definition: color_buffer.h:44
The main Blowbox namespace.
Definition: image.cc:8
const D3D12_CLEAR_VALUE & GetClearValue() const
Definition: color_buffer.h:56
float clear_color_[4]
The clear color for this ColorBuffer.
Definition: color_buffer.h:69
ColorBuffer()
Constructs a ColorBuffer.
Definition: color_buffer.cc:10