From 92ae4949fe1af28ef31331fd4116c8111c057420 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Fri, 2 Dec 2022 09:29:38 -0500 Subject: Inline functions with string param/return for GPU targets (#2544) * #include an absolute path didn't work - because paths were taken to always be relative. * WIP inlining of functions that take or return string related types on GPU targets. * Small fixes. * Added a test. * Add checking for any getStringHash insts are valid. * Support getStringHash on CUDA. * Tweak diagnostic. --- source/slang/slang-emit-glsl.cpp | 7 ------- 1 file changed, 7 deletions(-) (limited to 'source/slang/slang-emit-glsl.cpp') diff --git a/source/slang/slang-emit-glsl.cpp b/source/slang/slang-emit-glsl.cpp index 8a074d057..02e633f98 100644 --- a/source/slang/slang-emit-glsl.cpp +++ b/source/slang/slang-emit-glsl.cpp @@ -1757,13 +1757,6 @@ bool GLSLSourceEmitter::tryEmitInstExprImpl(IRInst* inst, const EmitOpInfo& inOu return true; } - case kIROp_GetStringHash: - { - const UnownedStringSlice slice = as(inst->getOperand(0))->getStringSlice(); - m_writer->emit(static_cast(getStableHashCode32(slice.begin(), slice.getLength()))); - - return true; - } case kIROp_ImageLoad: { m_writer->emit("imageLoad("); -- cgit v1.2.3