summaryrefslogtreecommitdiff
path: root/tests/bugs/vk-structured-buffer-binding.hlsl.glsl
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2023-08-21 17:07:34 -0700
committerGitHub <noreply@github.com>2023-08-21 17:07:34 -0700
commitbd6dbaf7c3ea720b4ed39904fe08878f9dcbd947 (patch)
tree9e8c436e0888d192c462f75e4655a63b51f41648 /tests/bugs/vk-structured-buffer-binding.hlsl.glsl
parentf94b2f7a328a898c5e3dc1389d08e0b7ce6e092e (diff)
Compile append and consume structured buffers to glsl. (#3142)
* Compile append and consume structured buffers to glsl. * Fix. * Update CI config. --------- Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'tests/bugs/vk-structured-buffer-binding.hlsl.glsl')
-rw-r--r--tests/bugs/vk-structured-buffer-binding.hlsl.glsl20
1 files changed, 9 insertions, 11 deletions
diff --git a/tests/bugs/vk-structured-buffer-binding.hlsl.glsl b/tests/bugs/vk-structured-buffer-binding.hlsl.glsl
index 7298ea594..f108aac00 100644
--- a/tests/bugs/vk-structured-buffer-binding.hlsl.glsl
+++ b/tests/bugs/vk-structured-buffer-binding.hlsl.glsl
@@ -2,25 +2,23 @@
//TEST_IGNORE_FILE:
#version 450
+layout(row_major) uniform;
+layout(row_major) buffer;
-#define gDoneGroups gDoneGroups_0
-#define uv _S3
-#define SV_Target _S2
-
-layout(std430, binding = 3, set = 4)
-buffer _S1
-{
+layout(std430, binding = 3, set = 4) buffer StructuredBuffer_uint_t_0 {
uint _data[];
-} gDoneGroups;
+} gDoneGroups_0;
layout(location = 0)
-out vec4 SV_Target;
+out vec4 _S1;
layout(location = 0)
-in vec3 uv;
+in vec3 _S2;
void main()
{
- SV_Target = vec4(gDoneGroups._data[uint(int(uv.z))]);
+ _S1 = vec4(float(gDoneGroups_0._data[uint(int(_S2.z))]));
return;
}
+
+