mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-28 00:59:12 +01:00
[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:
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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user