[{"data":1,"prerenderedAt":714},["ShallowReactive",2],{"$fysXcQF1aCjm2iXsWfypFRkjAs6l_0lfhN5uPta84Vws":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":713,"_id":4},"VkPresentGravityFlagBitsKHR","Bitmask specifying presentation pixel gravity on either the x or y axis","VK_KHR_surface_maintenance1","enums",[],{"type":10,"children":11,"toc":711},"root",[12,53,559,639,677,705],{"type":13,"tag":14,"props":15,"children":16},"element","p",{},[17,20,25,27,34,36,43,45,51],{"type":18,"value":19},"text","Bits which ",{"type":13,"tag":21,"props":22,"children":24},"normative",{"type":23},"may",[],{"type":18,"value":26}," be set in the\n",{"type":13,"tag":28,"props":29,"children":31},"a",{"href":30},"/man/VkSurfacePresentScalingCapabilitiesKHR",[32],{"type":18,"value":33},"VkSurfacePresentScalingCapabilitiesKHR",{"type":18,"value":35},"::",{"type":13,"tag":37,"props":38,"children":40},"code",{"className":39},[],[41],{"type":18,"value":42},"supportedPresentGravityX",{"type":18,"value":44},"\nor ",{"type":13,"tag":37,"props":46,"children":48},{"className":47},[],[49],{"type":18,"value":50},"supportedPresentGravityY",{"type":18,"value":52}," fields, specifying the gravity of\npresented pixels supported by the surface, are:",{"type":13,"tag":54,"props":55,"children":56},"code-group",{},[57,237],{"type":13,"tag":58,"props":59,"children":65},"pre",{"className":60,"code":61,"filename":62,"language":63,"meta":64,"style":64},"language-c shiki shiki-themes github-light-default github-dark-default","typedef enum VkPresentGravityFlagBitsKHR {\n VK_PRESENT_GRAVITY_MIN_BIT_KHR = 0x00000001,\n VK_PRESENT_GRAVITY_MIN_BIT_EXT = VK_PRESENT_GRAVITY_MIN_BIT_KHR,\n VK_PRESENT_GRAVITY_MAX_BIT_KHR = 0x00000002,\n VK_PRESENT_GRAVITY_MAX_BIT_EXT = VK_PRESENT_GRAVITY_MAX_BIT_KHR,\n VK_PRESENT_GRAVITY_CENTERED_BIT_KHR = 0x00000004,\n VK_PRESENT_GRAVITY_CENTERED_BIT_EXT = VK_PRESENT_GRAVITY_CENTERED_BIT_KHR,\n} VkPresentGravityFlagBitsKHR;\n","C","c","",[66],{"type":13,"tag":37,"props":67,"children":68},{"__ignoreMap":64},[69,92,122,140,166,184,210,228],{"type":13,"tag":70,"props":71,"children":74},"span",{"class":72,"line":73},"line",1,[75,81,86],{"type":13,"tag":70,"props":76,"children":78},{"style":77},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[79],{"type":18,"value":80},"typedef",{"type":13,"tag":70,"props":82,"children":83},{"style":77},[84],{"type":18,"value":85}," enum",{"type":13,"tag":70,"props":87,"children":89},{"style":88},"--shiki-default:#1F2328;--shiki-dark:#E6EDF3",[90],{"type":18,"value":91}," VkPresentGravityFlagBitsKHR {\n",{"type":13,"tag":70,"props":93,"children":95},{"class":72,"line":94},2,[96,101,106,111,117],{"type":13,"tag":70,"props":97,"children":98},{"style":88},[99],{"type":18,"value":100}," VK_PRESENT_GRAVITY_MIN_BIT_KHR ",{"type":13,"tag":70,"props":102,"children":103},{"style":77},[104],{"type":18,"value":105},"=",{"type":13,"tag":70,"props":107,"children":108},{"style":77},[109],{"type":18,"value":110}," 0x",{"type":13,"tag":70,"props":112,"children":114},{"style":113},"--shiki-default:#0550AE;--shiki-dark:#79C0FF",[115],{"type":18,"value":116},"00000001",{"type":13,"tag":70,"props":118,"children":119},{"style":88},[120],{"type":18,"value":121},",\n",{"type":13,"tag":70,"props":123,"children":125},{"class":72,"line":124},3,[126,131,135],{"type":13,"tag":70,"props":127,"children":128},{"style":88},[129],{"type":18,"value":130}," VK_PRESENT_GRAVITY_MIN_BIT_EXT ",{"type":13,"tag":70,"props":132,"children":133},{"style":77},[134],{"type":18,"value":105},{"type":13,"tag":70,"props":136,"children":137},{"style":88},[138],{"type":18,"value":139}," VK_PRESENT_GRAVITY_MIN_BIT_KHR,\n",{"type":13,"tag":70,"props":141,"children":143},{"class":72,"line":142},4,[144,149,153,157,162],{"type":13,"tag":70,"props":145,"children":146},{"style":88},[147],{"type":18,"value":148}," VK_PRESENT_GRAVITY_MAX_BIT_KHR ",{"type":13,"tag":70,"props":150,"children":151},{"style":77},[152],{"type":18,"value":105},{"type":13,"tag":70,"props":154,"children":155},{"style":77},[156],{"type":18,"value":110},{"type":13,"tag":70,"props":158,"children":159},{"style":113},[160],{"type":18,"value":161},"00000002",{"type":13,"tag":70,"props":163,"children":164},{"style":88},[165],{"type":18,"value":121},{"type":13,"tag":70,"props":167,"children":169},{"class":72,"line":168},5,[170,175,179],{"type":13,"tag":70,"props":171,"children":172},{"style":88},[173],{"type":18,"value":174}," VK_PRESENT_GRAVITY_MAX_BIT_EXT ",{"type":13,"tag":70,"props":176,"children":177},{"style":77},[178],{"type":18,"value":105},{"type":13,"tag":70,"props":180,"children":181},{"style":88},[182],{"type":18,"value":183}," VK_PRESENT_GRAVITY_MAX_BIT_KHR,\n",{"type":13,"tag":70,"props":185,"children":187},{"class":72,"line":186},6,[188,193,197,201,206],{"type":13,"tag":70,"props":189,"children":190},{"style":88},[191],{"type":18,"value":192}," VK_PRESENT_GRAVITY_CENTERED_BIT_KHR ",{"type":13,"tag":70,"props":194,"children":195},{"style":77},[196],{"type":18,"value":105},{"type":13,"tag":70,"props":198,"children":199},{"style":77},[200],{"type":18,"value":110},{"type":13,"tag":70,"props":202,"children":203},{"style":113},[204],{"type":18,"value":205},"00000004",{"type":13,"tag":70,"props":207,"children":208},{"style":88},[209],{"type":18,"value":121},{"type":13,"tag":70,"props":211,"children":213},{"class":72,"line":212},7,[214,219,223],{"type":13,"tag":70,"props":215,"children":216},{"style":88},[217],{"type":18,"value":218}," VK_PRESENT_GRAVITY_CENTERED_BIT_EXT ",{"type":13,"tag":70,"props":220,"children":221},{"style":77},[222],{"type":18,"value":105},{"type":13,"tag":70,"props":224,"children":225},{"style":88},[226],{"type":18,"value":227}," VK_PRESENT_GRAVITY_CENTERED_BIT_KHR,\n",{"type":13,"tag":70,"props":229,"children":231},{"class":72,"line":230},8,[232],{"type":13,"tag":70,"props":233,"children":234},{"style":88},[235],{"type":18,"value":236},"} VkPresentGravityFlagBitsKHR;\n",{"type":13,"tag":58,"props":238,"children":243},{"className":239,"code":240,"filename":241,"language":242,"meta":64,"style":64},"language-rs shiki shiki-themes github-light-default github-dark-default","pub struct PresentGravityFlagBitsKHR(u32);\nimpl PresentGravityFlagBitsKHR {\n pub const MIN: Self = 0x00000001;\n pub const MIN_EXT: Self = Self::MIN;\n pub const MAX: Self = 0x00000002;\n pub const MAX_EXT: Self = Self::MAX;\n pub const CENTERED: Self = 0x00000004;\n pub const CENTERED_EXT: Self = Self::CENTERED;\n}\n","Rust","rs",[244],{"type":13,"tag":37,"props":245,"children":246},{"__ignoreMap":64},[247,281,298,341,386,423,468,505,550],{"type":13,"tag":70,"props":248,"children":249},{"class":72,"line":73},[250,255,260,266,271,276],{"type":13,"tag":70,"props":251,"children":252},{"style":77},[253],{"type":18,"value":254},"pub",{"type":13,"tag":70,"props":256,"children":257},{"style":77},[258],{"type":18,"value":259}," struct",{"type":13,"tag":70,"props":261,"children":263},{"style":262},"--shiki-default:#953800;--shiki-dark:#FFA657",[264],{"type":18,"value":265}," PresentGravityFlagBitsKHR",{"type":13,"tag":70,"props":267,"children":268},{"style":88},[269],{"type":18,"value":270},"(",{"type":13,"tag":70,"props":272,"children":273},{"style":262},[274],{"type":18,"value":275},"u32",{"type":13,"tag":70,"props":277,"children":278},{"style":88},[279],{"type":18,"value":280},");\n",{"type":13,"tag":70,"props":282,"children":283},{"class":72,"line":94},[284,289,293],{"type":13,"tag":70,"props":285,"children":286},{"style":77},[287],{"type":18,"value":288},"impl",{"type":13,"tag":70,"props":290,"children":291},{"style":262},[292],{"type":18,"value":265},{"type":13,"tag":70,"props":294,"children":295},{"style":88},[296],{"type":18,"value":297}," {\n",{"type":13,"tag":70,"props":299,"children":300},{"class":72,"line":124},[301,306,311,316,321,326,331,336],{"type":13,"tag":70,"props":302,"children":303},{"style":77},[304],{"type":18,"value":305}," pub",{"type":13,"tag":70,"props":307,"children":308},{"style":77},[309],{"type":18,"value":310}," const",{"type":13,"tag":70,"props":312,"children":313},{"style":113},[314],{"type":18,"value":315}," MIN",{"type":13,"tag":70,"props":317,"children":318},{"style":77},[319],{"type":18,"value":320},":",{"type":13,"tag":70,"props":322,"children":323},{"style":113},[324],{"type":18,"value":325}," Self",{"type":13,"tag":70,"props":327,"children":328},{"style":77},[329],{"type":18,"value":330}," =",{"type":13,"tag":70,"props":332,"children":333},{"style":113},[334],{"type":18,"value":335}," 0x00000001",{"type":13,"tag":70,"props":337,"children":338},{"style":88},[339],{"type":18,"value":340},";\n",{"type":13,"tag":70,"props":342,"children":343},{"class":72,"line":142},[344,348,352,357,361,365,369,373,377,382],{"type":13,"tag":70,"props":345,"children":346},{"style":77},[347],{"type":18,"value":305},{"type":13,"tag":70,"props":349,"children":350},{"style":77},[351],{"type":18,"value":310},{"type":13,"tag":70,"props":353,"children":354},{"style":113},[355],{"type":18,"value":356}," MIN_EXT",{"type":13,"tag":70,"props":358,"children":359},{"style":77},[360],{"type":18,"value":320},{"type":13,"tag":70,"props":362,"children":363},{"style":113},[364],{"type":18,"value":325},{"type":13,"tag":70,"props":366,"children":367},{"style":77},[368],{"type":18,"value":330},{"type":13,"tag":70,"props":370,"children":371},{"style":113},[372],{"type":18,"value":325},{"type":13,"tag":70,"props":374,"children":375},{"style":77},[376],{"type":18,"value":35},{"type":13,"tag":70,"props":378,"children":379},{"style":113},[380],{"type":18,"value":381},"MIN",{"type":13,"tag":70,"props":383,"children":384},{"style":88},[385],{"type":18,"value":340},{"type":13,"tag":70,"props":387,"children":388},{"class":72,"line":168},[389,393,397,402,406,410,414,419],{"type":13,"tag":70,"props":390,"children":391},{"style":77},[392],{"type":18,"value":305},{"type":13,"tag":70,"props":394,"children":395},{"style":77},[396],{"type":18,"value":310},{"type":13,"tag":70,"props":398,"children":399},{"style":113},[400],{"type":18,"value":401}," MAX",{"type":13,"tag":70,"props":403,"children":404},{"style":77},[405],{"type":18,"value":320},{"type":13,"tag":70,"props":407,"children":408},{"style":113},[409],{"type":18,"value":325},{"type":13,"tag":70,"props":411,"children":412},{"style":77},[413],{"type":18,"value":330},{"type":13,"tag":70,"props":415,"children":416},{"style":113},[417],{"type":18,"value":418}," 0x00000002",{"type":13,"tag":70,"props":420,"children":421},{"style":88},[422],{"type":18,"value":340},{"type":13,"tag":70,"props":424,"children":425},{"class":72,"line":186},[426,430,434,439,443,447,451,455,459,464],{"type":13,"tag":70,"props":427,"children":428},{"style":77},[429],{"type":18,"value":305},{"type":13,"tag":70,"props":431,"children":432},{"style":77},[433],{"type":18,"value":310},{"type":13,"tag":70,"props":435,"children":436},{"style":113},[437],{"type":18,"value":438}," MAX_EXT",{"type":13,"tag":70,"props":440,"children":441},{"style":77},[442],{"type":18,"value":320},{"type":13,"tag":70,"props":444,"children":445},{"style":113},[446],{"type":18,"value":325},{"type":13,"tag":70,"props":448,"children":449},{"style":77},[450],{"type":18,"value":330},{"type":13,"tag":70,"props":452,"children":453},{"style":113},[454],{"type":18,"value":325},{"type":13,"tag":70,"props":456,"children":457},{"style":77},[458],{"type":18,"value":35},{"type":13,"tag":70,"props":460,"children":461},{"style":113},[462],{"type":18,"value":463},"MAX",{"type":13,"tag":70,"props":465,"children":466},{"style":88},[467],{"type":18,"value":340},{"type":13,"tag":70,"props":469,"children":470},{"class":72,"line":212},[471,475,479,484,488,492,496,501],{"type":13,"tag":70,"props":472,"children":473},{"style":77},[474],{"type":18,"value":305},{"type":13,"tag":70,"props":476,"children":477},{"style":77},[478],{"type":18,"value":310},{"type":13,"tag":70,"props":480,"children":481},{"style":113},[482],{"type":18,"value":483}," CENTERED",{"type":13,"tag":70,"props":485,"children":486},{"style":77},[487],{"type":18,"value":320},{"type":13,"tag":70,"props":489,"children":490},{"style":113},[491],{"type":18,"value":325},{"type":13,"tag":70,"props":493,"children":494},{"style":77},[495],{"type":18,"value":330},{"type":13,"tag":70,"props":497,"children":498},{"style":113},[499],{"type":18,"value":500}," 0x00000004",{"type":13,"tag":70,"props":502,"children":503},{"style":88},[504],{"type":18,"value":340},{"type":13,"tag":70,"props":506,"children":507},{"class":72,"line":230},[508,512,516,521,525,529,533,537,541,546],{"type":13,"tag":70,"props":509,"children":510},{"style":77},[511],{"type":18,"value":305},{"type":13,"tag":70,"props":513,"children":514},{"style":77},[515],{"type":18,"value":310},{"type":13,"tag":70,"props":517,"children":518},{"style":113},[519],{"type":18,"value":520}," CENTERED_EXT",{"type":13,"tag":70,"props":522,"children":523},{"style":77},[524],{"type":18,"value":320},{"type":13,"tag":70,"props":526,"children":527},{"style":113},[528],{"type":18,"value":325},{"type":13,"tag":70,"props":530,"children":531},{"style":77},[532],{"type":18,"value":330},{"type":13,"tag":70,"props":534,"children":535},{"style":113},[536],{"type":18,"value":325},{"type":13,"tag":70,"props":538,"children":539},{"style":77},[540],{"type":18,"value":35},{"type":13,"tag":70,"props":542,"children":543},{"style":113},[544],{"type":18,"value":545},"CENTERED",{"type":13,"tag":70,"props":547,"children":548},{"style":88},[549],{"type":18,"value":340},{"type":13,"tag":70,"props":551,"children":553},{"class":72,"line":552},9,[554],{"type":13,"tag":70,"props":555,"children":556},{"style":88},[557],{"type":18,"value":558},"}\n",{"type":13,"tag":54,"props":560,"children":561},{},[562,588],{"type":13,"tag":58,"props":563,"children":565},{"className":60,"code":564,"filename":62,"language":63,"meta":64,"style":64},"#define VkPresentGravityFlagBitsEXT VkPresentGravityFlagBitsKHR\n",[566],{"type":13,"tag":37,"props":567,"children":568},{"__ignoreMap":64},[569],{"type":13,"tag":70,"props":570,"children":571},{"class":72,"line":73},[572,577,583],{"type":13,"tag":70,"props":573,"children":574},{"style":77},[575],{"type":18,"value":576},"#define",{"type":13,"tag":70,"props":578,"children":580},{"style":579},"--shiki-default:#8250DF;--shiki-dark:#D2A8FF",[581],{"type":18,"value":582}," VkPresentGravityFlagBitsEXT",{"type":13,"tag":70,"props":584,"children":585},{"style":88},[586],{"type":18,"value":587}," VkPresentGravityFlagBitsKHR\n",{"type":13,"tag":58,"props":589,"children":591},{"className":239,"code":590,"filename":241,"language":242,"meta":64,"style":64},"const PresentGravityFlagBitsEXT: _ = vk::PresentGravityFlagBitsKHR;\n",[592],{"type":13,"tag":37,"props":593,"children":594},{"__ignoreMap":64},[595],{"type":13,"tag":70,"props":596,"children":597},{"class":72,"line":73},[598,603,608,612,617,621,626,630,635],{"type":13,"tag":70,"props":599,"children":600},{"style":77},[601],{"type":18,"value":602},"const",{"type":13,"tag":70,"props":604,"children":605},{"style":113},[606],{"type":18,"value":607}," PresentGravityFlagBitsEXT",{"type":13,"tag":70,"props":609,"children":610},{"style":77},[611],{"type":18,"value":320},{"type":13,"tag":70,"props":613,"children":614},{"style":88},[615],{"type":18,"value":616}," _ ",{"type":13,"tag":70,"props":618,"children":619},{"style":77},[620],{"type":18,"value":105},{"type":13,"tag":70,"props":622,"children":623},{"style":262},[624],{"type":18,"value":625}," vk",{"type":13,"tag":70,"props":627,"children":628},{"style":77},[629],{"type":18,"value":35},{"type":13,"tag":70,"props":631,"children":632},{"style":262},[633],{"type":18,"value":634},"PresentGravityFlagBitsKHR",{"type":13,"tag":70,"props":636,"children":637},{"style":88},[638],{"type":18,"value":340},{"type":13,"tag":640,"props":641,"children":642},"ul",{},[643,655,666],{"type":13,"tag":644,"props":645,"children":646},"li",{},[647,653],{"type":13,"tag":37,"props":648,"children":650},{"className":649},[],[651],{"type":18,"value":652},"VK_PRESENT_GRAVITY_MIN_BIT_KHR",{"type":18,"value":654}," means that the pixels will\ngravitate towards the top or left side of the surface.",{"type":13,"tag":644,"props":656,"children":657},{},[658,664],{"type":13,"tag":37,"props":659,"children":661},{"className":660},[],[662],{"type":18,"value":663},"VK_PRESENT_GRAVITY_MAX_BIT_KHR",{"type":18,"value":665}," means that the pixels will\ngravitate towards the bottom or right side of the surface.",{"type":13,"tag":644,"props":667,"children":668},{},[669,675],{"type":13,"tag":37,"props":670,"children":672},{"className":671},[],[673],{"type":18,"value":674},"VK_PRESENT_GRAVITY_CENTERED_BIT_KHR",{"type":18,"value":676}," means that the pixels will be\ncentered in the surface.",{"type":13,"tag":14,"props":678,"children":679},{},[680,682,688,689,695,697,703],{"type":18,"value":681},"If the value in ",{"type":13,"tag":28,"props":683,"children":685},{"href":684},"/man/VkSurfaceCapabilitiesKHR",[686],{"type":18,"value":687},"VkSurfaceCapabilitiesKHR",{"type":18,"value":35},{"type":13,"tag":37,"props":690,"children":692},{"className":691},[],[693],{"type":18,"value":694},"currentTransform",{"type":18,"value":696}," is\nnot ",{"type":13,"tag":37,"props":698,"children":700},{"className":699},[],[701],{"type":18,"value":702},"VK_SURFACE_TRANSFORM_IDENTITY_BIT_KHR",{"type":18,"value":704},", it is\nimplementation-defined whether the gravity configuration applies to the\npresented image before or after transformation.",{"type":13,"tag":706,"props":707,"children":708},"style",{},[709],{"type":18,"value":710},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":64,"searchDepth":94,"depth":94,"links":712},[],"markdown",1773054772874]