From a9e1beeb003644f4034b9485ad00e273ad52c9f1 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Mon, 27 Jan 2020 15:04:29 -0500 Subject: CUDA implement StructuredBuffer/ByteAddressBuffer as pointer/count as is on CPU. (#1182) Allow bounds check to zero index. Update docs. --- source/slang/slang-emit-cuda.cpp | 15 --------------- 1 file changed, 15 deletions(-) (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 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(type); - out << "const "; - calcTypeName(bufferType->getElementType(), target, out); - out << "* "; - return SLANG_OK; - } - case kIROp_HLSLRWStructuredBufferType: - { - auto bufferType = as(type); - calcTypeName(bufferType->getElementType(), target, out); - out << "* "; - return SLANG_OK; - } #if 0 case kIROp_MatrixType: -- cgit v1.2.3