[{"data":1,"prerenderedAt":496},["ShallowReactive",2],{"IAzwXNX6pK":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":495,"_id":4},"vkGetAccelerationStructureMemoryRequirementsNV","Get acceleration structure memory requirements","VK_NV_ray_tracing","protos",[],{"type":10,"children":11,"toc":493},"root",[12,20,79,84,354,407,487],{"type":13,"tag":14,"props":15,"children":16},"element","p",{},[17],{"type":18,"value":19},"text","An acceleration structure has memory requirements for the structure object\nitself, scratch space for the build, and scratch space for the update.",{"type":13,"tag":14,"props":21,"children":22},{},[23,25,32,34,40,42,48,50,56,58,64,66,71,73,77],{"type":18,"value":24},"Scratch space is allocated as a ",{"type":13,"tag":26,"props":27,"children":29},"code",{"className":28},[],[30],{"type":18,"value":31},"VkBuffer",{"type":18,"value":33},", so for\n",{"type":13,"tag":26,"props":35,"children":37},{"className":36},[],[38],{"type":18,"value":39},"VK_ACCELERATION_STRUCTURE_MEMORY_REQUIREMENTS_TYPE_BUILD_SCRATCH_NV",{"type":18,"value":41},"\nand\n",{"type":13,"tag":26,"props":43,"children":45},{"className":44},[],[46],{"type":18,"value":47},"VK_ACCELERATION_STRUCTURE_MEMORY_REQUIREMENTS_TYPE_UPDATE_SCRATCH_NV",{"type":18,"value":49},"\nthe ",{"type":13,"tag":26,"props":51,"children":53},{"className":52},[],[54],{"type":18,"value":55},"pMemoryRequirements→alignment",{"type":18,"value":57}," and\n",{"type":13,"tag":26,"props":59,"children":61},{"className":60},[],[62],{"type":18,"value":63},"pMemoryRequirements→memoryTypeBits",{"type":18,"value":65}," values returned by this call ",{"type":13,"tag":67,"props":68,"children":70},"normative",{"type":69},"must",[],{"type":18,"value":72},"\nbe filled with zero, and ",{"type":13,"tag":67,"props":74,"children":76},{"type":75},"should",[],{"type":18,"value":78}," be ignored by the application.",{"type":13,"tag":14,"props":80,"children":81},{},[82],{"type":18,"value":83},"To query the memory requirements, call:",{"type":13,"tag":85,"props":86,"children":87},"code-group",{},[88,195],{"type":13,"tag":89,"props":90,"children":96},"pre",{"className":91,"code":92,"filename":93,"language":94,"meta":95,"style":95},"language-c shiki shiki-themes github-light-default github-dark-default","void vkGetAccelerationStructureMemoryRequirementsNV(\n VkDevice device,\n const VkAccelerationStructureMemoryRequirementsInfoNV* pInfo,\n VkMemoryRequirements2KHR* pMemoryRequirements);\n","C","c","",[97],{"type":13,"tag":26,"props":98,"children":99},{"__ignoreMap":95},[100,124,144,172],{"type":13,"tag":101,"props":102,"children":105},"span",{"class":103,"line":104},"line",1,[106,112,118],{"type":13,"tag":101,"props":107,"children":109},{"style":108},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[110],{"type":18,"value":111},"void",{"type":13,"tag":101,"props":113,"children":115},{"style":114},"--shiki-default:#8250DF;--shiki-dark:#D2A8FF",[116],{"type":18,"value":117}," vkGetAccelerationStructureMemoryRequirementsNV",{"type":13,"tag":101,"props":119,"children":121},{"style":120},"--shiki-default:#1F2328;--shiki-dark:#E6EDF3",[122],{"type":18,"value":123},"(\n",{"type":13,"tag":101,"props":125,"children":127},{"class":103,"line":126},2,[128,133,139],{"type":13,"tag":101,"props":129,"children":130},{"style":120},[131],{"type":18,"value":132}," VkDevice ",{"type":13,"tag":101,"props":134,"children":136},{"style":135},"--shiki-default:#953800;--shiki-dark:#FFA657",[137],{"type":18,"value":138},"device",{"type":13,"tag":101,"props":140,"children":141},{"style":120},[142],{"type":18,"value":143},",\n",{"type":13,"tag":101,"props":145,"children":147},{"class":103,"line":146},3,[148,153,158,163,168],{"type":13,"tag":101,"props":149,"children":150},{"style":108},[151],{"type":18,"value":152}," const",{"type":13,"tag":101,"props":154,"children":155},{"style":120},[156],{"type":18,"value":157}," VkAccelerationStructureMemoryRequirementsInfoNV",{"type":13,"tag":101,"props":159,"children":160},{"style":108},[161],{"type":18,"value":162},"*",{"type":13,"tag":101,"props":164,"children":165},{"style":135},[166],{"type":18,"value":167}," pInfo",{"type":13,"tag":101,"props":169,"children":170},{"style":120},[171],{"type":18,"value":143},{"type":13,"tag":101,"props":173,"children":175},{"class":103,"line":174},4,[176,181,185,190],{"type":13,"tag":101,"props":177,"children":178},{"style":120},[179],{"type":18,"value":180}," VkMemoryRequirements2KHR",{"type":13,"tag":101,"props":182,"children":183},{"style":108},[184],{"type":18,"value":162},{"type":13,"tag":101,"props":186,"children":187},{"style":135},[188],{"type":18,"value":189}," pMemoryRequirements",{"type":13,"tag":101,"props":191,"children":192},{"style":120},[193],{"type":18,"value":194},");\n",{"type":13,"tag":89,"props":196,"children":201},{"className":197,"code":198,"filename":199,"language":200,"meta":95,"style":95},"language-rs shiki shiki-themes github-light-default github-dark-default","pub fn get_acceleration_structure_memory_requirements_nv(\n device: crate :: vk :: vk::Device,\n p_info: *const vk::AccelerationStructureMemoryRequirementsInfoNV,\n p_memory_requirements: *mut vk::MemoryRequirements2KHR,\n);\n","Rust","rs",[202],{"type":13,"tag":26,"props":203,"children":204},{"__ignoreMap":95},[205,227,278,312,346],{"type":13,"tag":101,"props":206,"children":207},{"class":103,"line":104},[208,213,218,223],{"type":13,"tag":101,"props":209,"children":210},{"style":108},[211],{"type":18,"value":212},"pub",{"type":13,"tag":101,"props":214,"children":215},{"style":108},[216],{"type":18,"value":217}," fn",{"type":13,"tag":101,"props":219,"children":220},{"style":114},[221],{"type":18,"value":222}," get_acceleration_structure_memory_requirements_nv",{"type":13,"tag":101,"props":224,"children":225},{"style":120},[226],{"type":18,"value":123},{"type":13,"tag":101,"props":228,"children":229},{"class":103,"line":126},[230,235,240,245,250,255,260,265,269,274],{"type":13,"tag":101,"props":231,"children":232},{"style":120},[233],{"type":18,"value":234}," device",{"type":13,"tag":101,"props":236,"children":237},{"style":108},[238],{"type":18,"value":239},":",{"type":13,"tag":101,"props":241,"children":242},{"style":108},[243],{"type":18,"value":244}," crate",{"type":13,"tag":101,"props":246,"children":247},{"style":108},[248],{"type":18,"value":249}," ::",{"type":13,"tag":101,"props":251,"children":252},{"style":120},[253],{"type":18,"value":254}," vk ",{"type":13,"tag":101,"props":256,"children":257},{"style":108},[258],{"type":18,"value":259},"::",{"type":13,"tag":101,"props":261,"children":262},{"style":135},[263],{"type":18,"value":264}," vk",{"type":13,"tag":101,"props":266,"children":267},{"style":108},[268],{"type":18,"value":259},{"type":13,"tag":101,"props":270,"children":271},{"style":135},[272],{"type":18,"value":273},"Device",{"type":13,"tag":101,"props":275,"children":276},{"style":120},[277],{"type":18,"value":143},{"type":13,"tag":101,"props":279,"children":280},{"class":103,"line":146},[281,286,290,295,299,303,308],{"type":13,"tag":101,"props":282,"children":283},{"style":120},[284],{"type":18,"value":285}," p_info",{"type":13,"tag":101,"props":287,"children":288},{"style":108},[289],{"type":18,"value":239},{"type":13,"tag":101,"props":291,"children":292},{"style":108},[293],{"type":18,"value":294}," *const",{"type":13,"tag":101,"props":296,"children":297},{"style":135},[298],{"type":18,"value":264},{"type":13,"tag":101,"props":300,"children":301},{"style":108},[302],{"type":18,"value":259},{"type":13,"tag":101,"props":304,"children":305},{"style":135},[306],{"type":18,"value":307},"AccelerationStructureMemoryRequirementsInfoNV",{"type":13,"tag":101,"props":309,"children":310},{"style":120},[311],{"type":18,"value":143},{"type":13,"tag":101,"props":313,"children":314},{"class":103,"line":174},[315,320,324,329,333,337,342],{"type":13,"tag":101,"props":316,"children":317},{"style":120},[318],{"type":18,"value":319}," p_memory_requirements",{"type":13,"tag":101,"props":321,"children":322},{"style":108},[323],{"type":18,"value":239},{"type":13,"tag":101,"props":325,"children":326},{"style":108},[327],{"type":18,"value":328}," *mut",{"type":13,"tag":101,"props":330,"children":331},{"style":135},[332],{"type":18,"value":264},{"type":13,"tag":101,"props":334,"children":335},{"style":108},[336],{"type":18,"value":259},{"type":13,"tag":101,"props":338,"children":339},{"style":135},[340],{"type":18,"value":341},"MemoryRequirements2KHR",{"type":13,"tag":101,"props":343,"children":344},{"style":120},[345],{"type":18,"value":143},{"type":13,"tag":101,"props":347,"children":349},{"class":103,"line":348},5,[350],{"type":13,"tag":101,"props":351,"children":352},{"style":120},[353],{"type":18,"value":194},{"type":13,"tag":355,"props":356,"children":357},"ul",{},[358,369,389],{"type":13,"tag":359,"props":360,"children":361},"li",{},[362,367],{"type":13,"tag":26,"props":363,"children":365},{"className":364},[],[366],{"type":18,"value":138},{"type":18,"value":368}," is the logical device on which the acceleration structure\nwas created.",{"type":13,"tag":359,"props":370,"children":371},{},[372,378,380,387],{"type":13,"tag":26,"props":373,"children":375},{"className":374},[],[376],{"type":18,"value":377},"pInfo",{"type":18,"value":379}," is a pointer to a\n",{"type":13,"tag":381,"props":382,"children":384},"a",{"href":383},"/man/VkAccelerationStructureMemoryRequirementsInfoNV",[385],{"type":18,"value":386},"VkAccelerationStructureMemoryRequirementsInfoNV",{"type":18,"value":388}," structure\nspecifying the acceleration structure to get memory requirements for.",{"type":13,"tag":359,"props":390,"children":391},{},[392,398,399,405],{"type":13,"tag":26,"props":393,"children":395},{"className":394},[],[396],{"type":18,"value":397},"pMemoryRequirements",{"type":18,"value":379},{"type":13,"tag":381,"props":400,"children":402},{"href":401},"/man/VkMemoryRequirements2KHR",[403],{"type":18,"value":404},"VkMemoryRequirements2KHR",{"type":18,"value":406}," structure in which the requested\nacceleration structure memory requirements are returned.",{"type":13,"tag":408,"props":409,"children":411},"validity-group",{"name":410},"Valid Usage (Implicit)",[412,440,464],{"type":13,"tag":413,"props":414,"children":416},"validity-field",{"name":415},"VUID-vkGetAccelerationStructureMemoryRequirementsNV-device-parameter",[417],{"type":13,"tag":14,"props":418,"children":419},{},[420,425,427,430,432,438],{"type":13,"tag":26,"props":421,"children":423},{"className":422},[],[424],{"type":18,"value":138},{"type":18,"value":426}," ",{"type":13,"tag":67,"props":428,"children":429},{"type":69},[],{"type":18,"value":431}," be a valid ",{"type":13,"tag":381,"props":433,"children":435},{"href":434},"/man/VkDevice",[436],{"type":18,"value":437},"VkDevice",{"type":18,"value":439}," handle",{"type":13,"tag":413,"props":441,"children":443},{"name":442},"VUID-vkGetAccelerationStructureMemoryRequirementsNV-pInfo-parameter",[444],{"type":13,"tag":14,"props":445,"children":446},{},[447,452,453,456,458,462],{"type":13,"tag":26,"props":448,"children":450},{"className":449},[],[451],{"type":18,"value":377},{"type":18,"value":426},{"type":13,"tag":67,"props":454,"children":455},{"type":69},[],{"type":18,"value":457}," be a valid pointer to a valid ",{"type":13,"tag":381,"props":459,"children":460},{"href":383},[461],{"type":18,"value":386},{"type":18,"value":463}," structure",{"type":13,"tag":413,"props":465,"children":467},{"name":466},"VUID-vkGetAccelerationStructureMemoryRequirementsNV-pMemoryRequirements-parameter",[468],{"type":13,"tag":14,"props":469,"children":470},{},[471,476,477,480,482,486],{"type":13,"tag":26,"props":472,"children":474},{"className":473},[],[475],{"type":18,"value":397},{"type":18,"value":426},{"type":13,"tag":67,"props":478,"children":479},{"type":69},[],{"type":18,"value":481}," be a valid pointer to a ",{"type":13,"tag":381,"props":483,"children":484},{"href":401},[485],{"type":18,"value":404},{"type":18,"value":463},{"type":13,"tag":488,"props":489,"children":490},"style",{},[491],{"type":18,"value":492},"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":95,"searchDepth":126,"depth":126,"links":494},[],"markdown",1725732616659]