Minor Metal backend change

This commit is contained in:
Jack Andersen 2017-03-19 19:08:19 -10:00
parent 5f903c09ee
commit 9a7cadce3a

View File

@ -1293,6 +1293,8 @@ IShaderPipeline* MetalDataFactory::Context::newShaderPipeline(const char* vertSo
BlendFactor srcFac, BlendFactor dstFac, Primitive prim, BlendFactor srcFac, BlendFactor dstFac, Primitive prim,
ZTest depthTest, bool depthWrite, bool colorWrite, ZTest depthTest, bool depthWrite, bool colorWrite,
bool alphaWrite, CullMode culling) bool alphaWrite, CullMode culling)
{
@autoreleasepool
{ {
MetalData* d = MetalDataFactoryImpl::m_deferredData.get(); MetalData* d = MetalDataFactoryImpl::m_deferredData.get();
MetalDataFactoryImpl& factory = static_cast<MetalDataFactoryImpl&>(m_parent); MetalDataFactoryImpl& factory = static_cast<MetalDataFactoryImpl&>(m_parent);
@ -1363,6 +1365,7 @@ IShaderPipeline* MetalDataFactory::Context::newShaderPipeline(const char* vertSo
d->m_SPs.emplace_back(retval); d->m_SPs.emplace_back(retval);
return retval; return retval;
} }
}
IShaderDataBinding* IShaderDataBinding*
MetalDataFactory::Context::newShaderDataBinding(IShaderPipeline* pipeline, MetalDataFactory::Context::newShaderDataBinding(IShaderPipeline* pipeline,