diff options
| author | ruki <[email protected]> | 2021-08-29 10:12:51 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-08-29 10:12:51 +0800 |
| commit | 4497dd33fb475a388d5d51192d432b0156be78a3 (patch) | |
| tree | c4586d32694be386b09125dda5b2fbf7a902ec98 | |
| parent | 6d706be2384c1b6ba000bba81156c87d7449afc7 (diff) | |
fix style
| -rw-r--r-- | tests/projects/objc/metal_app/Renderer/AAPLRenderer.m | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/projects/objc/metal_app/Renderer/AAPLRenderer.m b/tests/projects/objc/metal_app/Renderer/AAPLRenderer.m index 124bd29ff..6cfc2cc0a 100644 --- a/tests/projects/objc/metal_app/Renderer/AAPLRenderer.m +++ b/tests/projects/objc/metal_app/Renderer/AAPLRenderer.m @@ -53,7 +53,7 @@ Implementation of a platform independent renderer class, which performs Metal se _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 @@ -102,14 +102,14 @@ Implementation of a platform independent renderer class, which performs Metal se // 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]; |
