diff options
Diffstat (limited to 'source/slang/slang-emit-cuda.cpp')
| -rw-r--r-- | source/slang/slang-emit-cuda.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
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<IRHLSLStructuredBufferType>(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); |
