You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calling clear_attcahment after the viewport is set changes the viewport but does not reset it.
I've a modified quad example for it: https://github.com/zakorgy/gfx/tree/clear-attachment (just added a clear_attachment to clear an area to red)
The expected result with Vulkan and DX12:
The actual result with Metal, the rendered image is flipped:
The text was updated successfully, but these errors were encountered:
zakorgy
changed the title
[mtl] clear_attachments changes viewport but does not reset it
[mtl] clear_attachments changes viewport but does not reset it
Dec 18, 2019
Short info header:
Calling
clear_attcahment
after the viewport is set changes the viewport but does not reset it.I've a modified quad example for it: https://github.com/zakorgy/gfx/tree/clear-attachment (just added a
clear_attachment
to clear an area to red)The expected result with Vulkan and DX12:
The actual result with Metal, the rendered image is flipped:
I suspect this is caused by changing the viewport in
clear_attachments
: https://github.com/gfx-rs/gfx/blob/hal-0.4/src/backend/metal/src/command.rs#L2953 . Also I'm not sure what happens with scissor, because it's also set for the clear but doesn't seem to affect the result.cc @kvark
The text was updated successfully, but these errors were encountered: