No depth attachment in the new MTL4RenderPipelineDescriptor ?

Hello everyone,

I must have missed something but why isn't there a depthAttachmentPixelFormat to the new Metal 4 MTL4RenderPipelineDescriptor, unlike the old MTLRenderPipelineDescriptor?

So how do you set the depth pixel format?

Thanks in advance!

Answered by noah-w in 849511022

You no longer need to set the depth format ahead of time; you can just supply a depth texture when setting up your render pass later on.

Accepted Answer

You no longer need to set the depth format ahead of time; you can just supply a depth texture when setting up your render pass later on.

Oh, I see! Thanks, noah-w! That's a nice change... But why not do the same thing with colorAttachments?

No depth attachment in the new MTL4RenderPipelineDescriptor ?
 
 
Q