mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-08-05 19:55:37 +00:00
When these are used inside a function, we were not unwrapping the array from the struct that we wrapped it in. Fixed: tint:1385 Change-Id: Ide7bbd802394bf09819265be48d978ec9346adfe Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/77180 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Ben Clayton <bclayton@google.com> Commit-Queue: James Price <jrprice@google.com>
23 lines
293 B
GLSL
23 lines
293 B
GLSL
#version 310 es
|
|
precision mediump float;
|
|
|
|
|
|
layout (binding = 1) buffer data_block_1 {
|
|
int inner[];
|
|
} data;
|
|
|
|
int foo() {
|
|
return data.inner[0];
|
|
}
|
|
|
|
layout(local_size_x = 16, local_size_y = 16, local_size_z = 1) in;
|
|
void tint_symbol() {
|
|
foo();
|
|
return;
|
|
}
|
|
void main() {
|
|
tint_symbol();
|
|
}
|
|
|
|
|