Skip to content

Commit bead034

Browse files
committed
remove useless functions
1 parent 2f08cf5 commit bead034

File tree

2 files changed

+0
-85
lines changed

2 files changed

+0
-85
lines changed

include/nbl/asset/utils/CGLSLCompiler.h

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -53,41 +53,6 @@ class NBL_API2 CGLSLCompiler final : public IShaderCompiler
5353

5454
core::smart_refctd_ptr<ICPUShader> createSPIRVShader(system::IFile* sourceFile, const CGLSLCompiler::SOptions& options) const;
5555

56-
// TODO: REMOVE after GL Deprecation
57-
core::smart_refctd_ptr<ICPUBuffer> compileSPIRVFromGLSL(
58-
const char* _glslCode,
59-
IShader::E_SHADER_STAGE _stage,
60-
const char* _entryPoint,
61-
const char* _compilationId,
62-
bool _genDebugInfo = true,
63-
std::string* _outAssembly = nullptr,
64-
system::logger_opt_ptr logger = nullptr,
65-
const E_SPIRV_VERSION targetSpirvVersion = E_SPIRV_VERSION::ESV_1_6) const;
66-
67-
// TODO: REMOVE after GL Deprecation
68-
core::smart_refctd_ptr<ICPUShader> createSPIRVFromGLSL(
69-
const char* _glslCode,
70-
IShader::E_SHADER_STAGE _stage,
71-
const char* _entryPoint,
72-
const char* _compilationId,
73-
const ISPIRVOptimizer* _opt = nullptr,
74-
bool _genDebugInfo = true,
75-
std::string* _outAssembly = nullptr,
76-
system::logger_opt_ptr logger = nullptr,
77-
const E_SPIRV_VERSION targetSpirvVersion = E_SPIRV_VERSION::ESV_1_6) const;
78-
79-
// TODO: REMOVE after GL Deprecation
80-
core::smart_refctd_ptr<ICPUShader> createSPIRVFromGLSL(
81-
system::IFile* _sourcefile,
82-
IShader::E_SHADER_STAGE _stage,
83-
const char* _entryPoint,
84-
const char* _compilationId,
85-
const ISPIRVOptimizer* _opt = nullptr,
86-
bool _genDebugInfo = true,
87-
std::string* _outAssembly = nullptr,
88-
system::logger_opt_ptr logger = nullptr,
89-
const E_SPIRV_VERSION targetSpirvVersion = E_SPIRV_VERSION::ESV_1_6) const;
90-
9156
/*
9257
If original code contains #version specifier,
9358
then the filled fmt will be placed onto the next line after #version in the output buffer. If not, fmt will be placed into the

src/nbl/asset/utils/CGLSLCompiler.cpp

Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -102,54 +102,4 @@ core::smart_refctd_ptr<ICPUShader> CGLSLCompiler::createSPIRVShader(system::IFil
102102
return createSPIRVShader(code.c_str(), options);
103103
else
104104
return nullptr;
105-
}
106-
107-
// TODO: REMOVE
108-
core::smart_refctd_ptr<ICPUBuffer> CGLSLCompiler::compileSPIRVFromGLSL(
109-
const char* _glslCode,
110-
IShader::E_SHADER_STAGE _stage,
111-
const char* _entryPoint,
112-
const char* _compilationId,
113-
bool _genDebugInfo,
114-
std::string* _outAssembly,
115-
system::logger_opt_ptr logger,
116-
const E_SPIRV_VERSION targetSpirvVersion) const
117-
{
118-
// TODO: use compileToSPIRV directly or indirectly
119-
assert(false);
120-
return nullptr;
121-
}
122-
123-
// TODO: REMOVE
124-
core::smart_refctd_ptr<ICPUShader> CGLSLCompiler::createSPIRVFromGLSL(
125-
const char* _glslCode,
126-
IShader::E_SHADER_STAGE _stage,
127-
const char* _entryPoint,
128-
const char* _compilationId,
129-
const ISPIRVOptimizer* _opt,
130-
bool _genDebugInfo,
131-
std::string* _outAssembly,
132-
system::logger_opt_ptr logger,
133-
const E_SPIRV_VERSION targetSpirvVersion) const
134-
{
135-
// TODO: use createSPIRVShader directly or indirectly
136-
assert(false);
137-
return nullptr;
138-
}
139-
140-
// TODO: REMOVE
141-
core::smart_refctd_ptr<ICPUShader> CGLSLCompiler::createSPIRVFromGLSL(
142-
system::IFile* _sourcefile,
143-
IShader::E_SHADER_STAGE _stage,
144-
const char* _entryPoint,
145-
const char* _compilationId,
146-
const ISPIRVOptimizer* _opt,
147-
bool _genDebugInfo,
148-
std::string* _outAssembly,
149-
system::logger_opt_ptr logger,
150-
const E_SPIRV_VERSION targetSpirvVersion) const
151-
{
152-
// TODO: use createSPIRVShader directly or indirectly
153-
assert(false);
154-
return nullptr;
155105
}

0 commit comments

Comments
 (0)