metal Questions

1

Solved

I'm attempting to build my project after upgrading to XCode 16 and am having trouble getting it to compile. When I attempt to build the project I get an error: air-lld:1:1 symbol(s) not found for t...
Shoestring asked 20/9 at 4:19

5

Solved

How would I go about getting a random number in a Metal shader? I searched for "random" in The Metal Shading Language Specification, but found nothing.
Malvina asked 26/11, 2017 at 18:21

1

I find it lately almost impossible to capture a Metal Frame. This is so for my own Apps (all iOS Apps) as well as for sample Metal macOS and Metal iOS Apps downloaded freshly from Apple website (ht...
Containerize asked 16/1 at 23:21

5

Solved

I'm building a macOS app via Xcode. Every time I build, I get the log output: Metal API Validation Enabled To my knowledge my app is not using any Metal features. I'm not using hardware-accele...
Sonata asked 11/3, 2020 at 22:49

3

I am currently working on live filters using Metal. After defining my CIImage I render the image to a MTLTexture. Below is my rendering code. context is a CIContext backed by Metal; targetTexture ...
Vladi asked 1/10, 2017 at 15:28

1

I added a sample code if someone want's to try fixing it: https://www.dropbox.com/s/6t6neo40qjganra/To%20be%20fixed.zip?dl=1 Im making an AR app using Vuforia SDK. Their sample code contains video...
Demagoguery asked 21/7, 2021 at 13:52

4

Solved

I'm interested in moving away from Xcode and manually compiling Metal shaders in a project for a mixed-language application. I have no idea how to do this, though. Xcode hides the details of shade...
Congdon asked 30/8, 2015 at 16:25

1

Solved

I have SpriteKit nodes on which I apply Core Image filters using SKEffectNode. The sprites are images added by the user on the scene, and can be of any size. Some of the filters change the size of ...
Kernite asked 6/1 at 22:0

1

To avoid writing to a constant buffer from both the gpu and cpu at the same time, Apple recommends using a triple-buffered system with the help of a semaphore to prevent the cpu getting too far ahe...
Walliw asked 10/8, 2016 at 17:3

4

Solved

I'm stuck with SwiftUI and Metal up to the point of being about to give up. I got this example from https://developer.apple.com/forums/thread/119112?answerId=654964022#654964022 : import MetalKit s...
Lambeth asked 4/1, 2021 at 22:22

3

Solved

I'm new to Swift and Mac development and I'm trying to make a framework (only macOS) that can open a Metal window. I use Xcode Version 11.3.1 on macOS version 10.15.2. I started from the examples ...
Delanos asked 18/3, 2020 at 10:41

2

In Metal on iOS the default colorPixelFormat is bgra8Unorm. When I change format to rgba16Float all imagery brightens. Why? An example: Artwork MTKView with format bgra8Unorm. Texture-mapped ...
Hooked asked 18/1, 2019 at 14:42

4

Solved

I have installed Tensorflow and Metal plugin by using pip on Mac Mini 2020 M1, $ pip3 install tensorflow-macos tensorflow-metal $ pip3 uninstall numpy # related to https://mcmap.net/q/117600/-value...
Housum asked 9/6, 2021 at 23:44

2

Solved

I have a kernel that outputs a texture, and it is a valid MTLTexture object. I want to save it to a png file in the working directory of my project. How should this be done? The texture format is ...
Helpmate asked 21/10, 2018 at 22:32

2

Solved

In GLSL, I would simply use out vec3 array[10];, to pass an array from the vertex shader to the fragment shader. In Metal, however, I thought to do it this way: struct FragmentIn { float4 positio...
Averett asked 21/10, 2017 at 19:20

6

Solved

I tried: let scale = UIScreen.mainScreen().scale UIGraphicsBeginImageContextWithOptions(metalLayer.bounds.size, false, scale) // metalLayer.renderInContext(UIGraphicsGetCurrentContext()!) // se...
Ipswich asked 21/11, 2015 at 13:53

2

Solved

I have a MTLTexture containing 16bit unsigned integers (MTLPixelFormatR16Uint). The values range from about 7000 to 20000, with 0 being used as a 'nodata' value, which is why it is skipped in the c...
Gastric asked 16/4, 2016 at 11:37

3

Solved

The image below shows a rotated box that should be moved horizontally on the X and Z axes. Y should stay unaffected to simplify the scenario. The box could also be the SCNNode of the camera, so I g...
Mightily asked 5/4, 2017 at 17:25

1

I've been trying to get into ML and I wanted to follow a course on it but it requires Tensorflow and I've been trying to get that working on my system. I have the 2021 14" 16GB Macbook Pro wit...
Ludvig asked 14/12, 2022 at 0:12

0

I am trying to load a pre-trained weight to mps GPU device of Apple M1. To reproduce the issue minimally, I can run this: torch.load('yolov7_training.pt', map_location='mps') which produces the fo...
Abrahamabrahams asked 8/11, 2022 at 20:11

2

Solved

These are the two the blend-mode i used in OpenGL what is the conversion to the metal in IOS glEnable(GL_BLEND); glBlendFuncSeparate(GL_SRC_ALPHA,GL_ONE_MINUS_SRC_ALPHA,GL_ONE,GL_ONE_MINUS_SRC_A...
Gounod asked 18/7, 2018 at 9:33

3

Solved

I want to see programmatically how much GPU time a part of my application consumes on macOS and iOS. On OpenGL and D3D I can use GPU timer query objects. I searched and couldn't find anything simil...
Extravert asked 11/7, 2017 at 13:5

2

here is the error: Undefined symbol(s) for architecture 'air64':_Z6dnoiseDv2_fPU9MTLdeviceKi', referenced from:_Z9curlNoiseDv2_fhffPU9MTLdeviceKi in nxNoise.air air-lld: error: symbol(s) not found ...
Loesch asked 21/9, 2020 at 1:17

1

I am trying to draw (and frequently update) a Polyline with the iOS Metal framework and Swift 4 / iOS 11 / XCode 9. For the final project I want to be able to "draw" a line with my finger, capturin...
Extracellular asked 17/11, 2017 at 20:43

1

Is there any public document that clearly states CoreML's strategy for GPU device placement when running inference models on macOS? How does it decide if it should run on integrated, discrete or CP...
Aglitter asked 17/10, 2019 at 17:21

© 2022 - 2024 — McMap. All rights reserved.