File tree Expand file tree Collapse file tree 1 file changed +2
-20
lines changed Expand file tree Collapse file tree 1 file changed +2
-20
lines changed Original file line number Diff line number Diff line change @@ -16,31 +16,13 @@ core::smart_refctd_ptr<const ICPUShader> CCompilerSet::compileToSPIRV(const ICPU
16
16
case IShader::E_CONTENT_TYPE::ECT_HLSL:
17
17
{
18
18
const char * code = reinterpret_cast <const char *>(shader->getContent ()->getPointer ());
19
- if (options.getCodeContentType () == IShader::E_CONTENT_TYPE::ECT_HLSL)
20
- {
21
- outSpirvShader = m_HLSLCompiler->compileToSPIRV (code, static_cast <const CHLSLCompiler::SOptions&>(options));
22
- }
23
- else
24
- {
25
- CHLSLCompiler::SOptions hlslCompilerOptions = {};
26
- hlslCompilerOptions.setCommonData (options);
27
- outSpirvShader = m_HLSLCompiler->compileToSPIRV (code, hlslCompilerOptions);
28
- }
19
+ outSpirvShader = m_HLSLCompiler->compileToSPIRV (code, options);
29
20
}
30
21
break ;
31
22
case IShader::E_CONTENT_TYPE::ECT_GLSL:
32
23
{
33
24
const char * code = reinterpret_cast <const char *>(shader->getContent ()->getPointer ());
34
- if (options.getCodeContentType () == IShader::E_CONTENT_TYPE::ECT_GLSL)
35
- {
36
- outSpirvShader = m_GLSLCompiler->compileToSPIRV (code, static_cast <const CGLSLCompiler::SOptions&>(options));
37
- }
38
- else
39
- {
40
- CGLSLCompiler::SOptions glslCompilerOptions = {};
41
- glslCompilerOptions.setCommonData (options);
42
- outSpirvShader = m_GLSLCompiler->compileToSPIRV (code, glslCompilerOptions);
43
- }
25
+ outSpirvShader = m_GLSLCompiler->compileToSPIRV (code, options);
44
26
}
45
27
break ;
46
28
case IShader::E_CONTENT_TYPE::ECT_SPIRV:
You can’t perform that action at this time.
0 commit comments