Blowbox 2017
A 3D Game Engine by Riko Ophorst using DirectX 12
typed_buffer.h
1 #pragma once
2 
3 #include "gpu_buffer.h"
4 
5 namespace blowbox
6 {
13  class TypedBuffer : public GpuBuffer
14  {
15  public:
17  TypedBuffer();
18 
23  TypedBuffer(DXGI_FORMAT format);
24 
26  virtual void CreateDerivedViews() override;
27  private:
28  DXGI_FORMAT data_format_;
29  };
30 }
virtual void CreateDerivedViews() override
Creates the descriptor views (descriptors) for this TypedBuffer.
Definition: typed_buffer.cc:23
DXGI_FORMAT data_format_
The format of each element in the typed buffer.
Definition: typed_buffer.h:28
TypedBuffer()
Constructs a TypedBuffer.
Definition: typed_buffer.cc:10
Wraps buffer-type GpuResource's.
Definition: gpu_buffer.h:17
The main Blowbox namespace.
Definition: image.cc:8
Wrapper for formatted buffer types.
Definition: typed_buffer.h:13