Merge pull request #1911 from etang-cw/NoAbortOnCompilationFailure

Check if shader compiled before adding it to a pipeline
This commit is contained in:
Bill Hollings 2023-05-18 11:47:46 -04:00 committed by GitHub
commit b3ae0f48d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1050,8 +1050,8 @@ bool MVKGraphicsPipeline::addTessCtlShaderToPipeline(MTLComputePipelineDescripto
MVKMTLFunction func = getMTLFunction(shaderConfig, _pTessCtlSS, "Tessellation control");
id<MTLFunction> mtlFunc = func.getMTLFunction();
plDesc.computeFunction = mtlFunc;
if ( !mtlFunc ) { return false; }
plDesc.computeFunction = mtlFunc;
auto& funcRslts = func.shaderConversionResults;
_needsTessCtlSwizzleBuffer = funcRslts.needsSwizzleBuffer;