Posts

Post not yet marked as solved
1 Replies
267 Views
Hi, This is in Xcode 15.2 (15C500b), macOS Sonoma 14.2.1 on M1 Pro. Steps: Create a new project of type Framework Add a new Metal Library target Select the schema for the newly created Metal Library target or add a dependency to the framework and select the framework schema Build Throws: Multiple commands produce '/Users/.../Library/Developer/Xcode/DerivedData/test_framework-ditkrfuwxcsuelfrvnlbjntbpvgq/Build/Products/Debug-iphoneos/mymetallib.metallib' Target 'mymetallib' (project 'test_framework'): MetalLink /Users/.../Library/Developer/Xcode/DerivedData/test_framework-ditkrfuwxcsuelfrvnlbjntbpvgq/Build/Products/Debug-iphoneos/mymetallib.metallib Target 'mymetallib' (project 'test_framework') has link command with output '/Users/.../Library/Developer/Xcode/DerivedData/test_framework-ditkrfuwxcsuelfrvnlbjntbpvgq/Build/Products/Debug-iphoneos/mymetallib.metallib' Thanks
Posted
by wasintw.
Last updated
.
Post marked as solved
1 Replies
907 Views
Hi, Trying to understand about the Xcode's GPU profiling information. I have one vertex shader and I only have one draw call. When capturing a frame, I get 72us in the Summary: And in the "GPU report" I'm getting ~6ms: How do both metrics relate with each other and why is there so much difference between them? Thanks
Posted
by wasintw.
Last updated
.
Post marked as solved
1 Replies
1.1k Views
When creating an MTLRenderPipelineState: [device newRenderPipelineStateWithDescriptor:pipelineDescriptor error:&error] the log output is like this: 2022-09-07 15:44:12.857438+0200 game[4177:155444] Compiler failed to build request And the error variable contains: error NSError * domain: "AGXMetalG13X" - code: 3 0x0000000156a203b0 I know the error is in my fragment shader but, is there a way to get a more descriptive description of what happend? Thanks
Posted
by wasintw.
Last updated
.
Post not yet marked as solved
0 Replies
600 Views
How could I have both pan gesture recognizing (NSPanGestureRecognizer) and mouse capturing (CGAssociateMouseAndMouseCursorPosition(false)) working together? Is it possible at all?
Posted
by wasintw.
Last updated
.
Post marked as solved
1 Replies
568 Views
Hi, Maybe I'm doing something wrong, but form MSL 2.4 spec, sample_compare should return either 0 or 1. I'm on a MBP 16 M1 Pro, Monterey 12.3.1 and Xcode 13.3.1. Now, I'm receiving a value in between. Coordinates, sampler etc.. seems correct: shadow = 0.125: Sorry, in the image is not seen, but "i == 0" and shadow_map is a texture with four slices. Thanks
Posted
by wasintw.
Last updated
.
Post not yet marked as solved
0 Replies
809 Views
Hi, MacOS version: 12.2.1 Xcode version: 13.2.1 I'm using MTKView and setting a drawableSize = 1024,768 and autoResizeDrawable = NO, however, drawableSizeWillChange() is being called on app startup, just once, and never again, with a different drawableSize. Maybe it has to do with incorrect drawable size? Thanks
Posted
by wasintw.
Last updated
.