Open DGriffin91 opened 2 months ago
Thinking about this more, maybe it would be better to just first check if they have the same total attachment quantity? Assuming that's a requirement anyway.
Was just realizing that some of the checks at the end don't take into account that there may only be color attachments or only be depth attachments. Needs more work.
Depth only passes are useful for depth prepasses and non-vsm shadow maps.
This PR addresses two issues that were blocking using depth only passes.
render_area()
wasn't taking into account the depth attachmentAttachment::are_compatible
allows one or both of the attachments to be none. I tried addressing this inAttachment::are_compatible
but it seems the usage elsewhere needs to be able to allow one of the attachments to be none.I updated the multipass example with a depth only prepass for testing. This doesn't need to be included in the PR, or could be made optional. Since this example uses the stencil buffer for layering rather than the depth buffer, further adjustments would need to be made for an appropriate example.