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