When doing depth-only render passes, you still have to specify colorAttachments at the moment. This seems unnecessary:
const renderDepthPass = encoder.beginRenderPass({
colorAttachments: [], // UNNECESSARY
depthStencilAttachment: {
view: depthTexture.createView(),
depthLoadOp: "clear",
depthStoreOp: "store",
depthClearValue: 0.0,
stencilLoadOp: "clear",
stencilStoreOp: "store",
stencilClearValue: 0,
}
});
Maybe we could remove the required from that member?