Updated simple example to use cw for pipeline
This commit is contained in:
parent
d5a1a4d45b
commit
3186542f0e
1 changed files with 6 additions and 5 deletions
|
|
@ -120,6 +120,7 @@ pub fn main(init: std.process.Init) !void {
|
||||||
|
|
||||||
.vert_shader = simple_vert,
|
.vert_shader = simple_vert,
|
||||||
.frag_shader = simple_frag,
|
.frag_shader = simple_frag,
|
||||||
|
.front_face = .cw,
|
||||||
|
|
||||||
.device = device,
|
.device = device,
|
||||||
.swapchain = swapchain,
|
.swapchain = swapchain,
|
||||||
|
|
@ -163,10 +164,10 @@ pub fn main(init: std.process.Init) !void {
|
||||||
}
|
}
|
||||||
|
|
||||||
// --- NEW PASS ---
|
// --- NEW PASS ---
|
||||||
if (gfx.beginPass(swapchain, .{
|
// if (gfx.beginPass(swapchain, .{
|
||||||
.load_op = .load,
|
// .load_op = .load,
|
||||||
})) |pass| {
|
// })) |pass| {
|
||||||
defer pass.end();
|
// defer pass.end();
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue