mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-10 05:57:51 +00:00
GLSL: put std430 packing on all buffer variables.
This is not 100% correct (the exceptions for mat2 and friends are not implemented yet), but gets more tests passing in Dawn. Bug: tint:1415 Change-Id: Ia11c63a5236f35e724431a65ddb6ef3c598775d0 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/79380 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: David Neto <dneto@google.com> Commit-Queue: Stephen White <senorblanco@chromium.org>
This commit is contained in:
committed by
Tint LUCI CQ
parent
c6d967b4dd
commit
46647f1c13
@@ -15,7 +15,7 @@ layout(binding = 0) uniform S_1 {
|
||||
ivec4 arr[4];
|
||||
} src_uniform;
|
||||
|
||||
layout(binding = 1) buffer S_2 {
|
||||
layout(binding = 1, std430) buffer S_2 {
|
||||
ivec4 arr[4];
|
||||
} src_storage;
|
||||
ivec4[4] ret_arr() {
|
||||
|
||||
@@ -15,7 +15,7 @@ layout(binding = 0) uniform S_1 {
|
||||
ivec4 arr[4];
|
||||
} src_uniform;
|
||||
|
||||
layout(binding = 1) buffer S_2 {
|
||||
layout(binding = 1, std430) buffer S_2 {
|
||||
ivec4 arr[4];
|
||||
} src_storage;
|
||||
ivec4 dst[4] = ivec4[4](ivec4(0, 0, 0, 0), ivec4(0, 0, 0, 0), ivec4(0, 0, 0, 0), ivec4(0, 0, 0, 0));
|
||||
|
||||
@@ -19,13 +19,13 @@ layout(binding = 0) uniform S_1 {
|
||||
ivec4 arr[4];
|
||||
} src_uniform;
|
||||
|
||||
layout(binding = 1) buffer S_2 {
|
||||
layout(binding = 1, std430) buffer S_2 {
|
||||
ivec4 arr[4];
|
||||
} src_storage;
|
||||
layout(binding = 2) buffer S_3 {
|
||||
layout(binding = 2, std430) buffer S_3 {
|
||||
ivec4 arr[4];
|
||||
} dst;
|
||||
layout(binding = 3) buffer S_nested_1 {
|
||||
layout(binding = 3, std430) buffer S_nested_1 {
|
||||
int arr[4][3][2];
|
||||
} dst_nested;
|
||||
ivec4[4] ret_arr() {
|
||||
|
||||
@@ -15,7 +15,7 @@ layout(binding = 0) uniform S_1 {
|
||||
ivec4 arr[4];
|
||||
} src_uniform;
|
||||
|
||||
layout(binding = 1) buffer S_2 {
|
||||
layout(binding = 1, std430) buffer S_2 {
|
||||
ivec4 arr[4];
|
||||
} src_storage;
|
||||
shared ivec4 dst[4];
|
||||
|
||||
@@ -13,7 +13,7 @@ struct S {
|
||||
strided_arr_1 a[4];
|
||||
};
|
||||
|
||||
layout(binding = 0) buffer S_1 {
|
||||
layout(binding = 0, std430) buffer S_1 {
|
||||
strided_arr_1 a[4];
|
||||
} s;
|
||||
void f_1() {
|
||||
|
||||
Reference in New Issue
Block a user