[{"data":1,"prerenderedAt":830},["ShallowReactive",2],{"kTwXtvUocB":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":829,"_id":4},"vkGetMicromapBuildSizesEXT","Retrieve the required size for a micromap","VK_EXT_opacity_micromap","protos",[],{"type":10,"children":11,"toc":827},"root",[12,20,338,401,443,462,599,627,719,821],{"type":13,"tag":14,"props":15,"children":16},"element","p",{},[17],{"type":18,"value":19},"text","To get the build sizes for a micromap, call:",{"type":13,"tag":21,"props":22,"children":23},"code-group",{},[24,150],{"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 vkGetMicromapBuildSizesEXT(\n VkDevice device,\n VkAccelerationStructureBuildTypeKHR buildType,\n const VkMicromapBuildInfoEXT* pBuildInfo,\n VkMicromapBuildSizesInfoEXT* pSizeInfo);\n","C","c","",[33],{"type":13,"tag":34,"props":35,"children":36},"code",{"__ignoreMap":31},[37,61,81,99,127],{"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}," vkGetMicromapBuildSizesEXT",{"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],{"type":13,"tag":38,"props":86,"children":87},{"style":57},[88],{"type":18,"value":89}," VkAccelerationStructureBuildTypeKHR ",{"type":13,"tag":38,"props":91,"children":92},{"style":72},[93],{"type":18,"value":94},"buildType",{"type":13,"tag":38,"props":96,"children":97},{"style":57},[98],{"type":18,"value":80},{"type":13,"tag":38,"props":100,"children":102},{"class":40,"line":101},4,[103,108,113,118,123],{"type":13,"tag":38,"props":104,"children":105},{"style":45},[106],{"type":18,"value":107}," const",{"type":13,"tag":38,"props":109,"children":110},{"style":57},[111],{"type":18,"value":112}," VkMicromapBuildInfoEXT",{"type":13,"tag":38,"props":114,"children":115},{"style":45},[116],{"type":18,"value":117},"*",{"type":13,"tag":38,"props":119,"children":120},{"style":72},[121],{"type":18,"value":122}," pBuildInfo",{"type":13,"tag":38,"props":124,"children":125},{"style":57},[126],{"type":18,"value":80},{"type":13,"tag":38,"props":128,"children":130},{"class":40,"line":129},5,[131,136,140,145],{"type":13,"tag":38,"props":132,"children":133},{"style":57},[134],{"type":18,"value":135}," VkMicromapBuildSizesInfoEXT",{"type":13,"tag":38,"props":137,"children":138},{"style":45},[139],{"type":18,"value":117},{"type":13,"tag":38,"props":141,"children":142},{"style":72},[143],{"type":18,"value":144}," pSizeInfo",{"type":13,"tag":38,"props":146,"children":147},{"style":57},[148],{"type":18,"value":149},");\n",{"type":13,"tag":25,"props":151,"children":156},{"className":152,"code":153,"filename":154,"language":155,"meta":31,"style":31},"language-rs shiki shiki-themes github-light-default github-dark-default","pub fn get_micromap_build_sizes_ext(\n device: crate :: vk :: vk::Device,\n build_type: vk::AccelerationStructureBuildTypeKHR,\n p_build_info: *const vk::MicromapBuildInfoEXT,\n p_size_info: *mut vk::MicromapBuildSizesInfoEXT,\n);\n","Rust","rs",[157],{"type":13,"tag":34,"props":158,"children":159},{"__ignoreMap":31},[160,182,233,262,296,330],{"type":13,"tag":38,"props":161,"children":162},{"class":40,"line":41},[163,168,173,178],{"type":13,"tag":38,"props":164,"children":165},{"style":45},[166],{"type":18,"value":167},"pub",{"type":13,"tag":38,"props":169,"children":170},{"style":45},[171],{"type":18,"value":172}," fn",{"type":13,"tag":38,"props":174,"children":175},{"style":51},[176],{"type":18,"value":177}," get_micromap_build_sizes_ext",{"type":13,"tag":38,"props":179,"children":180},{"style":57},[181],{"type":18,"value":60},{"type":13,"tag":38,"props":183,"children":184},{"class":40,"line":63},[185,190,195,200,205,210,215,220,224,229],{"type":13,"tag":38,"props":186,"children":187},{"style":57},[188],{"type":18,"value":189}," device",{"type":13,"tag":38,"props":191,"children":192},{"style":45},[193],{"type":18,"value":194},":",{"type":13,"tag":38,"props":196,"children":197},{"style":45},[198],{"type":18,"value":199}," crate",{"type":13,"tag":38,"props":201,"children":202},{"style":45},[203],{"type":18,"value":204}," ::",{"type":13,"tag":38,"props":206,"children":207},{"style":57},[208],{"type":18,"value":209}," vk ",{"type":13,"tag":38,"props":211,"children":212},{"style":45},[213],{"type":18,"value":214},"::",{"type":13,"tag":38,"props":216,"children":217},{"style":72},[218],{"type":18,"value":219}," vk",{"type":13,"tag":38,"props":221,"children":222},{"style":45},[223],{"type":18,"value":214},{"type":13,"tag":38,"props":225,"children":226},{"style":72},[227],{"type":18,"value":228},"Device",{"type":13,"tag":38,"props":230,"children":231},{"style":57},[232],{"type":18,"value":80},{"type":13,"tag":38,"props":234,"children":235},{"class":40,"line":83},[236,241,245,249,253,258],{"type":13,"tag":38,"props":237,"children":238},{"style":57},[239],{"type":18,"value":240}," build_type",{"type":13,"tag":38,"props":242,"children":243},{"style":45},[244],{"type":18,"value":194},{"type":13,"tag":38,"props":246,"children":247},{"style":72},[248],{"type":18,"value":219},{"type":13,"tag":38,"props":250,"children":251},{"style":45},[252],{"type":18,"value":214},{"type":13,"tag":38,"props":254,"children":255},{"style":72},[256],{"type":18,"value":257},"AccelerationStructureBuildTypeKHR",{"type":13,"tag":38,"props":259,"children":260},{"style":57},[261],{"type":18,"value":80},{"type":13,"tag":38,"props":263,"children":264},{"class":40,"line":101},[265,270,274,279,283,287,292],{"type":13,"tag":38,"props":266,"children":267},{"style":57},[268],{"type":18,"value":269}," p_build_info",{"type":13,"tag":38,"props":271,"children":272},{"style":45},[273],{"type":18,"value":194},{"type":13,"tag":38,"props":275,"children":276},{"style":45},[277],{"type":18,"value":278}," *const",{"type":13,"tag":38,"props":280,"children":281},{"style":72},[282],{"type":18,"value":219},{"type":13,"tag":38,"props":284,"children":285},{"style":45},[286],{"type":18,"value":214},{"type":13,"tag":38,"props":288,"children":289},{"style":72},[290],{"type":18,"value":291},"MicromapBuildInfoEXT",{"type":13,"tag":38,"props":293,"children":294},{"style":57},[295],{"type":18,"value":80},{"type":13,"tag":38,"props":297,"children":298},{"class":40,"line":129},[299,304,308,313,317,321,326],{"type":13,"tag":38,"props":300,"children":301},{"style":57},[302],{"type":18,"value":303}," p_size_info",{"type":13,"tag":38,"props":305,"children":306},{"style":45},[307],{"type":18,"value":194},{"type":13,"tag":38,"props":309,"children":310},{"style":45},[311],{"type":18,"value":312}," *mut",{"type":13,"tag":38,"props":314,"children":315},{"style":72},[316],{"type":18,"value":219},{"type":13,"tag":38,"props":318,"children":319},{"style":45},[320],{"type":18,"value":214},{"type":13,"tag":38,"props":322,"children":323},{"style":72},[324],{"type":18,"value":325},"MicromapBuildSizesInfoEXT",{"type":13,"tag":38,"props":327,"children":328},{"style":57},[329],{"type":18,"value":80},{"type":13,"tag":38,"props":331,"children":333},{"class":40,"line":332},6,[334],{"type":13,"tag":38,"props":335,"children":336},{"style":57},[337],{"type":18,"value":149},{"type":13,"tag":339,"props":340,"children":341},"ul",{},[342,353,363,383],{"type":13,"tag":343,"props":344,"children":345},"li",{},[346,351],{"type":13,"tag":34,"props":347,"children":349},{"className":348},[],[350],{"type":18,"value":75},{"type":18,"value":352}," is the logical device that will be used for creating the\nmicromap.",{"type":13,"tag":343,"props":354,"children":355},{},[356,361],{"type":13,"tag":34,"props":357,"children":359},{"className":358},[],[360],{"type":18,"value":94},{"type":18,"value":362}," defines whether host or device operations (or both) are\nbeing queried for.",{"type":13,"tag":343,"props":364,"children":365},{},[366,372,374,381],{"type":13,"tag":34,"props":367,"children":369},{"className":368},[],[370],{"type":18,"value":371},"pBuildInfo",{"type":18,"value":373}," is a pointer to a ",{"type":13,"tag":375,"props":376,"children":378},"a",{"href":377},"/man/VkMicromapBuildInfoEXT",[379],{"type":18,"value":380},"VkMicromapBuildInfoEXT",{"type":18,"value":382},"\nstructure describing parameters of a build operation.",{"type":13,"tag":343,"props":384,"children":385},{},[386,392,393,399],{"type":13,"tag":34,"props":387,"children":389},{"className":388},[],[390],{"type":18,"value":391},"pSizeInfo",{"type":18,"value":373},{"type":13,"tag":375,"props":394,"children":396},{"href":395},"/man/VkMicromapBuildSizesInfoEXT",[397],{"type":18,"value":398},"VkMicromapBuildSizesInfoEXT",{"type":18,"value":400},"\nstructure which returns the size required for a micromap and the sizes\nrequired for the scratch buffers, given the build parameters.",{"type":13,"tag":14,"props":402,"children":403},{},[404,406,412,414,420,422,427,429,435,436,441],{"type":18,"value":405},"The ",{"type":13,"tag":34,"props":407,"children":409},{"className":408},[],[410],{"type":18,"value":411},"dstMicromap",{"type":18,"value":413}," and ",{"type":13,"tag":34,"props":415,"children":417},{"className":416},[],[418],{"type":18,"value":419},"mode",{"type":18,"value":421}," members of ",{"type":13,"tag":34,"props":423,"children":425},{"className":424},[],[426],{"type":18,"value":371},{"type":18,"value":428}," are\nignored.\nAny ",{"type":13,"tag":375,"props":430,"children":432},{"href":431},"/man/VkDeviceOrHostAddressKHR",[433],{"type":18,"value":434},"VkDeviceOrHostAddressKHR",{"type":18,"value":421},{"type":13,"tag":34,"props":437,"children":439},{"className":438},[],[440],{"type":18,"value":371},{"type":18,"value":442}," are ignored\nby this command.",{"type":13,"tag":14,"props":444,"children":445},{},[446,448,454,456,460],{"type":18,"value":447},"A micromap created with the ",{"type":13,"tag":34,"props":449,"children":451},{"className":450},[],[452],{"type":18,"value":453},"micromapSize",{"type":18,"value":455}," returned by this command\nsupports any build with a ",{"type":13,"tag":375,"props":457,"children":458},{"href":377},[459],{"type":18,"value":380},{"type":18,"value":461}," structure subject to\nthe following properties:",{"type":13,"tag":339,"props":463,"children":464},{},[465,491,514],{"type":13,"tag":343,"props":466,"children":467},{},[468,470,475,477,483,485],{"type":18,"value":469},"The build command is a host build command, and ",{"type":13,"tag":34,"props":471,"children":473},{"className":472},[],[474],{"type":18,"value":94},{"type":18,"value":476}," is\n",{"type":13,"tag":34,"props":478,"children":480},{"className":479},[],[481],{"type":18,"value":482},"VK_ACCELERATION_STRUCTURE_BUILD_TYPE_HOST_KHR",{"type":18,"value":484}," or\n",{"type":13,"tag":34,"props":486,"children":488},{"className":487},[],[489],{"type":18,"value":490},"VK_ACCELERATION_STRUCTURE_BUILD_TYPE_HOST_OR_DEVICE_KHR",{"type":13,"tag":343,"props":492,"children":493},{},[494,496,501,502,508,509],{"type":18,"value":495},"The build command is a device build command, and ",{"type":13,"tag":34,"props":497,"children":499},{"className":498},[],[500],{"type":18,"value":94},{"type":18,"value":476},{"type":13,"tag":34,"props":503,"children":505},{"className":504},[],[506],{"type":18,"value":507},"VK_ACCELERATION_STRUCTURE_BUILD_TYPE_DEVICE_KHR",{"type":18,"value":484},{"type":13,"tag":34,"props":510,"children":512},{"className":511},[],[513],{"type":18,"value":490},{"type":13,"tag":343,"props":515,"children":516},{},[517,519,523,524],{"type":18,"value":518},"For ",{"type":13,"tag":375,"props":520,"children":521},{"href":377},[522],{"type":18,"value":380},{"type":18,"value":194},{"type":13,"tag":339,"props":525,"children":526},{},[527,563],{"type":13,"tag":343,"props":528,"children":529},{},[530,532,538,540,546,548,554,555,561],{"type":18,"value":531},"Its ",{"type":13,"tag":34,"props":533,"children":535},{"className":534},[],[536],{"type":18,"value":537},"type",{"type":18,"value":539},", and ",{"type":13,"tag":34,"props":541,"children":543},{"className":542},[],[544],{"type":18,"value":545},"flags",{"type":18,"value":547}," members are equal to\n",{"type":13,"tag":34,"props":549,"children":551},{"className":550},[],[552],{"type":18,"value":553},"pBuildInfo→type",{"type":18,"value":413},{"type":13,"tag":34,"props":556,"children":558},{"className":557},[],[559],{"type":18,"value":560},"pBuildInfo→flags",{"type":18,"value":562},", respectively.",{"type":13,"tag":343,"props":564,"children":565},{},[566,568,574,575,581,583,589,591,597],{"type":18,"value":567},"The sum of usage information in either ",{"type":13,"tag":34,"props":569,"children":571},{"className":570},[],[572],{"type":18,"value":573},"pUsageCounts",{"type":18,"value":484},{"type":13,"tag":34,"props":576,"children":578},{"className":577},[],[579],{"type":18,"value":580},"ppUsageCounts",{"type":18,"value":582}," is equal to the sum of usage information in either\n",{"type":13,"tag":34,"props":584,"children":586},{"className":585},[],[587],{"type":18,"value":588},"pBuildInfo→pUsageCounts",{"type":18,"value":590}," or ",{"type":13,"tag":34,"props":592,"children":594},{"className":593},[],[595],{"type":18,"value":596},"pBuildInfo→ppUsageCounts",{"type":18,"value":598},".",{"type":13,"tag":14,"props":600,"children":601},{},[602,604,610,612,618,620,625],{"type":18,"value":603},"Similarly, the ",{"type":13,"tag":34,"props":605,"children":607},{"className":606},[],[608],{"type":18,"value":609},"buildScratchSize",{"type":18,"value":611}," value will support any build command\nspecifying the ",{"type":13,"tag":34,"props":613,"children":615},{"className":614},[],[616],{"type":18,"value":617},"VK_BUILD_MICROMAP_MODE_BUILD_EXT",{"type":18,"value":619}," ",{"type":13,"tag":34,"props":621,"children":623},{"className":622},[],[624],{"type":18,"value":419},{"type":18,"value":626}," under the\nabove conditions.",{"type":13,"tag":628,"props":629,"children":631},"validity-group",{"name":630},"Valid Usage",[632,663,688],{"type":13,"tag":633,"props":634,"children":636},"validity-field",{"name":635},"VUID-vkGetMicromapBuildSizesEXT-dstMicromap-09180",[637],{"type":13,"tag":14,"props":638,"children":639},{},[640,644,645,650,651,656,658],{"type":13,"tag":375,"props":641,"children":642},{"href":377},[643],{"type":18,"value":380},{"type":18,"value":214},{"type":13,"tag":34,"props":646,"children":648},{"className":647},[],[649],{"type":18,"value":411},{"type":18,"value":619},{"type":13,"tag":652,"props":653,"children":655},"normative",{"type":654},"must",[],{"type":18,"value":657}," have been created\nfrom ",{"type":13,"tag":34,"props":659,"children":661},{"className":660},[],[662],{"type":18,"value":75},{"type":13,"tag":633,"props":664,"children":666},{"name":665},"VUID-vkGetMicromapBuildSizesEXT-micromap-07439",[667],{"type":13,"tag":14,"props":668,"children":669},{},[670,671,681,683,686],{"type":18,"value":405},{"type":13,"tag":375,"props":672,"children":674},{"href":673},"/man/VkPhysicalDeviceOpacityMicromapFeaturesEXT#features-micromap",[675],{"type":13,"tag":34,"props":676,"children":678},{"className":677},[],[679],{"type":18,"value":680},"micromap",{"type":18,"value":682}," feature ",{"type":13,"tag":652,"props":684,"children":685},{"type":654},[],{"type":18,"value":687}," be enabled",{"type":13,"tag":633,"props":689,"children":691},{"name":690},"VUID-vkGetMicromapBuildSizesEXT-device-07440",[692],{"type":13,"tag":14,"props":693,"children":694},{},[695,697,702,704,714,715,718],{"type":18,"value":696},"If ",{"type":13,"tag":34,"props":698,"children":700},{"className":699},[],[701],{"type":18,"value":75},{"type":18,"value":703}," was created with multiple physical devices, then the\n",{"type":13,"tag":375,"props":705,"children":707},{"href":706},"/man/VkPhysicalDeviceBufferDeviceAddressFeatures#features-bufferDeviceAddressMultiDevice",[708],{"type":13,"tag":34,"props":709,"children":711},{"className":710},[],[712],{"type":18,"value":713},"bufferDeviceAddressMultiDevice",{"type":18,"value":682},{"type":13,"tag":652,"props":716,"children":717},{"type":654},[],{"type":18,"value":687},{"type":13,"tag":628,"props":720,"children":722},{"name":721},"Valid Usage (Implicit)",[723,749,774,798],{"type":13,"tag":633,"props":724,"children":726},{"name":725},"VUID-vkGetMicromapBuildSizesEXT-device-parameter",[727],{"type":13,"tag":14,"props":728,"children":729},{},[730,735,736,739,741,747],{"type":13,"tag":34,"props":731,"children":733},{"className":732},[],[734],{"type":18,"value":75},{"type":18,"value":619},{"type":13,"tag":652,"props":737,"children":738},{"type":654},[],{"type":18,"value":740}," be a valid ",{"type":13,"tag":375,"props":742,"children":744},{"href":743},"/man/VkDevice",[745],{"type":18,"value":746},"VkDevice",{"type":18,"value":748}," handle",{"type":13,"tag":633,"props":750,"children":752},{"name":751},"VUID-vkGetMicromapBuildSizesEXT-buildType-parameter",[753],{"type":13,"tag":14,"props":754,"children":755},{},[756,761,762,765,766,772],{"type":13,"tag":34,"props":757,"children":759},{"className":758},[],[760],{"type":18,"value":94},{"type":18,"value":619},{"type":13,"tag":652,"props":763,"children":764},{"type":654},[],{"type":18,"value":740},{"type":13,"tag":375,"props":767,"children":769},{"href":768},"/man/VkAccelerationStructureBuildTypeKHR",[770],{"type":18,"value":771},"VkAccelerationStructureBuildTypeKHR",{"type":18,"value":773}," value",{"type":13,"tag":633,"props":775,"children":777},{"name":776},"VUID-vkGetMicromapBuildSizesEXT-pBuildInfo-parameter",[778],{"type":13,"tag":14,"props":779,"children":780},{},[781,786,787,790,792,796],{"type":13,"tag":34,"props":782,"children":784},{"className":783},[],[785],{"type":18,"value":371},{"type":18,"value":619},{"type":13,"tag":652,"props":788,"children":789},{"type":654},[],{"type":18,"value":791}," be a valid pointer to a valid ",{"type":13,"tag":375,"props":793,"children":794},{"href":377},[795],{"type":18,"value":380},{"type":18,"value":797}," structure",{"type":13,"tag":633,"props":799,"children":801},{"name":800},"VUID-vkGetMicromapBuildSizesEXT-pSizeInfo-parameter",[802],{"type":13,"tag":14,"props":803,"children":804},{},[805,810,811,814,816,820],{"type":13,"tag":34,"props":806,"children":808},{"className":807},[],[809],{"type":18,"value":391},{"type":18,"value":619},{"type":13,"tag":652,"props":812,"children":813},{"type":654},[],{"type":18,"value":815}," be a valid pointer to a ",{"type":13,"tag":375,"props":817,"children":818},{"href":395},[819],{"type":18,"value":398},{"type":18,"value":797},{"type":13,"tag":822,"props":823,"children":824},"style",{},[825],{"type":18,"value":826},"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":828},[],"markdown",1729612516217]