blob: d01f735293d7b23b8e464deaedc05062b8faa23c [file] [edit]
// [msl] flags: --msl-version 3.2
@compute @workgroup_size(1)
fn compute_main() {
print(`hello world`);
}
@fragment
fn fragment_main() {
print(`hello from fragment`);
}
struct VertexOutput {
@builtin(position) pos: vec4<f32>,
};
@vertex
fn vertex_main() -> VertexOutput {
var out: VertexOutput;
out.pos = vec4<f32>();
print(`hello from vertex`);
return out;
}