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