Skip to content

Commit d94100c

Browse files
author
Mike Solomon
committed
Update Sandbox.purs
1 parent a64e4ae commit d94100c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

sandbox/Sandbox.purs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ fn main(@location(0) inColor: vec3<f32>) -> @location(0) vec4<f32> {
417417

418418
-- 🖌️ Encode drawing commands
419419
passEncoder <- beginRenderPass commandEncoder renderPassDesc
420-
setPipeline passEncoder pipeline
420+
-- Set the viewport
421421
setViewport passEncoder
422422
0.0
423423
0.0
@@ -430,6 +430,8 @@ fn main(@location(0) inColor: vec3<f32>) -> @location(0) vec4<f32> {
430430
0
431431
canvasWidth
432432
canvasHeight
433+
-- Set the pipeline
434+
setPipeline passEncoder pipeline
433435
setVertexBuffer passEncoder 0 positionBuffer
434436
setVertexBuffer passEncoder 1 colorBuffer
435437
setIndexBuffer passEncoder indexBuffer uint16

0 commit comments

Comments
 (0)