Fix code formatting on completion handler blocks.
diff --git a/MoltenVK/MoltenVK/GPUObjects/MVKPipeline.mm b/MoltenVK/MoltenVK/GPUObjects/MVKPipeline.mm
index 54c105d..43c90a8 100644
--- a/MoltenVK/MoltenVK/GPUObjects/MVKPipeline.mm
+++ b/MoltenVK/MoltenVK/GPUObjects/MVKPipeline.mm
@@ -2155,9 +2155,9 @@
@synchronized (mtlDev) {
[mtlDev newRenderPipelineStateWithDescriptor: mtlRPLDesc
completionHandler: ^(id<MTLRenderPipelineState> ps, NSError* error) {
- bool isLate = compileComplete(ps, error);
- if (isLate) { destroy(); }
- }];
+ bool isLate = compileComplete(ps, error);
+ if (isLate) { destroy(); }
+ }];
}
});
@@ -2189,9 +2189,9 @@
@synchronized (mtlDev) {
[mtlDev newComputePipelineStateWithFunction: mtlFunction
completionHandler: ^(id<MTLComputePipelineState> ps, NSError* error) {
- bool isLate = compileComplete(ps, error);
- if (isLate) { destroy(); }
- }];
+ bool isLate = compileComplete(ps, error);
+ if (isLate) { destroy(); }
+ }];
}
});
@@ -2207,9 +2207,9 @@
[mtlDev newComputePipelineStateWithDescriptor: plDesc
options: MTLPipelineOptionNone
completionHandler: ^(id<MTLComputePipelineState> ps, MTLComputePipelineReflection*, NSError* error) {
- bool isLate = compileComplete(ps, error);
- if (isLate) { destroy(); }
- }];
+ bool isLate = compileComplete(ps, error);
+ if (isLate) { destroy(); }
+ }];
}
});
diff --git a/MoltenVK/MoltenVK/GPUObjects/MVKShaderModule.mm b/MoltenVK/MoltenVK/GPUObjects/MVKShaderModule.mm
index 55da1dc..30e8c1b 100644
--- a/MoltenVK/MoltenVK/GPUObjects/MVKShaderModule.mm
+++ b/MoltenVK/MoltenVK/GPUObjects/MVKShaderModule.mm
@@ -429,9 +429,9 @@
options: _owner->getDevice()->getMTLCompileOptions(shaderConversionResults.entryPoint.supportsFastMath,
shaderConversionResults.isPositionInvariant)
completionHandler: ^(id<MTLLibrary> mtlLib, NSError* error) {
- bool isLate = compileComplete(mtlLib, error);
- if (isLate) { destroy(); }
- }];
+ bool isLate = compileComplete(mtlLib, error);
+ if (isLate) { destroy(); }
+ }];
}
});
@@ -473,9 +473,9 @@
[mtlLibrary newFunctionWithName: funcName
constantValues: constantValues
completionHandler: ^(id<MTLFunction> mtlFunc, NSError* error) {
- bool isLate = compileComplete(mtlFunc, error);
- if (isLate) { destroy(); }
- }];
+ bool isLate = compileComplete(mtlFunc, error);
+ if (isLate) { destroy(); }
+ }];
});
return [_mtlFunction retain];