VK: Use surface currentTransform as swapchain pre-transform. Issue #3473 - #3723
VK: Use surface currentTransform as swapchain pre-transform. Issue #3473#3723bkaradzic wants to merge 1 commit into
Conversation
|
👍 That is pretty similar to what I did. The other part is that the rendering should be setup properly when rendering to swapchain fb. SetViewPort/SetScissor/projection matrix should be rotated too and the dfdx/dfdy functions in the shader. I have handled inside bgfx, but I guess could be handled outside of bgfx. But the user should know about if prerotation is needed. |
|
Yeah, I was thinking of that. While I can rotate viewport, scissor, this shader part seem very non-standard feature. |
|
This whole prerotation thing is a mess In my opinion. It could have been much better if android(google?) would just require that devices with vulkan have a DPU that can handle this. The shader dfdx/dfdy part wasn't needed for us so I skipped it, but in general it is needed. |
cc @attilaz