mirror of
https://github.com/AxioDL/boo.git
synced 2025-07-07 05:36:02 +00:00
Minor Metal backend change
This commit is contained in:
parent
5f903c09ee
commit
9a7cadce3a
@ -1294,6 +1294,8 @@ IShaderPipeline* MetalDataFactory::Context::newShaderPipeline(const char* vertSo
|
|||||||
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);
|
||||||
MTLCompileOptions* compOpts = [MTLCompileOptions new];
|
MTLCompileOptions* compOpts = [MTLCompileOptions new];
|
||||||
@ -1362,6 +1364,7 @@ IShaderPipeline* MetalDataFactory::Context::newShaderPipeline(const char* vertSo
|
|||||||
colorWrite, alphaWrite, culling);
|
colorWrite, alphaWrite, culling);
|
||||||
d->m_SPs.emplace_back(retval);
|
d->m_SPs.emplace_back(retval);
|
||||||
return retval;
|
return retval;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
IShaderDataBinding*
|
IShaderDataBinding*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user