-
-
Notifications
You must be signed in to change notification settings - Fork 99
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
Stencil Op is hardcoded to DONT_CARE #216
Comments
Correct me if I'm wrong. Someone tries to use stencil and stencil buffer contains checkboard? |
Some drivers will intentionally give you some random pattern when you read uninitialized (or undefined) memory, for the purpose of catching bugs. |
Well, you probably shouldn't read from uninitialized memory :) |
You keep missing the point, and therefore your statements like “you probably shouldn't read from uninitialized memory” are completely out of context. Also I think you don’t understand how loadOp is supposed to work. loadOp is performed for the first surpass that uses the resource, and afterwards other subpasses can access the buffer normally. Therefore it’s not any unsupported thing. Back to the topic, the rendy |
I guess that I have some knowledge about how it works ;)
So, if I'm not miss anything, you're trying to set clear value for stencil buffer and expect it from read operations, right? |
This is correct.
Yeah, this is probably one of a way to properly expose it. I don't know well about implementations, but I have read NVIDIA's tips saying that you should avoid clearing depth or stencil individually (because that triggers the slow path). I'm not sure if it applies to loadOp too. |
Interesting. What about AMD? |
AMD does not support the packed format (D24S8) at all so I suspect they have separate storages for the two. |
rendy/graph/src/node/render/pass.rs
Line 542 in 2d5a4a1
Stencil isn't enabled by default in Amethyst, but well, this causes trouble (actually nondeterminism) when it's actually used. Only AMD drivers seem to emit checkboard patterns.
The text was updated successfully, but these errors were encountered: