MCPcopy Create free account
hub / github.com/csyonghe/Spire / ShaderCompilerImpl

Method ShaderCompilerImpl

Source/SpireCore/ShaderCompiler.cpp:575–587  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

573 }
574
575 ShaderCompilerImpl()
576 {
577 if (compilerInstances == 0)
578 {
579 BasicExpressionType::Init();
580 }
581 compilerInstances++;
582 backends.Add("glsl", CreateGLSLCodeGen());
583 backends.Add("hlsl", CreateHLSLCodeGen());
584 backends.Add("spirv", CreateSpirVCodeGen());
585 backends.Add("glsl_vk", CreateGLSL_VulkanCodeGen());
586 backends.Add("glsl_vk_onedesc", CreateGLSL_VulkanOneDescCodeGen());
587 }
588
589 ~ShaderCompilerImpl()
590 {

Callers

nothing calls this directly

Calls 6

CreateGLSLCodeGenFunction · 0.85
CreateHLSLCodeGenFunction · 0.85
CreateGLSL_VulkanCodeGenFunction · 0.85
CreateSpirVCodeGenFunction · 0.70
AddMethod · 0.45

Tested by

no test coverage detected