Skip to content

Commit

Permalink
igl | metal | Fix label miss for MTLCommandBuffer (#172)
Browse files Browse the repository at this point in the history
Summary: Pull Request resolved: #172

Reviewed By: corporateshark, surffer3d

Differential Revision: D62015682

Pulled By: rokuz

fbshipit-source-id: e72d0a2407ce9f555a007ff71d2eb5f312417a38
  • Loading branch information
vinsentli authored and facebook-github-bot committed Sep 2, 2024
1 parent 15175fa commit a1fff77
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/igl/metal/CommandQueue.mm
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,10 @@
}
}

std::shared_ptr<ICommandBuffer> CommandQueue::createCommandBuffer(const CommandBufferDesc& /*desc*/,
std::shared_ptr<ICommandBuffer> CommandQueue::createCommandBuffer(const CommandBufferDesc& desc,
Result* outResult) {
id<MTLCommandBuffer> metalObject = [value_ commandBuffer];
metalObject.label = [NSString stringWithUTF8String:desc.debugName.c_str()];
auto resource = std::make_shared<CommandBuffer>(device_, metalObject);
Result::setOk(outResult);
return resource;
Expand Down

0 comments on commit a1fff77

Please sign in to comment.