mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-21 23:11:01 +01:00
Makes the dual source implementation in wgpu WebGPU spec compliant. Furthermore, makes the dual source blending extension available when targeting WebGPU.
21 lines
510 B
GLSL
21 lines
510 B
GLSL
#version 310 es
|
|
#extension GL_EXT_blend_func_extended : require
|
|
|
|
precision highp float;
|
|
precision highp int;
|
|
|
|
struct FragmentOutput {
|
|
vec4 output0_;
|
|
vec4 output1_;
|
|
};
|
|
layout(location = 0, index = 0) out vec4 _fs2p_location0;
|
|
layout(location = 0, index = 1) out vec4 _fs2p_location1;
|
|
|
|
void main() {
|
|
FragmentOutput _tmp_return = FragmentOutput(vec4(0.4, 0.3, 0.2, 0.1), vec4(0.9, 0.8, 0.7, 0.6));
|
|
_fs2p_location0 = _tmp_return.output0_;
|
|
_fs2p_location1 = _tmp_return.output1_;
|
|
return;
|
|
}
|
|
|