MCPcopy Create free account
hub / github.com/TheRealMJP/DeferredTexturing / Initialize

Method Initialize

BindlessDeferred/PostProcessor.cpp:17–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15#include "PostProcessor.h"
16
17void PostProcessor::Initialize()
18{
19 helper.Initialize();
20
21 // Load the shaders
22 toneMap = CompileFromFile(L"PostProcessing.hlsl", "ToneMap", ShaderType::Pixel, ShaderProfile::SM51);
23 scale = CompileFromFile(L"PostProcessing.hlsl", "Scale", ShaderType::Pixel, ShaderProfile::SM51);
24 blurH = CompileFromFile(L"PostProcessing.hlsl", "BlurH", ShaderType::Pixel, ShaderProfile::SM51);
25 blurV = CompileFromFile(L"PostProcessing.hlsl", "BlurV", ShaderType::Pixel, ShaderProfile::SM51);
26 bloom = CompileFromFile(L"PostProcessing.hlsl", "Bloom", ShaderType::Pixel, ShaderProfile::SM51);
27}
28
29void PostProcessor::Shutdown()
30{

Callers

nothing calls this directly

Calls 1

CompileFromFileFunction · 0.85

Tested by

no test coverage detected