Merge pull request #1911 from etang-cw/NoAbortOnCompilationFailure
Check if shader compiled before adding it to a pipeline
This commit is contained in:
commit
b3ae0f48d0
@ -1050,8 +1050,8 @@ bool MVKGraphicsPipeline::addTessCtlShaderToPipeline(MTLComputePipelineDescripto
|
|||||||
|
|
||||||
MVKMTLFunction func = getMTLFunction(shaderConfig, _pTessCtlSS, "Tessellation control");
|
MVKMTLFunction func = getMTLFunction(shaderConfig, _pTessCtlSS, "Tessellation control");
|
||||||
id<MTLFunction> mtlFunc = func.getMTLFunction();
|
id<MTLFunction> mtlFunc = func.getMTLFunction();
|
||||||
plDesc.computeFunction = mtlFunc;
|
|
||||||
if ( !mtlFunc ) { return false; }
|
if ( !mtlFunc ) { return false; }
|
||||||
|
plDesc.computeFunction = mtlFunc;
|
||||||
|
|
||||||
auto& funcRslts = func.shaderConversionResults;
|
auto& funcRslts = func.shaderConversionResults;
|
||||||
_needsTessCtlSwizzleBuffer = funcRslts.needsSwizzleBuffer;
|
_needsTessCtlSwizzleBuffer = funcRslts.needsSwizzleBuffer;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user