Thanks! However that is unfortunate news because I need to mimic creating the MTLTextureDescriptor like this
let depthTextureDescriptor = MTLTextureDescriptor(
depthTextureDescriptor.width = Int(drawableSize.width)
depthTextureDescriptor.height = Int(drawableSize.height)
depthTextureDescriptor.pixelFormat = .depth32Float
depthTextureDescriptor.usage = [.renderTarget, .shaderWrite]
and then create a depthTestTexture
let depthTestTexture = renderer.device.makeTexture(descriptor: depthTextureDescriptor)
then set it to the renderPassDescriptor:
renderPassDescriptor.depthAttachment.texture = depthTestTexture
.
I've tried converting that to RealityKit, however, I get stuck on there not being any depth pixel formats.
On another note: Do you happen to know if SceneKit and SCNShadable/SCNProgram allow one to set the depth pixel format?