Skip to content

What is the simplest way to utilise a depth buffer with MSAA? #1668

Answered by cwfitzgerald
konall asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for the kind words! The solution is pretty simple, you just need to create a multi-sampled depth buffer. It will then do depth tests on every single sample not just every pixel. You can make a multisampled depth buffer the same was as a normal texture by making its sample count != 1.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@konall
Comment options

@kvark
Comment options

@konall
Comment options

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