webgpu-native / webgpu-headers

**NOT STABLE YET!** See README.
https://webgpu-native.github.io/webgpu-headers/
BSD 3-Clause "New" or "Revised" License
386 stars 45 forks source link

Should nullability move inside WGPURenderPassDepthStencilAttachment? #408

Open kainino0x opened 1 day ago

kainino0x commented 1 day ago

WGPURenderPassDescriptor.depthStencilAttachment is a nullable pointer. Should we instead make it an inline struct and move the nullability to .depthStencilAttachment.view?

I think the only reason not to do this would be if we expect you would ever want to set a WGPURenderPassDepthStencilAttachment without a texture view (and without any new extended fields that take its place).

kainino0x commented 1 day ago

Oops, fixed typo in title.