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,
|
||||
.frag_shader = simple_frag,
|
||||
.front_face = .cw,
|
||||
|
||||
.device = device,
|
||||
.swapchain = swapchain,
|
||||
|
|
@ -163,10 +164,10 @@ pub fn main(init: std.process.Init) !void {
|
|||
}
|
||||
|
||||
// --- NEW PASS ---
|
||||
if (gfx.beginPass(swapchain, .{
|
||||
.load_op = .load,
|
||||
})) |pass| {
|
||||
defer pass.end();
|
||||
}
|
||||
// if (gfx.beginPass(swapchain, .{
|
||||
// .load_op = .load,
|
||||
// })) |pass| {
|
||||
// defer pass.end();
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue