diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2019-02-13 14:49:02 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-02-13 14:49:02 -0500 |
| commit | d7280c3eb0341906a24084595b1a44aed24b3eb7 (patch) | |
| tree | ea16c0b1d753504b0eeb9b8974cc16f633c4c51d /tests/vkray | |
| parent | 8e7e74f3137a89ccff306350d591a34933ae772f (diff) | |
Output readonly for suitable glsl buffers (#845)
* Output readonly on buffers for glsl if resource is readonly.
Didn't add to emitGLSLParameterGroup because the cases there seem to to either be implicitly read only, or allow write.
* * Improve comments around use of 'readonly' on glsl output
* Use readonly with shaderRecord
* Add comment pointing out shader record can be rw on vk, so might require changes in the future.
Diffstat (limited to 'tests/vkray')
| -rw-r--r-- | tests/vkray/closesthit.slang.glsl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/vkray/closesthit.slang.glsl b/tests/vkray/closesthit.slang.glsl index 46c5ea636..d85e982fa 100644 --- a/tests/vkray/closesthit.slang.glsl +++ b/tests/vkray/closesthit.slang.glsl @@ -21,12 +21,12 @@ struct SLANG_ParameterGroup_ShaderRecord_0 }; layout(shaderRecordNV) -buffer tmp_shaderrecord +readonly buffer tmp_shaderrecord { SLANG_ParameterGroup_ShaderRecord_0 _data; } ShaderRecord_0; -layout(std430, binding = 0) buffer tmp_colors +layout(std430, binding = 0) readonly buffer tmp_colors { vec4 _data[]; } colors_0; |
