summaryrefslogtreecommitdiff
path: root/source/slang/slang-emit-cuda.cpp
diff options
context:
space:
mode:
authorjsmall-nvidia <jsmall@nvidia.com>2020-01-27 15:04:29 -0500
committerGitHub <noreply@github.com>2020-01-27 15:04:29 -0500
commita9e1beeb003644f4034b9485ad00e273ad52c9f1 (patch)
treeb93ef4d3e3c972798f6a76a4bdd0d6d4c369924c /source/slang/slang-emit-cuda.cpp
parentd98a2b75c9b4a31de0ebfb1084a68b5be5ede17d (diff)
CUDA implement StructuredBuffer/ByteAddressBuffer as pointer/count as is on CPU. (#1182)
Allow bounds check to zero index. Update docs.
Diffstat (limited to 'source/slang/slang-emit-cuda.cpp')
-rw-r--r--source/slang/slang-emit-cuda.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/source/slang/slang-emit-cuda.cpp b/source/slang/slang-emit-cuda.cpp
index 26d6eada0..83ad4a0f8 100644
--- a/source/slang/slang-emit-cuda.cpp
+++ b/source/slang/slang-emit-cuda.cpp
@@ -254,21 +254,6 @@ SlangResult CUDASourceEmitter::calcTypeName(IRType* type, CodeGenTarget target,
out << prefix << vecCount;
return SLANG_OK;
}
- case kIROp_HLSLStructuredBufferType:
- {
- auto bufferType = as<IRHLSLStructuredBufferType>(type);
- out << "const ";
- calcTypeName(bufferType->getElementType(), target, out);
- out << "* ";
- return SLANG_OK;
- }
- case kIROp_HLSLRWStructuredBufferType:
- {
- auto bufferType = as<IRHLSLRWStructuredBufferType>(type);
- calcTypeName(bufferType->getElementType(), target, out);
- out << "* ";
- return SLANG_OK;
- }
#if 0
case kIROp_MatrixType: