Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sampling from depth textures #232

Open
TheSpydog opened this issue Aug 22, 2024 · 2 comments
Open

Sampling from depth textures #232

TheSpydog opened this issue Aug 22, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@TheSpydog
Copy link
Collaborator

The ability to sample from depth textures (which internally are reinterpreted through a color view) is very useful in certain situations. It was supported in Refresh v1.0, so we should revive the vestigial remnants and fully add support for this, in addition to an SDL_gpu_examples sample showcasing how it works!

@TheSpydog TheSpydog added the enhancement New feature or request label Aug 22, 2024
@Akaricchi
Copy link

Got enough of Taisei ported today to confirm that depth sampling still works fine on Vulkan, using the DEPTH_16 format. Haven't tested the other backends yet.

@thatcosmonaut
Copy link
Owner

Would be nice to add a shadow mapping example or something like that but I'm pretty sure this feature just works already.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants