Post

Replies

Boosts

Views

Activity

NSImage issue when try to deploy a MacOS13 version on OS14 and Xcode15
I cannot set "minimum deployment version" of the software into MacOS 13.0 on MacOS 14.0 beta 2, with Xcode 15 beta. This will give me an error in GeneratedAssetSymbols.swift file. The error is: 'let' property 'isTemplate' may not be initialized directly; use "self.init(...)" or "self = ..." instead. However, development on MacOS 14 is totally fine. Is this issue caused by my implementation or something changes in the SDK? Thanks!
3
0
881
Jun ’23
How to sample a Mesh in Metal Ray-tracing Structure.
I am learning Accelerating ray tracing using Metal. The area light has its own struct in this sample code, but I want to sample rays directly from the LightMesh. Can I get the instances and geometry of lightMesh without using resources buffer? It seems the geometries are already loaded in the GPU because Metal3 is able to do the intersection test. However, I can only get primitive_data during the intersection, and cannot get the information when I tried to do sampling. Thanks a lot!
2
1
910
Jun ’23
Add Objects in NS::Array (MetalCPP)
I found it is really difficult to add or modify the objects in MetalCPP with NS::Array, and there is no NS::MutableArray. I tried to use std::vector<MTL::AccelerationStructure*>* instead. However, MTL::InstanceAccelerationStructureDescriptor setInstancedAccelerationStructures() method needs to pass in a NS::Array type! How can I convert between them? I did all those in C++.
1
0
663
Jun ’23