mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-14 17:16:01 +00:00
When traverseing an accessor expression, stop as soon as we hit a source object that has a constant value. This prevents us from trying to emit expressions that have abstract types and no materialization nodes. Bug: chromium:1442551 Change-Id: I8296ae58e63624e647052cdf966dbff15630a4d8 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/132040 Auto-Submit: James Price <jrprice@google.com> Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Ben Clayton <bclayton@google.com> Commit-Queue: Ben Clayton <bclayton@google.com>
12 lines
175 B
GLSL
12 lines
175 B
GLSL
#version 310 es
|
|
|
|
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
|
void unused_entry_point() {
|
|
return;
|
|
}
|
|
void f() {
|
|
int i = 1;
|
|
int b = ivec2(1, 2)[i];
|
|
}
|
|
|