diff options
Diffstat (limited to 'prelude')
| -rw-r--r-- | prelude/slang-cpp-types.h | 4 | ||||
| -rw-r--r-- | prelude/slang-cuda-prelude.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/prelude/slang-cpp-types.h b/prelude/slang-cpp-types.h index 491438c80..26b45d53f 100644 --- a/prelude/slang-cpp-types.h +++ b/prelude/slang-cpp-types.h @@ -59,12 +59,12 @@ struct RWStructuredBuffer template<typename T> struct StructuredBuffer { - SLANG_FORCE_INLINE const T& operator[](size_t index) const + SLANG_FORCE_INLINE T& operator[](size_t index) const { SLANG_BOUND_CHECK(index, count); return data[index]; } - const T& Load(size_t index) const + T& Load(size_t index) const { SLANG_BOUND_CHECK(index, count); return data[index]; diff --git a/prelude/slang-cuda-prelude.h b/prelude/slang-cuda-prelude.h index 5c5335ac5..6c68cdb71 100644 --- a/prelude/slang-cuda-prelude.h +++ b/prelude/slang-cuda-prelude.h @@ -2312,7 +2312,7 @@ SLANG_FORCE_INLINE SLANG_CUDA_CALL uintptr_t UPTR_max(uintptr_t a, uintptr_t b) template<typename T> struct StructuredBuffer { - SLANG_CUDA_CALL const T& operator[](size_t index) const + SLANG_CUDA_CALL T& operator[](size_t index) const { #ifndef SLANG_CUDA_STRUCTURED_BUFFER_NO_COUNT SLANG_BOUND_CHECK(index, count); @@ -2320,7 +2320,7 @@ struct StructuredBuffer return data[index]; } - SLANG_CUDA_CALL const T& Load(size_t index) const + SLANG_CUDA_CALL T& Load(size_t index) const { #ifndef SLANG_CUDA_STRUCTURED_BUFFER_NO_COUNT SLANG_BOUND_CHECK(index, count); |
