gpu: example: use RenderPassEncoder.draw
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
a5f6483c62
commit
3e17d04195
1 changed files with 1 additions and 1 deletions
|
|
@ -207,7 +207,7 @@ fn frame(params: FrameParams) !void {
|
|||
};
|
||||
const pass = encoder.beginRenderPass(&render_pass_info);
|
||||
pass.setPipeline(params.pipeline);
|
||||
c.wgpuRenderPassEncoderDraw(@ptrCast(c.WGPURenderPassEncoder, pass.ptr), 3, 1, 0, 0);
|
||||
pass.draw(3, 1, 0, 0);
|
||||
c.wgpuRenderPassEncoderEnd(@ptrCast(c.WGPURenderPassEncoder, pass.ptr));
|
||||
pass.release();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue