Blowbox 2017
A 3D Game Engine by Riko Ophorst using DirectX 12
forward_renderer.h
1 #pragma once
2 
3 #include "renderer/d3d12_includes.h"
4 #include "renderer/buffers/depth_buffer.h"
5 #include "renderer/pipeline_state.h"
6 #include "renderer/root_signature.h"
7 #include "renderer/shader.h"
8 
9 namespace blowbox
10 {
19  {
20  public:
23 
26 
28  void Startup();
29 
31  void Render();
32  private:
38  };
39 }
Wrapper for DepthBuffer-like resources.
Definition: depth_buffer.h:14
Wraps the PipelineStateObject for graphics pipelines.
Definition: pipeline_state.h:61
Shader pixel_shader_
Pixel shader for the forward rendering.
Definition: forward_renderer.h:34
Implements a forward rendering technique.
Definition: forward_renderer.h:18
Wraps the ID3D12RootSignature object.
Definition: root_signature.h:121
~ForwardRenderer()
Destructs the ForwardRenderer.
Definition: forward_renderer.cc:19
ForwardRenderer()
Constructs the ForwardRenderer.
Definition: forward_renderer.cc:13
void Render()
Renders the entire scene into the current backbuffer in the SwapChain.
Definition: forward_renderer.cc:83
void Startup()
Starts up the ForwardRenderer.
Definition: forward_renderer.cc:25
The main Blowbox namespace.
Definition: image.cc:8
RootSignature main_root_signature_
The main root signature for all forward rendering.
Definition: forward_renderer.h:35
DepthBuffer depth_buffer_
The depth buffer that is used to render the scene.
Definition: forward_renderer.h:37
GraphicsPSO main_pso_
The main PSO that is used for all forward rendering.
Definition: forward_renderer.h:36
Shader vertex_shader_
Vertex shader for the forward rendering.
Definition: forward_renderer.h:33
Wraps Shader objects.
Definition: shader.h:33