mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-26 00:33:51 +00:00
866be693d6
* [naga wgsl-in] phony assignments add named expressions Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com> * [naga wgsl-out] write out _naga_phony as phony Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com> * Add test Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com> * use statement span Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com> * every phony has same name Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com> --------- Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
24 lines
448 B
GLSL
24 lines
448 B
GLSL
#version 310 es
|
|
|
|
precision highp float;
|
|
precision highp int;
|
|
|
|
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
|
|
|
uniform type_block_0Compute { float _group_0_binding_0_cs; };
|
|
|
|
|
|
int five() {
|
|
return 5;
|
|
}
|
|
|
|
void main() {
|
|
uvec3 id = gl_GlobalInvocationID;
|
|
float phony = _group_0_binding_0_cs;
|
|
float phony_1 = _group_0_binding_0_cs;
|
|
int _e6 = five();
|
|
int _e7 = five();
|
|
float phony_2 = _group_0_binding_0_cs;
|
|
}
|
|
|