MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / HasShader

Method HasShader

Source/Engine/Graphics/Shaders/GPUShader.cpp:176–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174}
175
176bool GPUShader::HasShader(const StringAnsiView& name, int32 permutationIndex) const
177{
178 const uint32 hash = HashPermutation(name, permutationIndex);
179 return _shaders.ContainsKey(hash);
180}
181
182GPUShaderProgram* GPUShader::GetShader(ShaderStage stage, const StringAnsiView& name, int32 permutationIndex) const
183{

Callers 5

LoadMethod · 0.80
LoadMethod · 0.80
LoadMethod · 0.80
LoadMethod · 0.80
LoadMethod · 0.80

Calls 2

HashPermutationFunction · 0.85
ContainsKeyMethod · 0.45

Tested by

no test coverage detected