Skip to content

Conversation

@unknownbrackets
Copy link
Collaborator

Also on desktop OpenGL. In both cases, an extension exists to allow directly writing to stencil.

This has been showing up as supported on some newer Adreno devices (7xx, etc.) and should be more efficient than the previous 8 pass method. Not supported on NVIDIA, but I tested on an Intel GPU.

A small optimization, but it was easy.

-[Unknown]

This prevents multiple passes to upload stencil buffers.
Also corrects handling of non-24 bit depth when reducing the range.
Copy link
Owner

@hrydgard hrydgard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, why not. It's a shame though that NV still hasn't implemented support for this in their hardware.

@hrydgard hrydgard added the GE emulation Backend-independent GPU issues label Nov 25, 2022
@hrydgard hrydgard added this to the v1.14.0 milestone Nov 25, 2022
@hrydgard hrydgard merged commit d97035f into hrydgard:master Nov 25, 2022
@unknownbrackets unknownbrackets deleted the stencil-opt branch November 25, 2022 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

GE emulation Backend-independent GPU issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants