Metal sep25 - Fixed compilation error (#1718)

This commit is contained in:
Alex Cristici
2023-10-02 22:02:47 +03:00
committed by GitHub
parent 4e65763bc1
commit ef351964a1
2 changed files with 2 additions and 2 deletions

View File

@@ -38,7 +38,7 @@ public:
return offscreenTexture->getResource<RenderableResource>().getUploadPassDescriptor();
}
MTLRenderPassDescriptorPtr getRenderPassDescriptor() const override {
const MTLRenderPassDescriptorPtr& getRenderPassDescriptor() const override {
return offscreenTexture->getResource<RenderableResource>().getRenderPassDescriptor();
}

View File

@@ -105,7 +105,7 @@ public:
return NS::TransferPtr(MTL::BlitPassDescriptor::alloc()->init());
}
MTLRenderPassDescriptorPtr getRenderPassDescriptor() const override {
const MTLRenderPassDescriptorPtr& getRenderPassDescriptor() const override {
assert(renderPassDescriptor);
return renderPassDescriptor;
}