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