MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / LoadShaders

Method LoadShaders

TombEngine/Renderer/ShaderManager/ShaderManager.cpp:125–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123 }
124
125 void ShaderManager::LoadShaders(int width, int height, bool recompileAAShaders)
126 {
127 TENLog("Loading shaders...", LogLevel::Info);
128
129 // Unbind any currently bound shader.
130 Bind(Shader::None, true);
131
132 // Reset compile counter.
133 _compileCounter = 0;
134
135 // LoadAAShaders should always be the first in the list, so that when AA settings are changed,
136 // they recompile with the same index as before.
137
138 LoadAAShaders(width, height, recompileAAShaders);
139 LoadCommonShaders();
140 LoadPostprocessShaders();
141 }
142
143 void ShaderManager::Bind(Shader shader, bool forceNull)
144 {

Callers 2

ReloadShadersMethod · 0.80
InitializeMethod · 0.80

Calls 1

TENLogFunction · 0.85

Tested by

no test coverage detected