mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-19 22:11:01 +01:00
12 lines
227 B
WebGPU Shading Language
12 lines
227 B
WebGPU Shading Language
[[block]]
|
|
struct PushConstants {
|
|
index: u32;
|
|
double: vec2<f64>;
|
|
};
|
|
var<push_constant> pc: PushConstants;
|
|
|
|
[[stage(fragment)]]
|
|
fn main([[location(0)]] color: vec4<f32>) -> [[location(0)]] vec4<f32> {
|
|
return color;
|
|
}
|