mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-06-12 17:43:45 +00:00
Move builtin_to_string() and builtin_type() to the CanonicalizeEntryPointIO transform. Use the former to rename entry point IO variables to the gl_ names, and the latter to cast values to the correct type. Change-Id: Iddfad574ddd660ff1bfd89a399a001b967b6b67e Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/78380 Reviewed-by: James Price <jrprice@google.com> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Stephen White <senorblanco@chromium.org>
38 lines
1.0 KiB
GLSL
38 lines
1.0 KiB
GLSL
SKIP: FAILED
|
|
|
|
#version 310 es
|
|
precision mediump float;
|
|
|
|
layout(location = 0) in float f_1;
|
|
layout(location = 1) flat in uint u_1;
|
|
struct S {
|
|
float f;
|
|
uint u;
|
|
vec4 v;
|
|
};
|
|
|
|
layout(binding = 0) buffer S_1 {
|
|
float f;
|
|
uint u;
|
|
vec4 v;
|
|
} tint_symbol;
|
|
void frag_main(S tint_symbol_1) {
|
|
float f = tint_symbol_1.f;
|
|
uint u = tint_symbol_1.u;
|
|
vec4 v = tint_symbol_1.v;
|
|
tint_symbol = tint_symbol_1;
|
|
}
|
|
|
|
void main() {
|
|
S tint_symbol_2 = S(f_1, u_1, gl_FragCoord);
|
|
frag_main(tint_symbol_2);
|
|
return;
|
|
}
|
|
Error parsing GLSL shader:
|
|
ERROR: 0:21: 'assign' : cannot convert from ' in structure{ global mediump float f, global mediump uint u, global mediump 4-component vector of float v}' to 'layout( binding=0 column_major shared) buffer block{layout( column_major shared) buffer mediump float f, layout( column_major shared) buffer mediump uint u, layout( column_major shared) buffer mediump 4-component vector of float v}'
|
|
ERROR: 0:21: '' : compilation terminated
|
|
ERROR: 2 compilation errors. No code generated.
|
|
|
|
|
|
|