Skip to content

Commit

Permalink
fix(macOS): Let the Metal texture be used for sampling
Browse files Browse the repository at this point in the history
  • Loading branch information
spouliot committed Jun 27, 2024
1 parent a6be0d1 commit 75b7da3
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ - (nonnull instancetype)initWithMetalKitView:(nonnull MTKView *)mtkView
mtkView.colorPixelFormat = MTLPixelFormatBGRA8Unorm;
mtkView.depthStencilPixelFormat = MTLPixelFormatDepth32Float_Stencil8;
mtkView.sampleCount = 1;
mtkView.framebufferOnly = false;
#if DEBUG
NSLog(@"initWithMetalKitView: paused %s enableSetNeedsDisplay %s", mtkView.paused ? "true" : "false", mtkView.enableSetNeedsDisplay ? "true" : "false");
#endif
Expand Down

0 comments on commit 75b7da3

Please sign in to comment.