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