wgpu/naga/tests/out/glsl/push-constants.main.Fragment.glsl
Connor Fitzgerald 7f72c9fc3b
Fix GL Push Constant Layout (#4607)
* It verks!

* More tests

* Fixes

* Working multi-stage push constants

* Comments

* Add push constant partial update teste

* Docs

* Update Cargo.toml

* Comments
2023-11-06 07:58:26 -05:00

24 lines
476 B
GLSL

#version 320 es
precision highp float;
precision highp int;
struct PushConstants {
float multiplier;
};
struct FragmentIn {
vec4 color;
};
uniform PushConstants _push_constant_binding_fs;
layout(location = 0) smooth in vec4 _vs2fs_location0;
layout(location = 0) out vec4 _fs2p_location0;
void main() {
FragmentIn in_ = FragmentIn(_vs2fs_location0);
float _e4 = _push_constant_binding_fs.multiplier;
_fs2p_location0 = (in_.color * _e4);
return;
}