summaryrefslogtreecommitdiff
path: root/prelude/slang-cpp-types.h
diff options
context:
space:
mode:
Diffstat (limited to 'prelude/slang-cpp-types.h')
-rw-r--r--prelude/slang-cpp-types.h4
1 files changed, 2 insertions, 2 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];