diff options
Diffstat (limited to 'source')
| -rw-r--r-- | source/slang/emit.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/slang/emit.cpp b/source/slang/emit.cpp index 5a8a349b3..7615b0b28 100644 --- a/source/slang/emit.cpp +++ b/source/slang/emit.cpp @@ -6052,9 +6052,9 @@ struct EmitVisitor if( isShaderRecord ) { - // TODO: A shader record in vk can be potentially read write. Currently slang does't support write access - // so for now we will assume readonly - emit("readonly buffer "); + // TODO: A shader record in vk can be potentially read-write. Currently slang doesn't support write access + // and readonly buffer generates SPIRV validation error. + emit("buffer "); } else if(as<IRGLSLShaderStorageBufferType>(type)) { |
