[wgsl-in] eagerly evaluate const-expressions

[wgsl-in] support const-expressions in attributes

allow `Splat` as an evaluated const-expression type
This commit is contained in:
teoxoy authored and Teodor Tanasoaia committed 2023-10-12 13:13:26 +02:00
1 parent c5d884fca8
commit a730236b68
44 files changed
+2917 -2770

No files matched your search

@@ -9,8 +9,8 @@ uniform highp samplerCubeArrayShadow _group_0_binding_4_fs;
layout(location = 0) out vec4 _fs2p_location0;
void main() {
vec3 frag_ls = vec4(1.0, 1.0, 2.0, 1.0).xyz;
float a = texture(_group_0_binding_4_fs, vec4(frag_ls, int(1)), 1.0);
vec3 frag_ls = vec3(1.0, 1.0, 2.0);
float a = texture(_group_0_binding_4_fs, vec4(frag_ls, 1), 1.0);
_fs2p_location0 = vec4(a, 1.0, 1.0, 1.0);
return;
}