Enum
VkPresentGravityFlagBitsKHR
Bitmask specifying presentation pixel gravity on either the x or y axis
Bits which may be set in the
VkSurfacePresentScalingCapabilitiesKHR::supportedPresentGravityX
or supportedPresentGravityY fields, specifying the gravity of
presented pixels supported by the surface, are:
typedef enum VkPresentGravityFlagBitsKHR {
VK_PRESENT_GRAVITY_MIN_BIT_KHR = 0x00000001,
VK_PRESENT_GRAVITY_MIN_BIT_EXT = VK_PRESENT_GRAVITY_MIN_BIT_KHR,
VK_PRESENT_GRAVITY_MAX_BIT_KHR = 0x00000002,
VK_PRESENT_GRAVITY_MAX_BIT_EXT = VK_PRESENT_GRAVITY_MAX_BIT_KHR,
VK_PRESENT_GRAVITY_CENTERED_BIT_KHR = 0x00000004,
VK_PRESENT_GRAVITY_CENTERED_BIT_EXT = VK_PRESENT_GRAVITY_CENTERED_BIT_KHR,
} VkPresentGravityFlagBitsKHR;
pub struct PresentGravityFlagBitsKHR(u32);
impl PresentGravityFlagBitsKHR {
pub const MIN: Self = 0x00000001;
pub const MIN_EXT: Self = Self::MIN;
pub const MAX: Self = 0x00000002;
pub const MAX_EXT: Self = Self::MAX;
pub const CENTERED: Self = 0x00000004;
pub const CENTERED_EXT: Self = Self::CENTERED;
}
#define VkPresentGravityFlagBitsEXT VkPresentGravityFlagBitsKHR
const PresentGravityFlagBitsEXT: _ = vk::PresentGravityFlagBitsKHR;
VK_PRESENT_GRAVITY_MIN_BIT_KHRmeans that the pixels will gravitate towards the top or left side of the surface.VK_PRESENT_GRAVITY_MAX_BIT_KHRmeans that the pixels will gravitate towards the bottom or right side of the surface.VK_PRESENT_GRAVITY_CENTERED_BIT_KHRmeans that the pixels will be centered in the surface.
If the value in VkSurfaceCapabilitiesKHR::currentTransform is
not VK_SURFACE_TRANSFORM_IDENTITY_BIT_KHR, it is
implementation-defined whether the gravity configuration applies to the
presented image before or after transformation.
Type
Enum