mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-01 19:03:41 +00:00
This CL adds element count limits to arrays. In FXC there is a maximum of 65536 elements in an array. This limit is not yet in WGSL, but adding this here allows us to fix the issue with large arrays and GLSL. Bug: chromium:1367602 Change-Id: I7df9d3e4f6c3e5107420d5f8e576d1f33e453161 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/104240 Commit-Queue: Dan Sinclair <dsinclair@chromium.org> Reviewed-by: Ben Clayton <bclayton@google.com> Kokoro: Kokoro <noreply+kokoro@google.com>
15 lines
270 B
GLSL
15 lines
270 B
GLSL
#version 310 es
|
|
|
|
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
|
void unused_entry_point() {
|
|
return;
|
|
}
|
|
layout(binding = 0, std430) buffer v_block_ssbo {
|
|
int inner[1000000];
|
|
} v;
|
|
|
|
layout(binding = 1, std430) buffer A_ssbo {
|
|
float a[1000000];
|
|
} b;
|
|
|