Skip to content

Commit 317576a

Browse files
corporatesharkmeta-codesync[bot]
authored andcommitted
igl | metal | Add Tracy profiler markers to Framebuffer (macos)
Reviewed By: rudybear Differential Revision: D114852415 fbshipit-source-id: e028e15f3f1255d07aff470dff45ffafb7e1f576
1 parent 7c90cb0 commit 317576a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/igl/metal/macos/Framebuffer.mm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
#include <igl/metal/macos/Framebuffer.h>
99

10+
#include <igl/Macros.h>
1011
#include <igl/Texture.h>
1112
#include <igl/metal/CommandQueue.h>
1213

@@ -22,6 +23,7 @@
2223
bool Framebuffer::canCopy(ICommandQueue& cmdQueue,
2324
id<MTLTexture> texture,
2425
const TextureRangeDesc& range) const {
26+
IGL_PROFILER_FUNCTION();
2527
const bool result = texture.storageMode == MTLStorageModeManaged;
2628
auto iglMtlCmdQueue = static_cast<CommandQueue&>(cmdQueue);
2729

0 commit comments

Comments
 (0)