Fix code formatting on completion handler blocks.

This commit is contained in:
Bill Hollings 2021-02-17 14:09:05 -05:00
parent a1e33384c1
commit 14dc8578ce
2 changed files with 15 additions and 15 deletions

View File

@ -2155,9 +2155,9 @@ id<MTLRenderPipelineState> MVKRenderPipelineCompiler::newMTLRenderPipelineState(
@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 @@ id<MTLComputePipelineState> MVKComputePipelineCompiler::newMTLComputePipelineSta
@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 @@ id<MTLComputePipelineState> MVKComputePipelineCompiler::newMTLComputePipelineSta
[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(); }
}];
}
});

View File

@ -429,9 +429,9 @@ id<MTLLibrary> MVKShaderLibraryCompiler::newMTLLibrary(NSString* mslSourceCode,
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 @@ id<MTLFunction> MVKFunctionSpecializer::newMTLFunction(id<MTLLibrary> mtlLibrary
[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];