mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-24 00:11:11 +01:00
Makes the dual source implementation in wgpu WebGPU spec compliant. Furthermore, makes the dual source blending extension available when targeting WebGPU.
9 lines
206 B
GLSL
9 lines
206 B
GLSL
#version 450
|
|
|
|
layout(location = 0, index = 0) out vec4 output0;
|
|
layout(location = 0, index = 1) out vec4 output1;
|
|
|
|
void main() {
|
|
output0 = vec4(1.0, 0.0, 1.0, 0.0);
|
|
output1 = vec4(0.0, 1.0, 0.0, 1.0);
|
|
} |