WebGPU Shading Language is a shading language created in 2020.
#2298on PLDB | 4Years Old |
WebGPU Shading Language (WGSL) is the shader language for [WebGPU]. That is, an application using the WebGPU API uses WGSL to express the programs, known as shaders, that run on the GPU.
[[location 0]] var<out> gl_FragColor : vec4<f32>;
fn main() -> void {
gl_FragColor = vec4<f32>(0.4, 0.4, 0.8, 1.0);
return;
}
entry_point fragment = main;