mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-27 01:03:41 +00:00
7f72c9fc3b
* It verks! * More tests * Fixes * Working multi-stage push constants * Comments * Add push constant partial update teste * Docs * Update Cargo.toml * Comments
24 lines
476 B
GLSL
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;
|
|
}
|
|
|