mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-06-01 12:11:34 +00:00
It wasn't actually called, as array is parsed like any other templated type. Fixed: tint:1850 Change-Id: I2f1c8b8990cf7f3a5f8b09316e4dc539dbe6535a Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/121520 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: David Neto <dneto@google.com> Commit-Queue: Ben Clayton <bclayton@google.com>
20 lines
571 B
GLSL
20 lines
571 B
GLSL
#version 310 es
|
|
precision mediump float;
|
|
|
|
void tint_symbol() {
|
|
float signed_literal[4] = float[4](0.0f, 0.0f, 0.0f, 0.0f);
|
|
float unsigned_literal[4] = float[4](0.0f, 0.0f, 0.0f, 0.0f);
|
|
float signed_constant[4] = float[4](0.0f, 0.0f, 0.0f, 0.0f);
|
|
float unsigned_constant[4] = float[4](0.0f, 0.0f, 0.0f, 0.0f);
|
|
float shr_const_expr[4] = float[4](0.0f, 0.0f, 0.0f, 0.0f);
|
|
unsigned_literal = signed_literal;
|
|
signed_constant = signed_literal;
|
|
unsigned_constant = signed_literal;
|
|
shr_const_expr = signed_literal;
|
|
}
|
|
|
|
void main() {
|
|
tint_symbol();
|
|
return;
|
|
}
|