@@ -20,7 +20,7 @@ namespace Core {
2020/*
2121STANDARD FORWARD LIGHTING PASS
2222*/
23- class ForwardPass : public BaseGraphicPass < 3 , 3 >
23+ class ForwardPass : public BaseGraphicPass
2424{
2525 /* Setup*/
2626 ColorFormatType m_colorFormat;
@@ -37,44 +37,45 @@ class ForwardPass : public BaseGraphicPass<3, 3>
3737 void setup_material_descriptor (IMaterial* mat);
3838
3939 public:
40- /*
41- Input Attachments:
42- -
43- - Enviroment
44- - Diffuse Enviroment Irradiance
45- - Sky
46-
47- Output Attachments:
48- -
49- - Lighting
50- - Bright Lighting (HDR)
51- - Depth
52- */
53- ForwardPass (Graphics::Device* device,
54- const PassConfig<3 , 3 >& config,
55- Extent2D extent,
56- ColorFormatType colorFormat,
57- ColorFormatType depthFormat,
58- MSAASamples samples)
59- : BaseGraphicPass(device, config, extent, 1 , 1 , " FORWARD" )
40+ /*
41+ Input Attachments:
42+ -
43+ - Enviroment
44+ - Diffuse Enviroment Irradiance
45+ - Sky
46+
47+ Output Attachments:
48+ -
49+ - Lighting
50+ - Bright Lighting (HDR)
51+ - Depth
52+ */
53+ ForwardPass (Graphics::Device* device,
54+ const PassLinkage<3 , 3 >& config,
55+ Extent2D extent,
56+ ColorFormatType colorFormat,
57+ ColorFormatType depthFormat,
58+ MSAASamples samples,
59+ bool isDefault = false )
60+ : BaseGraphicPass(device, extent, 1 , 1 , true , isDefault, " FORWARD" )
6061 , m_colorFormat(colorFormat)
6162 , m_depthFormat(depthFormat)
6263 , m_aa(samples) {
64+ BasePass::store_attachments<3 , 3 >(config);
6365 }
6466
6567 void setup_out_attachments (std::vector<Graphics::AttachmentConfig>& attachments,
66- std::vector<Graphics::SubPassDependency>& dependencies);
68+ std::vector<Graphics::SubPassDependency>& dependencies) override ;
6769
68- void setup_uniforms (std::vector<Graphics::Frame>& frames);
70+ void setup_uniforms (std::vector<Graphics::Frame>& frames) override ;
6971
70- void setup_shader_passes ();
72+ void setup_shader_passes () override ;
7173
72- void execute (Graphics::Frame& currentFrame, Scene* const scene, uint32_t presentImageIndex = 0 );
74+ void execute (Graphics::Frame& currentFrame, Scene* const scene, uint32_t presentImageIndex = 0 ) override ;
7375
74- void update_uniforms (uint32_t frameIndex, Scene* const scene);
75-
76- void link_input_attachments ();
76+ void update_uniforms (uint32_t frameIndex, Scene* const scene) override ;
7777
78+ void link_input_attachments () override ;
7879};
7980
8081} // namespace Core
0 commit comments