Merge branch 'master' of https://github.com/KhronosGroup/MoltenVK
This commit is contained in:
commit
d51e9faa33
@ -284,7 +284,11 @@ MTLRenderPipelineDescriptor* MVKGraphicsPipeline::getMTLRenderPipelineDescriptor
|
|||||||
// Fragment shader
|
// Fragment shader
|
||||||
if (mvkAreFlagsEnabled(pSS->stage, VK_SHADER_STAGE_FRAGMENT_BIT)) {
|
if (mvkAreFlagsEnabled(pSS->stage, VK_SHADER_STAGE_FRAGMENT_BIT)) {
|
||||||
shaderContext.options.entryPointStage = spv::ExecutionModelFragment;
|
shaderContext.options.entryPointStage = spv::ExecutionModelFragment;
|
||||||
plDesc.fragmentFunction = mvkShdrMod->getMTLFunction(&shaderContext, pSS->pSpecializationInfo, _pipelineCache).mtlFunction;
|
id<MTLFunction> mtlFunction = mvkShdrMod->getMTLFunction(&shaderContext, pSS->pSpecializationInfo, _pipelineCache).mtlFunction;
|
||||||
|
if ( !mtlFunction ) {
|
||||||
|
setConfigurationResult(mvkNotifyErrorWithText(VK_ERROR_INITIALIZATION_FAILED, "Fragment shader function could not be compiled into pipeline. See previous error."));
|
||||||
|
}
|
||||||
|
plDesc.fragmentFunction = mtlFunction;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user