Repository navigation
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should it be just
VkSurfaceTransformFlagBitsKHR(0)in all cases?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
0isn’t valid here; identity isVK_SURFACE_TRANSFORM_IDENTITY_BIT_KHR (1). We can remove the Android guard and prefer identity on all platforms, while retaining the supported-transform check and fallback.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Base on this guide here: https://docs.vulkan.org/samples/latest/samples/performance/surface_rotation/README.html
0allowed.Or more exact wording:
Basically, as long as we letting composer do it's job we good.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed on letting the compositor handle rotation. The linked sample uses
VK_SURFACE_TRANSFORM_IDENTITY_BIT_KHR, not0. I can remove the Android guard and use that selection across platforms, keeping the supported-transform check.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good:
VK_SURFACE_TRANSFORM_IDENTITY_BIT_KHRby default, if possible andcurrentTransformotherwiseThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated as suggested: prefer
VK_SURFACE_TRANSFORM_IDENTITY_BIT_KHRwhen supported, otherwise usecurrentTransform. Removed the Android guard.