Skip to content

Commit

Permalink
fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Aug 29, 2021
1 parent 6d706be commit 4497dd3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/projects/objc/metal_app/Renderer/AAPLRenderer.m
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ - (nonnull instancetype)initWithMetalKitView:(nonnull MTKView *)mtkView

_pipelineState = [_device newRenderPipelineStateWithDescriptor:pipelineStateDescriptor
error:&error];

// Pipeline State creation could fail if the pipeline descriptor isn't set up properly.
// If the Metal API validation is enabled, you can find out more information about what
// went wrong. (Metal API validation is enabled by default when a debug build is run
Expand Down Expand Up @@ -102,14 +102,14 @@ - (void)drawInMTKView:(nonnull MTKView *)view

// Set the region of the drawable to draw into.
[renderEncoder setViewport:(MTLViewport){0.0, 0.0, _viewportSize.x, _viewportSize.y, 0.0, 1.0 }];

[renderEncoder setRenderPipelineState:_pipelineState];

// Pass in the parameter data.
[renderEncoder setVertexBytes:triangleVertices
length:sizeof(triangleVertices)
atIndex:AAPLVertexInputIndexVertices];

[renderEncoder setVertexBytes:&_viewportSize
length:sizeof(_viewportSize)
atIndex:AAPLVertexInputIndexViewportSize];
Expand Down

0 comments on commit 4497dd3

Please sign in to comment.