Skip to content

Commit 3fbf18d

Browse files
committed
TODO
1 parent 2ba7ce7 commit 3fbf18d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/nbl/asset/utils/CShaderIntrospector.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ const CIntrospectionData* CShaderIntrospector::introspect(const ICPUShader* _sha
101101
return m_introspectionCache[std::move(key)].insert({core::smart_refctd_ptr<const ICPUShader>(_shader),std::move(introspection)}).first->second.get();
102102
};
103103

104+
// TODO: Use the compilerSet here to also take care of HLSL
104105
if (_shader->getContentType() == ICPUShader::E_CONTENT_TYPE::ECT_GLSL)
105106
{
106107
auto begin = reinterpret_cast<const char*>(_shader->getContent()->getPointer());
@@ -121,8 +122,6 @@ const CIntrospectionData* CShaderIntrospector::introspect(const ICPUShader* _sha
121122
}
122123
else if (_shader->getContentType() == ICPUShader::E_CONTENT_TYPE::ECT_SPIRV)
123124
return introspectSPV(_shader);
124-
else
125-
return nullptr; // TODO[ShaderCompiler] ?
126125
}
127126

128127
bool CShaderIntrospector::introspectAllShaders(const CIntrospectionData** introspection, const core::SRange<const ICPUSpecializedShader* const>& _shaders, const core::SRange<const char* const>& _extraDefines)

0 commit comments

Comments
 (0)