[{"data":1,"prerenderedAt":591},["ShallowReactive",2],{"F5qXAYv51m":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":590,"_id":4},"vkGetRenderingAreaGranularityKHR","Returns the granularity for dynamic rendering optimal render area","VK_KHR_maintenance5","protos",[],{"type":10,"children":11,"toc":588},"root",[12,20,291,344,357,500,582],{"type":13,"tag":14,"props":15,"children":16},"element","p",{},[17],{"type":18,"value":19},"text","To query the render area granularity for a render pass instance, call:",{"type":13,"tag":21,"props":22,"children":23},"code-group",{},[24,132],{"type":13,"tag":25,"props":26,"children":32},"pre",{"className":27,"code":28,"filename":29,"language":30,"meta":31,"style":31},"language-c shiki shiki-themes github-light-default github-dark-default","void vkGetRenderingAreaGranularityKHR(\n VkDevice device,\n const VkRenderingAreaInfoKHR* pRenderingAreaInfo,\n VkExtent2D* pGranularity);\n","C","c","",[33],{"type":13,"tag":34,"props":35,"children":36},"code",{"__ignoreMap":31},[37,61,81,109],{"type":13,"tag":38,"props":39,"children":42},"span",{"class":40,"line":41},"line",1,[43,49,55],{"type":13,"tag":38,"props":44,"children":46},{"style":45},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[47],{"type":18,"value":48},"void",{"type":13,"tag":38,"props":50,"children":52},{"style":51},"--shiki-default:#8250DF;--shiki-dark:#D2A8FF",[53],{"type":18,"value":54}," vkGetRenderingAreaGranularityKHR",{"type":13,"tag":38,"props":56,"children":58},{"style":57},"--shiki-default:#1F2328;--shiki-dark:#E6EDF3",[59],{"type":18,"value":60},"(\n",{"type":13,"tag":38,"props":62,"children":64},{"class":40,"line":63},2,[65,70,76],{"type":13,"tag":38,"props":66,"children":67},{"style":57},[68],{"type":18,"value":69}," VkDevice ",{"type":13,"tag":38,"props":71,"children":73},{"style":72},"--shiki-default:#953800;--shiki-dark:#FFA657",[74],{"type":18,"value":75},"device",{"type":13,"tag":38,"props":77,"children":78},{"style":57},[79],{"type":18,"value":80},",\n",{"type":13,"tag":38,"props":82,"children":84},{"class":40,"line":83},3,[85,90,95,100,105],{"type":13,"tag":38,"props":86,"children":87},{"style":45},[88],{"type":18,"value":89}," const",{"type":13,"tag":38,"props":91,"children":92},{"style":57},[93],{"type":18,"value":94}," VkRenderingAreaInfoKHR",{"type":13,"tag":38,"props":96,"children":97},{"style":45},[98],{"type":18,"value":99},"*",{"type":13,"tag":38,"props":101,"children":102},{"style":72},[103],{"type":18,"value":104}," pRenderingAreaInfo",{"type":13,"tag":38,"props":106,"children":107},{"style":57},[108],{"type":18,"value":80},{"type":13,"tag":38,"props":110,"children":112},{"class":40,"line":111},4,[113,118,122,127],{"type":13,"tag":38,"props":114,"children":115},{"style":57},[116],{"type":18,"value":117}," VkExtent2D",{"type":13,"tag":38,"props":119,"children":120},{"style":45},[121],{"type":18,"value":99},{"type":13,"tag":38,"props":123,"children":124},{"style":72},[125],{"type":18,"value":126}," pGranularity",{"type":13,"tag":38,"props":128,"children":129},{"style":57},[130],{"type":18,"value":131},");\n",{"type":13,"tag":25,"props":133,"children":138},{"className":134,"code":135,"filename":136,"language":137,"meta":31,"style":31},"language-rs shiki shiki-themes github-light-default github-dark-default","pub fn get_rendering_area_granularity_khr(\n device: crate :: vk :: vk::Device,\n p_rendering_area_info: *const vk::RenderingAreaInfoKHR,\n p_granularity: *mut vk::Extent2D,\n);\n","Rust","rs",[139],{"type":13,"tag":34,"props":140,"children":141},{"__ignoreMap":31},[142,164,215,249,283],{"type":13,"tag":38,"props":143,"children":144},{"class":40,"line":41},[145,150,155,160],{"type":13,"tag":38,"props":146,"children":147},{"style":45},[148],{"type":18,"value":149},"pub",{"type":13,"tag":38,"props":151,"children":152},{"style":45},[153],{"type":18,"value":154}," fn",{"type":13,"tag":38,"props":156,"children":157},{"style":51},[158],{"type":18,"value":159}," get_rendering_area_granularity_khr",{"type":13,"tag":38,"props":161,"children":162},{"style":57},[163],{"type":18,"value":60},{"type":13,"tag":38,"props":165,"children":166},{"class":40,"line":63},[167,172,177,182,187,192,197,202,206,211],{"type":13,"tag":38,"props":168,"children":169},{"style":57},[170],{"type":18,"value":171}," device",{"type":13,"tag":38,"props":173,"children":174},{"style":45},[175],{"type":18,"value":176},":",{"type":13,"tag":38,"props":178,"children":179},{"style":45},[180],{"type":18,"value":181}," crate",{"type":13,"tag":38,"props":183,"children":184},{"style":45},[185],{"type":18,"value":186}," ::",{"type":13,"tag":38,"props":188,"children":189},{"style":57},[190],{"type":18,"value":191}," vk ",{"type":13,"tag":38,"props":193,"children":194},{"style":45},[195],{"type":18,"value":196},"::",{"type":13,"tag":38,"props":198,"children":199},{"style":72},[200],{"type":18,"value":201}," vk",{"type":13,"tag":38,"props":203,"children":204},{"style":45},[205],{"type":18,"value":196},{"type":13,"tag":38,"props":207,"children":208},{"style":72},[209],{"type":18,"value":210},"Device",{"type":13,"tag":38,"props":212,"children":213},{"style":57},[214],{"type":18,"value":80},{"type":13,"tag":38,"props":216,"children":217},{"class":40,"line":83},[218,223,227,232,236,240,245],{"type":13,"tag":38,"props":219,"children":220},{"style":57},[221],{"type":18,"value":222}," p_rendering_area_info",{"type":13,"tag":38,"props":224,"children":225},{"style":45},[226],{"type":18,"value":176},{"type":13,"tag":38,"props":228,"children":229},{"style":45},[230],{"type":18,"value":231}," *const",{"type":13,"tag":38,"props":233,"children":234},{"style":72},[235],{"type":18,"value":201},{"type":13,"tag":38,"props":237,"children":238},{"style":45},[239],{"type":18,"value":196},{"type":13,"tag":38,"props":241,"children":242},{"style":72},[243],{"type":18,"value":244},"RenderingAreaInfoKHR",{"type":13,"tag":38,"props":246,"children":247},{"style":57},[248],{"type":18,"value":80},{"type":13,"tag":38,"props":250,"children":251},{"class":40,"line":111},[252,257,261,266,270,274,279],{"type":13,"tag":38,"props":253,"children":254},{"style":57},[255],{"type":18,"value":256}," p_granularity",{"type":13,"tag":38,"props":258,"children":259},{"style":45},[260],{"type":18,"value":176},{"type":13,"tag":38,"props":262,"children":263},{"style":45},[264],{"type":18,"value":265}," *mut",{"type":13,"tag":38,"props":267,"children":268},{"style":72},[269],{"type":18,"value":201},{"type":13,"tag":38,"props":271,"children":272},{"style":45},[273],{"type":18,"value":196},{"type":13,"tag":38,"props":275,"children":276},{"style":72},[277],{"type":18,"value":278},"Extent2D",{"type":13,"tag":38,"props":280,"children":281},{"style":57},[282],{"type":18,"value":80},{"type":13,"tag":38,"props":284,"children":286},{"class":40,"line":285},5,[287],{"type":13,"tag":38,"props":288,"children":289},{"style":57},[290],{"type":18,"value":131},{"type":13,"tag":292,"props":293,"children":294},"ul",{},[295,306,326],{"type":13,"tag":296,"props":297,"children":298},"li",{},[299,304],{"type":13,"tag":34,"props":300,"children":302},{"className":301},[],[303],{"type":18,"value":75},{"type":18,"value":305}," is the logical device that owns the render pass instance.",{"type":13,"tag":296,"props":307,"children":308},{},[309,315,317,324],{"type":13,"tag":34,"props":310,"children":312},{"className":311},[],[313],{"type":18,"value":314},"pRenderingAreaInfo",{"type":18,"value":316}," is a pointer to a ",{"type":13,"tag":318,"props":319,"children":321},"a",{"href":320},"/man/VkRenderingAreaInfoKHR",[322],{"type":18,"value":323},"VkRenderingAreaInfoKHR",{"type":18,"value":325},"\nstructure specifying details of the render pass instance to query the\nrender area granularity for.",{"type":13,"tag":296,"props":327,"children":328},{},[329,335,336,342],{"type":13,"tag":34,"props":330,"children":332},{"className":331},[],[333],{"type":18,"value":334},"pGranularity",{"type":18,"value":316},{"type":13,"tag":318,"props":337,"children":339},{"href":338},"/man/VkExtent2D",[340],{"type":18,"value":341},"VkExtent2D",{"type":18,"value":343}," structure in which\nthe granularity is returned.",{"type":13,"tag":14,"props":345,"children":346},{},[347,349,355],{"type":18,"value":348},"The conditions leading to an optimal ",{"type":13,"tag":34,"props":350,"children":352},{"className":351},[],[353],{"type":18,"value":354},"renderArea",{"type":18,"value":356}," are:",{"type":13,"tag":292,"props":358,"children":359},{},[360,394,424,464],{"type":13,"tag":296,"props":361,"children":362},{},[363,365,371,373,378,380,386,388,392],{"type":18,"value":364},"the ",{"type":13,"tag":34,"props":366,"children":368},{"className":367},[],[369],{"type":18,"value":370},"offset.x",{"type":18,"value":372}," member in ",{"type":13,"tag":34,"props":374,"children":376},{"className":375},[],[377],{"type":18,"value":354},{"type":18,"value":379}," is a multiple of the\n",{"type":13,"tag":34,"props":381,"children":383},{"className":382},[],[384],{"type":18,"value":385},"width",{"type":18,"value":387}," member of the returned ",{"type":13,"tag":318,"props":389,"children":390},{"href":338},[391],{"type":18,"value":341},{"type":18,"value":393}," (the horizontal\ngranularity).",{"type":13,"tag":296,"props":395,"children":396},{},[397,398,404,405,410,411,417,418,422],{"type":18,"value":364},{"type":13,"tag":34,"props":399,"children":401},{"className":400},[],[402],{"type":18,"value":403},"offset.y",{"type":18,"value":372},{"type":13,"tag":34,"props":406,"children":408},{"className":407},[],[409],{"type":18,"value":354},{"type":18,"value":379},{"type":13,"tag":34,"props":412,"children":414},{"className":413},[],[415],{"type":18,"value":416},"height",{"type":18,"value":387},{"type":13,"tag":318,"props":419,"children":420},{"href":338},[421],{"type":18,"value":341},{"type":18,"value":423}," (the vertical\ngranularity).",{"type":13,"tag":296,"props":425,"children":426},{},[427,429,435,436,441,443,448,450,455,457,462],{"type":18,"value":428},"either the ",{"type":13,"tag":34,"props":430,"children":432},{"className":431},[],[433],{"type":18,"value":434},"extent.width",{"type":18,"value":372},{"type":13,"tag":34,"props":437,"children":439},{"className":438},[],[440],{"type":18,"value":354},{"type":18,"value":442}," is a multiple\nof the horizontal granularity or ",{"type":13,"tag":34,"props":444,"children":446},{"className":445},[],[447],{"type":18,"value":370},{"type":18,"value":449},"+",{"type":13,"tag":34,"props":451,"children":453},{"className":452},[],[454],{"type":18,"value":434},{"type":18,"value":456}," is\nequal to the ",{"type":13,"tag":34,"props":458,"children":460},{"className":459},[],[461],{"type":18,"value":385},{"type":18,"value":463}," of each attachment used in the render pass\ninstance.",{"type":13,"tag":296,"props":465,"children":466},{},[467,468,474,475,480,482,487,488,493,494,499],{"type":18,"value":428},{"type":13,"tag":34,"props":469,"children":471},{"className":470},[],[472],{"type":18,"value":473},"extent.height",{"type":18,"value":372},{"type":13,"tag":34,"props":476,"children":478},{"className":477},[],[479],{"type":18,"value":354},{"type":18,"value":481}," is a multiple\nof the vertical granularity or ",{"type":13,"tag":34,"props":483,"children":485},{"className":484},[],[486],{"type":18,"value":403},{"type":18,"value":449},{"type":13,"tag":34,"props":489,"children":491},{"className":490},[],[492],{"type":18,"value":473},{"type":18,"value":456},{"type":13,"tag":34,"props":495,"children":497},{"className":496},[],[498],{"type":18,"value":416},{"type":18,"value":463},{"type":13,"tag":501,"props":502,"children":504},"validity-group",{"name":503},"Valid Usage (Implicit)",[505,535,559],{"type":13,"tag":506,"props":507,"children":509},"validity-field",{"name":508},"VUID-vkGetRenderingAreaGranularityKHR-device-parameter",[510],{"type":13,"tag":14,"props":511,"children":512},{},[513,518,520,525,527,533],{"type":13,"tag":34,"props":514,"children":516},{"className":515},[],[517],{"type":18,"value":75},{"type":18,"value":519}," ",{"type":13,"tag":521,"props":522,"children":524},"normative",{"type":523},"must",[],{"type":18,"value":526}," be a valid ",{"type":13,"tag":318,"props":528,"children":530},{"href":529},"/man/VkDevice",[531],{"type":18,"value":532},"VkDevice",{"type":18,"value":534}," handle",{"type":13,"tag":506,"props":536,"children":538},{"name":537},"VUID-vkGetRenderingAreaGranularityKHR-pRenderingAreaInfo-parameter",[539],{"type":13,"tag":14,"props":540,"children":541},{},[542,547,548,551,553,557],{"type":13,"tag":34,"props":543,"children":545},{"className":544},[],[546],{"type":18,"value":314},{"type":18,"value":519},{"type":13,"tag":521,"props":549,"children":550},{"type":523},[],{"type":18,"value":552}," be a valid pointer to a valid ",{"type":13,"tag":318,"props":554,"children":555},{"href":320},[556],{"type":18,"value":323},{"type":18,"value":558}," structure",{"type":13,"tag":506,"props":560,"children":562},{"name":561},"VUID-vkGetRenderingAreaGranularityKHR-pGranularity-parameter",[563],{"type":13,"tag":14,"props":564,"children":565},{},[566,571,572,575,577,581],{"type":13,"tag":34,"props":567,"children":569},{"className":568},[],[570],{"type":18,"value":334},{"type":18,"value":519},{"type":13,"tag":521,"props":573,"children":574},{"type":523},[],{"type":18,"value":576}," be a valid pointer to a ",{"type":13,"tag":318,"props":578,"children":579},{"href":338},[580],{"type":18,"value":341},{"type":18,"value":558},{"type":13,"tag":583,"props":584,"children":585},"style",{},[586],{"type":18,"value":587},"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":31,"searchDepth":63,"depth":63,"links":589},[],"markdown",1729612518760]