[{"data":1,"prerenderedAt":445},["ShallowReactive",2],{"ohpgbRRKfx":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":444,"_id":4},"VkPresentGravityFlagBitsEXT","Bitmask specifying presentation pixel gravity on either the x or y axis","VK_EXT_surface_maintenance1","enums",[],{"type":10,"children":11,"toc":442},"root",[12,53,370,408,436],{"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/VkSurfacePresentScalingCapabilitiesEXT",[32],{"type":18,"value":33},"VkSurfacePresentScalingCapabilitiesEXT",{"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,183],{"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 VkPresentGravityFlagBitsEXT {\n VK_PRESENT_GRAVITY_MIN_BIT_EXT = 0x00000001,\n VK_PRESENT_GRAVITY_MAX_BIT_EXT = 0x00000002,\n VK_PRESENT_GRAVITY_CENTERED_BIT_EXT = 0x00000004,\n} VkPresentGravityFlagBitsEXT;\n","C","c","",[66],{"type":13,"tag":37,"props":67,"children":68},{"__ignoreMap":64},[69,92,122,148,174],{"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}," VkPresentGravityFlagBitsEXT {\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_EXT ",{"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,139,144],{"type":13,"tag":70,"props":127,"children":128},{"style":88},[129],{"type":18,"value":130}," VK_PRESENT_GRAVITY_MAX_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":77},[138],{"type":18,"value":110},{"type":13,"tag":70,"props":140,"children":141},{"style":113},[142],{"type":18,"value":143},"00000002",{"type":13,"tag":70,"props":145,"children":146},{"style":88},[147],{"type":18,"value":121},{"type":13,"tag":70,"props":149,"children":151},{"class":72,"line":150},4,[152,157,161,165,170],{"type":13,"tag":70,"props":153,"children":154},{"style":88},[155],{"type":18,"value":156}," VK_PRESENT_GRAVITY_CENTERED_BIT_EXT ",{"type":13,"tag":70,"props":158,"children":159},{"style":77},[160],{"type":18,"value":105},{"type":13,"tag":70,"props":162,"children":163},{"style":77},[164],{"type":18,"value":110},{"type":13,"tag":70,"props":166,"children":167},{"style":113},[168],{"type":18,"value":169},"00000004",{"type":13,"tag":70,"props":171,"children":172},{"style":88},[173],{"type":18,"value":121},{"type":13,"tag":70,"props":175,"children":177},{"class":72,"line":176},5,[178],{"type":13,"tag":70,"props":179,"children":180},{"style":88},[181],{"type":18,"value":182},"} VkPresentGravityFlagBitsEXT;\n",{"type":13,"tag":58,"props":184,"children":189},{"className":185,"code":186,"filename":187,"language":188,"meta":64,"style":64},"language-rs shiki shiki-themes github-light-default github-dark-default","pub struct PresentGravityFlagBitsEXT(u32);\nimpl PresentGravityFlagBitsEXT {\n pub const MIN: Self = 0x00000001;\n pub const MAX: Self = 0x00000002;\n pub const CENTERED: Self = 0x00000004;\n}\n","Rust","rs",[190],{"type":13,"tag":37,"props":191,"children":192},{"__ignoreMap":64},[193,227,244,287,324,361],{"type":13,"tag":70,"props":194,"children":195},{"class":72,"line":73},[196,201,206,212,217,222],{"type":13,"tag":70,"props":197,"children":198},{"style":77},[199],{"type":18,"value":200},"pub",{"type":13,"tag":70,"props":202,"children":203},{"style":77},[204],{"type":18,"value":205}," struct",{"type":13,"tag":70,"props":207,"children":209},{"style":208},"--shiki-default:#953800;--shiki-dark:#FFA657",[210],{"type":18,"value":211}," PresentGravityFlagBitsEXT",{"type":13,"tag":70,"props":213,"children":214},{"style":88},[215],{"type":18,"value":216},"(",{"type":13,"tag":70,"props":218,"children":219},{"style":208},[220],{"type":18,"value":221},"u32",{"type":13,"tag":70,"props":223,"children":224},{"style":88},[225],{"type":18,"value":226},");\n",{"type":13,"tag":70,"props":228,"children":229},{"class":72,"line":94},[230,235,239],{"type":13,"tag":70,"props":231,"children":232},{"style":77},[233],{"type":18,"value":234},"impl",{"type":13,"tag":70,"props":236,"children":237},{"style":208},[238],{"type":18,"value":211},{"type":13,"tag":70,"props":240,"children":241},{"style":88},[242],{"type":18,"value":243}," {\n",{"type":13,"tag":70,"props":245,"children":246},{"class":72,"line":124},[247,252,257,262,267,272,277,282],{"type":13,"tag":70,"props":248,"children":249},{"style":77},[250],{"type":18,"value":251}," pub",{"type":13,"tag":70,"props":253,"children":254},{"style":77},[255],{"type":18,"value":256}," const",{"type":13,"tag":70,"props":258,"children":259},{"style":113},[260],{"type":18,"value":261}," MIN",{"type":13,"tag":70,"props":263,"children":264},{"style":77},[265],{"type":18,"value":266},":",{"type":13,"tag":70,"props":268,"children":269},{"style":113},[270],{"type":18,"value":271}," Self",{"type":13,"tag":70,"props":273,"children":274},{"style":77},[275],{"type":18,"value":276}," =",{"type":13,"tag":70,"props":278,"children":279},{"style":113},[280],{"type":18,"value":281}," 0x00000001",{"type":13,"tag":70,"props":283,"children":284},{"style":88},[285],{"type":18,"value":286},";\n",{"type":13,"tag":70,"props":288,"children":289},{"class":72,"line":150},[290,294,298,303,307,311,315,320],{"type":13,"tag":70,"props":291,"children":292},{"style":77},[293],{"type":18,"value":251},{"type":13,"tag":70,"props":295,"children":296},{"style":77},[297],{"type":18,"value":256},{"type":13,"tag":70,"props":299,"children":300},{"style":113},[301],{"type":18,"value":302}," MAX",{"type":13,"tag":70,"props":304,"children":305},{"style":77},[306],{"type":18,"value":266},{"type":13,"tag":70,"props":308,"children":309},{"style":113},[310],{"type":18,"value":271},{"type":13,"tag":70,"props":312,"children":313},{"style":77},[314],{"type":18,"value":276},{"type":13,"tag":70,"props":316,"children":317},{"style":113},[318],{"type":18,"value":319}," 0x00000002",{"type":13,"tag":70,"props":321,"children":322},{"style":88},[323],{"type":18,"value":286},{"type":13,"tag":70,"props":325,"children":326},{"class":72,"line":176},[327,331,335,340,344,348,352,357],{"type":13,"tag":70,"props":328,"children":329},{"style":77},[330],{"type":18,"value":251},{"type":13,"tag":70,"props":332,"children":333},{"style":77},[334],{"type":18,"value":256},{"type":13,"tag":70,"props":336,"children":337},{"style":113},[338],{"type":18,"value":339}," CENTERED",{"type":13,"tag":70,"props":341,"children":342},{"style":77},[343],{"type":18,"value":266},{"type":13,"tag":70,"props":345,"children":346},{"style":113},[347],{"type":18,"value":271},{"type":13,"tag":70,"props":349,"children":350},{"style":77},[351],{"type":18,"value":276},{"type":13,"tag":70,"props":353,"children":354},{"style":113},[355],{"type":18,"value":356}," 0x00000004",{"type":13,"tag":70,"props":358,"children":359},{"style":88},[360],{"type":18,"value":286},{"type":13,"tag":70,"props":362,"children":364},{"class":72,"line":363},6,[365],{"type":13,"tag":70,"props":366,"children":367},{"style":88},[368],{"type":18,"value":369},"}\n",{"type":13,"tag":371,"props":372,"children":373},"ul",{},[374,386,397],{"type":13,"tag":375,"props":376,"children":377},"li",{},[378,384],{"type":13,"tag":37,"props":379,"children":381},{"className":380},[],[382],{"type":18,"value":383},"VK_PRESENT_GRAVITY_MIN_BIT_EXT",{"type":18,"value":385}," means that the pixels will\ngravitate towards the top or left side of the surface.",{"type":13,"tag":375,"props":387,"children":388},{},[389,395],{"type":13,"tag":37,"props":390,"children":392},{"className":391},[],[393],{"type":18,"value":394},"VK_PRESENT_GRAVITY_MAX_BIT_EXT",{"type":18,"value":396}," means that the pixels will\ngravitate towards the bottom or right side of the surface.",{"type":13,"tag":375,"props":398,"children":399},{},[400,406],{"type":13,"tag":37,"props":401,"children":403},{"className":402},[],[404],{"type":18,"value":405},"VK_PRESENT_GRAVITY_CENTERED_BIT_EXT",{"type":18,"value":407}," means that the pixels will be\ncentered in the surface.",{"type":13,"tag":14,"props":409,"children":410},{},[411,413,419,420,426,428,434],{"type":18,"value":412},"If the value in ",{"type":13,"tag":28,"props":414,"children":416},{"href":415},"/man/VkSurfaceCapabilitiesKHR",[417],{"type":18,"value":418},"VkSurfaceCapabilitiesKHR",{"type":18,"value":35},{"type":13,"tag":37,"props":421,"children":423},{"className":422},[],[424],{"type":18,"value":425},"currentTransform",{"type":18,"value":427}," is\nnot ",{"type":13,"tag":37,"props":429,"children":431},{"className":430},[],[432],{"type":18,"value":433},"VK_SURFACE_TRANSFORM_IDENTITY_BIT_KHR",{"type":18,"value":435},", it is\nimplementation-defined whether the gravity configuration applies to the\npresented image before or after transformation.",{"type":13,"tag":437,"props":438,"children":439},"style",{},[440],{"type":18,"value":441},"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":443},[],"markdown",1725732580425]