Skip to content

Two depth buffer in a single pass ? #4657

Answered by Kangz
jay19240 asked this question in Q&A
Discussion options

You must be logged in to vote

It isn't possible with depth buffers, there can only be a single one attached.

You could do something like use a depth buffer with depthwrite and depthCompare <= and a R32Float attachment with GPUBlendOperation max, but that's kind of a hack and might not work depending on what you want to do with the data afterwards.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@jay19240
Comment options

@Kangz
Comment options

Answer selected by jay19240
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants