summaryrefslogtreecommitdiff
path: root/source/slang/slang-emit-c-like.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2021-08-17 09:39:02 -0700
committerGitHub <noreply@github.com>2021-08-17 09:39:02 -0700
commit858c7c57b125afed9b5b2329d6b02477284e4803 (patch)
tree49f67b342448dcfb19913d8ccc089d956de14462 /source/slang/slang-emit-c-like.cpp
parent6406523511037987d8b8ab881aea41389afd57eb (diff)
Add GLSL450 intrinsics to SPIRV direct emit. (#1921)
* Add GLSL450 intrinsics to SPIRV direct emit. * Fix. * Fix compiler error. * Fix. * Fix compiler error. * Make direct-spirv tests actually run.
Diffstat (limited to 'source/slang/slang-emit-c-like.cpp')
-rw-r--r--source/slang/slang-emit-c-like.cpp21
1 files changed, 0 insertions, 21 deletions
diff --git a/source/slang/slang-emit-c-like.cpp b/source/slang/slang-emit-c-like.cpp
index f9d71beb9..74c225feb 100644
--- a/source/slang/slang-emit-c-like.cpp
+++ b/source/slang/slang-emit-c-like.cpp
@@ -1943,27 +1943,6 @@ void CLikeSourceEmitter::defaultEmitInstExpr(IRInst* inst, const EmitOpInfo& inO
maybeCloseParens(needClose);
}
-BaseType CLikeSourceEmitter::extractBaseType(IRType* inType)
-{
- auto type = inType;
- for(;;)
- {
- if(auto irBaseType = as<IRBasicType>(type))
- {
- return irBaseType->getBaseType();
- }
- else if(auto vecType = as<IRVectorType>(type))
- {
- type = vecType->getElementType();
- continue;
- }
- else
- {
- return BaseType::Void;
- }
- }
-}
-
void CLikeSourceEmitter::emitInst(IRInst* inst)
{
try