3 #include "util/string.h" 4 #include "gpu_resource.h" 42 D3D12_RESOURCE_DESC
DescribeTex2D(UINT width, UINT height, UINT depth_or_array_size, UINT num_mips, DXGI_FORMAT format, UINT flags);
D3D12_RESOURCE_DESC DescribeTex2D(UINT width, UINT height, UINT depth_or_array_size, UINT num_mips, DXGI_FORMAT format, UINT flags)
Generates a D3D12_RESOURCE_DESC for Texture2D resources.
Definition: pixel_buffer.cc:18
const UINT & GetWidth() const
Definition: pixel_buffer.h:23
UINT width_
The width of the pixel buffer in texels.
Definition: pixel_buffer.h:77
void AssociateWithResource(const WString &name, ID3D12Resource *resource, const D3D12_RESOURCE_STATES ¤t_resource_state)
Associates this PixelBuffer with a pre-existing resource (useful for stuff like SwapChain buffers) ...
Definition: pixel_buffer.cc:42
Wraps ID3D12Resource objects.
Definition: gpu_resource.h:19
UINT height_
The height of the pixel buffer in texels.
Definition: pixel_buffer.h:78
static DXGI_FORMAT GetUAVFormat(DXGI_FORMAT format)
Definition: pixel_buffer.cc:132
static DXGI_FORMAT GetBaseFormat(DXGI_FORMAT format)
Definition: pixel_buffer.cc:84
Wrapper for pixel-type resources.
Definition: pixel_buffer.h:16
PixelBuffer()
Constructs a PixelBuffer resource.
Definition: pixel_buffer.cc:9
eastl::wstring WString
Typedef for wrapping the EASTL wstring.
Definition: string.h:20
const DXGI_FORMAT & GetFormat() const
Definition: pixel_buffer.h:29
DXGI_FORMAT format_
The format of the resource itself.
Definition: pixel_buffer.h:80
void CreateTextureResource(const WString &name, const D3D12_RESOURCE_DESC &resource_desc, const D3D12_CLEAR_VALUE &clear_value)
Creates a new texture resource for this PixelBuffer.
Definition: pixel_buffer.cc:64
The main Blowbox namespace.
Definition: image.cc:8
const UINT & GetHeight() const
Definition: pixel_buffer.h:26
static DXGI_FORMAT GetDSVFormat(DXGI_FORMAT format)
Definition: pixel_buffer.cc:177
static DXGI_FORMAT GetStencilFormat(DXGI_FORMAT format)
Definition: pixel_buffer.cc:249
static DXGI_FORMAT GetDepthFormat(DXGI_FORMAT format)
Definition: pixel_buffer.cc:213
UINT array_size_
The array size of the pixel buffer.
Definition: pixel_buffer.h:79