From 0c87001d7fb9dabaa17f9784e99d7438592d2373 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Mon, 6 Jan 2020 15:36:11 -0500 Subject: Fix scoping issue around use of IRTypeSet (#1160) * WIP use IRTypeSet in CPPSourceEmitter - doesn't work because of a cloning issue, causing a crash on exit. * Fix destruction of module issue for IRTypeSet usage in CPPEmitter. * Fix out definition emitting ordering that was removed. * Disable cuda output test. --- source/slang/slang-emit-cuda.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'source/slang/slang-emit-cuda.cpp') diff --git a/source/slang/slang-emit-cuda.cpp b/source/slang/slang-emit-cuda.cpp index feafc4e4e..37d5b1946 100644 --- a/source/slang/slang-emit-cuda.cpp +++ b/source/slang/slang-emit-cuda.cpp @@ -227,6 +227,24 @@ SlangResult CUDASourceEmitter::_calcCUDATypeName(IRType* type, StringBuilder& ou } } +#if 0 + switch (type->op) + { + case kIROp_HLSLStructuredBufferType: + case kIROp_HLSLRWStructuredBufferType: + { + auto structuredBufferType = as(type); + auto elementType = structuredBufferType->getElementType(); + + // Is the same as a pointer to the item + + + + } + default: break; + } +#endif + // If _getResourceTypePrefix returns something, we assume can output any specialization after it in order. { UnownedStringSlice prefix = _getCUDAResourceTypePrefix(type->op); -- cgit v1.2.3