[{"data":1,"prerenderedAt":749},["ShallowReactive",2],{"yNMQTx5Ska":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":748,"_id":4},"VkSurfacePresentScalingCapabilitiesEXT","Structure describing the presentation scaling capabilities of the surface","VK_EXT_surface_maintenance1","structs",[],{"type":10,"children":11,"toc":746},"root",[12,28,395,638,709,740],{"type":13,"tag":14,"props":15,"children":16},"element","p",{},[17,20,26],{"type":18,"value":19},"text","The ",{"type":13,"tag":21,"props":22,"children":24},"code",{"className":23},[],[25],{"type":18,"value":4},{"type":18,"value":27}," structure is defined as:",{"type":13,"tag":29,"props":30,"children":31},"code-group",{},[32,144],{"type":13,"tag":33,"props":34,"children":40},"pre",{"className":35,"code":36,"filename":37,"language":38,"meta":39,"style":39},"language-c shiki shiki-themes github-light-default github-dark-default","typedef struct VkSurfacePresentScalingCapabilitiesEXT {\n VkStructureType sType;\n void* pNext;\n VkPresentScalingFlagsEXT supportedPresentScaling;\n VkPresentGravityFlagsEXT supportedPresentGravityX;\n VkPresentGravityFlagsEXT supportedPresentGravityY;\n VkExtent2D minScaledImageExtent;\n VkExtent2D maxScaledImageExtent;\n} VkSurfacePresentScalingCapabilitiesEXT;\n","C","c","",[41],{"type":13,"tag":21,"props":42,"children":43},{"__ignoreMap":39},[44,67,76,90,99,108,117,126,135],{"type":13,"tag":45,"props":46,"children":49},"span",{"class":47,"line":48},"line",1,[50,56,61],{"type":13,"tag":45,"props":51,"children":53},{"style":52},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[54],{"type":18,"value":55},"typedef",{"type":13,"tag":45,"props":57,"children":58},{"style":52},[59],{"type":18,"value":60}," struct",{"type":13,"tag":45,"props":62,"children":64},{"style":63},"--shiki-default:#1F2328;--shiki-dark:#E6EDF3",[65],{"type":18,"value":66}," VkSurfacePresentScalingCapabilitiesEXT {\n",{"type":13,"tag":45,"props":68,"children":70},{"class":47,"line":69},2,[71],{"type":13,"tag":45,"props":72,"children":73},{"style":63},[74],{"type":18,"value":75}," VkStructureType sType;\n",{"type":13,"tag":45,"props":77,"children":79},{"class":47,"line":78},3,[80,85],{"type":13,"tag":45,"props":81,"children":82},{"style":52},[83],{"type":18,"value":84}," void*",{"type":13,"tag":45,"props":86,"children":87},{"style":63},[88],{"type":18,"value":89}," pNext;\n",{"type":13,"tag":45,"props":91,"children":93},{"class":47,"line":92},4,[94],{"type":13,"tag":45,"props":95,"children":96},{"style":63},[97],{"type":18,"value":98}," VkPresentScalingFlagsEXT supportedPresentScaling;\n",{"type":13,"tag":45,"props":100,"children":102},{"class":47,"line":101},5,[103],{"type":13,"tag":45,"props":104,"children":105},{"style":63},[106],{"type":18,"value":107}," VkPresentGravityFlagsEXT supportedPresentGravityX;\n",{"type":13,"tag":45,"props":109,"children":111},{"class":47,"line":110},6,[112],{"type":13,"tag":45,"props":113,"children":114},{"style":63},[115],{"type":18,"value":116}," VkPresentGravityFlagsEXT supportedPresentGravityY;\n",{"type":13,"tag":45,"props":118,"children":120},{"class":47,"line":119},7,[121],{"type":13,"tag":45,"props":122,"children":123},{"style":63},[124],{"type":18,"value":125}," VkExtent2D minScaledImageExtent;\n",{"type":13,"tag":45,"props":127,"children":129},{"class":47,"line":128},8,[130],{"type":13,"tag":45,"props":131,"children":132},{"style":63},[133],{"type":18,"value":134}," VkExtent2D maxScaledImageExtent;\n",{"type":13,"tag":45,"props":136,"children":138},{"class":47,"line":137},9,[139],{"type":13,"tag":45,"props":140,"children":141},{"style":63},[142],{"type":18,"value":143},"} VkSurfacePresentScalingCapabilitiesEXT;\n",{"type":13,"tag":33,"props":145,"children":150},{"className":146,"code":147,"filename":148,"language":149,"meta":39,"style":39},"language-rs shiki shiki-themes github-light-default github-dark-default","pub struct SurfacePresentScalingCapabilitiesEXT {\n s_type: vk::StructureType,\n p_next: *mut c_void,\n supported_present_scaling: vk::PresentScalingFlagsEXT,\n supported_present_gravity_x: vk::PresentGravityFlagsEXT,\n supported_present_gravity_y: vk::PresentGravityFlagsEXT,\n min_scaled_image_extent: vk::Extent2D, // Supported minimum image width and height for the surface when scaling is used\n max_scaled_image_extent: vk::Extent2D, // Supported maximum image width and height for the surface when scaling is used\n}\n","Rust","rs",[151],{"type":13,"tag":21,"props":152,"children":153},{"__ignoreMap":39},[154,177,210,232,261,290,318,354,387],{"type":13,"tag":45,"props":155,"children":156},{"class":47,"line":48},[157,162,166,172],{"type":13,"tag":45,"props":158,"children":159},{"style":52},[160],{"type":18,"value":161},"pub",{"type":13,"tag":45,"props":163,"children":164},{"style":52},[165],{"type":18,"value":60},{"type":13,"tag":45,"props":167,"children":169},{"style":168},"--shiki-default:#953800;--shiki-dark:#FFA657",[170],{"type":18,"value":171}," SurfacePresentScalingCapabilitiesEXT",{"type":13,"tag":45,"props":173,"children":174},{"style":63},[175],{"type":18,"value":176}," {\n",{"type":13,"tag":45,"props":178,"children":179},{"class":47,"line":69},[180,185,190,195,200,205],{"type":13,"tag":45,"props":181,"children":182},{"style":63},[183],{"type":18,"value":184}," s_type",{"type":13,"tag":45,"props":186,"children":187},{"style":52},[188],{"type":18,"value":189},":",{"type":13,"tag":45,"props":191,"children":192},{"style":168},[193],{"type":18,"value":194}," vk",{"type":13,"tag":45,"props":196,"children":197},{"style":52},[198],{"type":18,"value":199},"::",{"type":13,"tag":45,"props":201,"children":202},{"style":168},[203],{"type":18,"value":204},"StructureType",{"type":13,"tag":45,"props":206,"children":207},{"style":63},[208],{"type":18,"value":209},",\n",{"type":13,"tag":45,"props":211,"children":212},{"class":47,"line":78},[213,218,222,227],{"type":13,"tag":45,"props":214,"children":215},{"style":63},[216],{"type":18,"value":217}," p_next",{"type":13,"tag":45,"props":219,"children":220},{"style":52},[221],{"type":18,"value":189},{"type":13,"tag":45,"props":223,"children":224},{"style":52},[225],{"type":18,"value":226}," *mut",{"type":13,"tag":45,"props":228,"children":229},{"style":63},[230],{"type":18,"value":231}," c_void,\n",{"type":13,"tag":45,"props":233,"children":234},{"class":47,"line":92},[235,240,244,248,252,257],{"type":13,"tag":45,"props":236,"children":237},{"style":63},[238],{"type":18,"value":239}," supported_present_scaling",{"type":13,"tag":45,"props":241,"children":242},{"style":52},[243],{"type":18,"value":189},{"type":13,"tag":45,"props":245,"children":246},{"style":168},[247],{"type":18,"value":194},{"type":13,"tag":45,"props":249,"children":250},{"style":52},[251],{"type":18,"value":199},{"type":13,"tag":45,"props":253,"children":254},{"style":168},[255],{"type":18,"value":256},"PresentScalingFlagsEXT",{"type":13,"tag":45,"props":258,"children":259},{"style":63},[260],{"type":18,"value":209},{"type":13,"tag":45,"props":262,"children":263},{"class":47,"line":101},[264,269,273,277,281,286],{"type":13,"tag":45,"props":265,"children":266},{"style":63},[267],{"type":18,"value":268}," supported_present_gravity_x",{"type":13,"tag":45,"props":270,"children":271},{"style":52},[272],{"type":18,"value":189},{"type":13,"tag":45,"props":274,"children":275},{"style":168},[276],{"type":18,"value":194},{"type":13,"tag":45,"props":278,"children":279},{"style":52},[280],{"type":18,"value":199},{"type":13,"tag":45,"props":282,"children":283},{"style":168},[284],{"type":18,"value":285},"PresentGravityFlagsEXT",{"type":13,"tag":45,"props":287,"children":288},{"style":63},[289],{"type":18,"value":209},{"type":13,"tag":45,"props":291,"children":292},{"class":47,"line":110},[293,298,302,306,310,314],{"type":13,"tag":45,"props":294,"children":295},{"style":63},[296],{"type":18,"value":297}," supported_present_gravity_y",{"type":13,"tag":45,"props":299,"children":300},{"style":52},[301],{"type":18,"value":189},{"type":13,"tag":45,"props":303,"children":304},{"style":168},[305],{"type":18,"value":194},{"type":13,"tag":45,"props":307,"children":308},{"style":52},[309],{"type":18,"value":199},{"type":13,"tag":45,"props":311,"children":312},{"style":168},[313],{"type":18,"value":285},{"type":13,"tag":45,"props":315,"children":316},{"style":63},[317],{"type":18,"value":209},{"type":13,"tag":45,"props":319,"children":320},{"class":47,"line":119},[321,326,330,334,338,343,348],{"type":13,"tag":45,"props":322,"children":323},{"style":63},[324],{"type":18,"value":325}," min_scaled_image_extent",{"type":13,"tag":45,"props":327,"children":328},{"style":52},[329],{"type":18,"value":189},{"type":13,"tag":45,"props":331,"children":332},{"style":168},[333],{"type":18,"value":194},{"type":13,"tag":45,"props":335,"children":336},{"style":52},[337],{"type":18,"value":199},{"type":13,"tag":45,"props":339,"children":340},{"style":168},[341],{"type":18,"value":342},"Extent2D",{"type":13,"tag":45,"props":344,"children":345},{"style":63},[346],{"type":18,"value":347},", ",{"type":13,"tag":45,"props":349,"children":351},{"style":350},"--shiki-default:#6E7781;--shiki-dark:#8B949E",[352],{"type":18,"value":353},"// Supported minimum image width and height for the surface when scaling is used\n",{"type":13,"tag":45,"props":355,"children":356},{"class":47,"line":128},[357,362,366,370,374,378,382],{"type":13,"tag":45,"props":358,"children":359},{"style":63},[360],{"type":18,"value":361}," max_scaled_image_extent",{"type":13,"tag":45,"props":363,"children":364},{"style":52},[365],{"type":18,"value":189},{"type":13,"tag":45,"props":367,"children":368},{"style":168},[369],{"type":18,"value":194},{"type":13,"tag":45,"props":371,"children":372},{"style":52},[373],{"type":18,"value":199},{"type":13,"tag":45,"props":375,"children":376},{"style":168},[377],{"type":18,"value":342},{"type":13,"tag":45,"props":379,"children":380},{"style":63},[381],{"type":18,"value":347},{"type":13,"tag":45,"props":383,"children":384},{"style":350},[385],{"type":18,"value":386},"// Supported maximum image width and height for the surface when scaling is used\n",{"type":13,"tag":45,"props":388,"children":389},{"class":47,"line":137},[390],{"type":13,"tag":45,"props":391,"children":392},{"style":63},[393],{"type":18,"value":394},"}\n",{"type":13,"tag":396,"props":397,"children":398},"ul",{},[399,420,439,466,491,514,576],{"type":13,"tag":400,"props":401,"children":402},"li",{},[403,409,411,418],{"type":13,"tag":21,"props":404,"children":406},{"className":405},[],[407],{"type":18,"value":408},"sType",{"type":18,"value":410}," is a ",{"type":13,"tag":412,"props":413,"children":415},"a",{"href":414},"/man/VkStructureType",[416],{"type":18,"value":417},"VkStructureType",{"type":18,"value":419}," value identifying this structure.",{"type":13,"tag":400,"props":421,"children":422},{},[423,429,431,437],{"type":13,"tag":21,"props":424,"children":426},{"className":425},[],[427],{"type":18,"value":428},"pNext",{"type":18,"value":430}," is ",{"type":13,"tag":21,"props":432,"children":434},{"className":433},[],[435],{"type":18,"value":436},"NULL",{"type":18,"value":438}," or a pointer to a structure extending this\nstructure.",{"type":13,"tag":400,"props":440,"children":441},{},[442,448,450,456,458,464],{"type":13,"tag":21,"props":443,"children":445},{"className":444},[],[446],{"type":18,"value":447},"supportedPresentScaling",{"type":18,"value":449}," is a bitmask of\n",{"type":13,"tag":412,"props":451,"children":453},{"href":452},"/man/VkPresentScalingFlagBitsEXT",[454],{"type":18,"value":455},"VkPresentScalingFlagBitsEXT",{"type":18,"value":457}," representing the scaling methods\nsupported by the surface, or ",{"type":13,"tag":21,"props":459,"children":461},{"className":460},[],[462],{"type":18,"value":463},"0",{"type":18,"value":465}," if application-defined scaling is not\nsupported.",{"type":13,"tag":400,"props":467,"children":468},{},[469,475,476,482,484,489],{"type":13,"tag":21,"props":470,"children":472},{"className":471},[],[473],{"type":18,"value":474},"supportedPresentGravityX",{"type":18,"value":449},{"type":13,"tag":412,"props":477,"children":479},{"href":478},"/man/VkPresentGravityFlagBitsEXT",[480],{"type":18,"value":481},"VkPresentGravityFlagBitsEXT",{"type":18,"value":483}," representing the X-axis pixel gravity\nsupported by the surface, or ",{"type":13,"tag":21,"props":485,"children":487},{"className":486},[],[488],{"type":18,"value":463},{"type":18,"value":490}," if Vulkan-defined pixel gravity is not\nsupported for the X axis.",{"type":13,"tag":400,"props":492,"children":493},{},[494,500,501,505,507,512],{"type":13,"tag":21,"props":495,"children":497},{"className":496},[],[498],{"type":18,"value":499},"supportedPresentGravityY",{"type":18,"value":449},{"type":13,"tag":412,"props":502,"children":503},{"href":478},[504],{"type":18,"value":481},{"type":18,"value":506}," representing the Y-axis pixel gravity\nsupported by the surface, or ",{"type":13,"tag":21,"props":508,"children":510},{"className":509},[],[511],{"type":18,"value":463},{"type":18,"value":513}," if Vulkan-defined pixel gravity is not\nsupported for the Y axis.",{"type":13,"tag":400,"props":515,"children":516},{},[517,523,525,530,532,538,540,546,548,553,554,559,561,567,568,574],{"type":13,"tag":21,"props":518,"children":520},{"className":519},[],[521],{"type":18,"value":522},"minScaledImageExtent",{"type":18,"value":524}," contains the smallest valid swapchain extent\nfor the surface on the specified device when one of the scaling methods\nspecified in ",{"type":13,"tag":21,"props":526,"children":528},{"className":527},[],[529],{"type":18,"value":447},{"type":18,"value":531}," is used, or the special value\n(0xFFFFFFFF, 0xFFFFFFFF) indicating that the surface size will be\ndetermined by the extent of a swapchain targeting the surface.\nThe ",{"type":13,"tag":21,"props":533,"children":535},{"className":534},[],[536],{"type":18,"value":537},"width",{"type":18,"value":539}," and ",{"type":13,"tag":21,"props":541,"children":543},{"className":542},[],[544],{"type":18,"value":545},"height",{"type":18,"value":547}," of the extent will each be smaller than\nor equal to the corresponding ",{"type":13,"tag":21,"props":549,"children":551},{"className":550},[],[552],{"type":18,"value":537},{"type":18,"value":539},{"type":13,"tag":21,"props":555,"children":557},{"className":556},[],[558],{"type":18,"value":545},{"type":18,"value":560}," of\n",{"type":13,"tag":412,"props":562,"children":564},{"href":563},"/man/VkSurfaceCapabilitiesKHR",[565],{"type":18,"value":566},"VkSurfaceCapabilitiesKHR",{"type":18,"value":199},{"type":13,"tag":21,"props":569,"children":571},{"className":570},[],[572],{"type":18,"value":573},"minImageExtent",{"type":18,"value":575},".",{"type":13,"tag":400,"props":577,"children":578},{},[579,585,587,592,594,599,601,606,607,612,614,619,620,625,626,630,631,637],{"type":13,"tag":21,"props":580,"children":582},{"className":581},[],[583],{"type":18,"value":584},"maxScaledImageExtent",{"type":18,"value":586}," contains the largest valid swapchain extent\nfor the surface on the specified device when one of the scaling methods\nspecified in ",{"type":13,"tag":21,"props":588,"children":590},{"className":589},[],[591],{"type":18,"value":447},{"type":18,"value":593}," is used, or the special value\ndescribed above for ",{"type":13,"tag":21,"props":595,"children":597},{"className":596},[],[598],{"type":18,"value":522},{"type":18,"value":600},".\nThe ",{"type":13,"tag":21,"props":602,"children":604},{"className":603},[],[605],{"type":18,"value":537},{"type":18,"value":539},{"type":13,"tag":21,"props":608,"children":610},{"className":609},[],[611],{"type":18,"value":545},{"type":18,"value":613}," of the extent will each be greater than\nor equal to the corresponding ",{"type":13,"tag":21,"props":615,"children":617},{"className":616},[],[618],{"type":18,"value":537},{"type":18,"value":539},{"type":13,"tag":21,"props":621,"children":623},{"className":622},[],[624],{"type":18,"value":545},{"type":18,"value":560},{"type":13,"tag":412,"props":627,"children":628},{"href":563},[629],{"type":18,"value":566},{"type":18,"value":199},{"type":13,"tag":21,"props":632,"children":634},{"className":633},[],[635],{"type":18,"value":636},"maxImageExtent",{"type":18,"value":575},{"type":13,"tag":14,"props":639,"children":640},{},[641,643,648,650,656,658,664,666,671,673,679,681,687,689,693,695,700,702,708],{"type":18,"value":642},"Before creating a swapchain whose scaling mode ",{"type":13,"tag":644,"props":645,"children":647},"normative",{"type":646},"can",[],{"type":18,"value":649}," be specified through the\nuse of ",{"type":13,"tag":412,"props":651,"children":653},{"href":652},"/man/VkSwapchainPresentScalingCreateInfoEXT",[654],{"type":18,"value":655},"VkSwapchainPresentScalingCreateInfoEXT",{"type":18,"value":657},", obtain the set of\nsupported scaling modes by including a ",{"type":13,"tag":412,"props":659,"children":661},{"href":660},"/man/VkSurfacePresentModeEXT",[662],{"type":18,"value":663},"VkSurfacePresentModeEXT",{"type":18,"value":665},"\nstructure in the ",{"type":13,"tag":21,"props":667,"children":669},{"className":668},[],[670],{"type":18,"value":428},{"type":18,"value":672}," chain of ",{"type":13,"tag":412,"props":674,"children":676},{"href":675},"/man/VkPhysicalDeviceSurfaceInfo2KHR",[677],{"type":18,"value":678},"VkPhysicalDeviceSurfaceInfo2KHR",{"type":18,"value":680},"\nwhen calling ",{"type":13,"tag":412,"props":682,"children":684},{"href":683},"/man/vkGetPhysicalDeviceSurfaceCapabilities2KHR",[685],{"type":18,"value":686},"vkGetPhysicalDeviceSurfaceCapabilities2KHR",{"type":18,"value":688},".\nThe implementation ",{"type":13,"tag":644,"props":690,"children":692},{"type":691},"must",[],{"type":18,"value":694}," return the same values in\n",{"type":13,"tag":21,"props":696,"children":698},{"className":697},[],[699],{"type":18,"value":4},{"type":18,"value":701}," for any of the compatible\npresent modes as obtained through\n",{"type":13,"tag":412,"props":703,"children":705},{"href":704},"/man/VkSurfacePresentModeCompatibilityEXT",[706],{"type":18,"value":707},"VkSurfacePresentModeCompatibilityEXT",{"type":18,"value":575},{"type":13,"tag":710,"props":711,"children":713},"validity-group",{"name":712},"Valid Usage (Implicit)",[714],{"type":13,"tag":715,"props":716,"children":718},"validity-field",{"name":717},"VUID-VkSurfacePresentScalingCapabilitiesEXT-sType-sType",[719],{"type":13,"tag":14,"props":720,"children":721},{},[722,727,729,732,734],{"type":13,"tag":21,"props":723,"children":725},{"className":724},[],[726],{"type":18,"value":408},{"type":18,"value":728}," ",{"type":13,"tag":644,"props":730,"children":731},{"type":691},[],{"type":18,"value":733}," be ",{"type":13,"tag":21,"props":735,"children":737},{"className":736},[],[738],{"type":18,"value":739},"VK_STRUCTURE_TYPE_SURFACE_PRESENT_SCALING_CAPABILITIES_EXT",{"type":13,"tag":741,"props":742,"children":743},"style",{},[744],{"type":18,"value":745},"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":39,"searchDepth":69,"depth":69,"links":747},[],"markdown",1725732589523]