From c9d06fe1f46a21c66c378ab9771495d6344db49c Mon Sep 17 00:00:00 2001 From: Nima Nikfetrat <3170208+Nimanf@users.noreply.github.com> Date: Tue, 2 Apr 2019 18:19:34 -0400 Subject: Avoid SPIRV validation error by removing readonly flag from shaderRecord buffer (#936) --- source/slang/emit.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/slang/emit.cpp') 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(type)) { -- cgit v1.2.3