[{"data":1,"prerenderedAt":825},["ShallowReactive",2],{"GKiCYa4nrf":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":824,"_id":4},"VkPartitionedAccelerationStructureWriteInstanceDataNV","Structure describing instance data to write in PTLAS","VK_NV_partitioned_acceleration_structure","structs",[],{"type":10,"children":11,"toc":822},"root",[12,28,474,632,786,816],{"type":13,"tag":14,"props":15,"children":16},"element","p",{},[17,20,26],{"type":18,"value":19},"text","The ",{"type":13,"tag":21,"props":22,"children":24},"a",{"href":23},"/man/VkPartitionedAccelerationStructureWriteInstanceDataNV",[25],{"type":18,"value":4},{"type":18,"value":27}," structure is\ndefined as:",{"type":13,"tag":29,"props":30,"children":31},"code-group",{},[32,201],{"type":13,"tag":33,"props":34,"children":40},"pre",{"className":35,"code":36,"filename":37,"language":38,"meta":39,"style":39},"language-c shiki shiki-themes github-light-default github-dark-default","typedef struct VkPartitionedAccelerationStructureWriteInstanceDataNV {\n VkTransformMatrixKHR transform;\n float explicitAABB[6];\n uint32_t instanceID;\n uint32_t instanceMask;\n uint32_t instanceContributionToHitGroupIndex;\n VkPartitionedAccelerationStructureInstanceFlagsNV instanceFlags;\n uint32_t instanceIndex;\n uint32_t partitionIndex;\n VkDeviceAddress accelerationStructure;\n} VkPartitionedAccelerationStructureWriteInstanceDataNV;\n","C","c","",[41],{"type":13,"tag":42,"props":43,"children":44},"code",{"__ignoreMap":39},[45,68,77,108,122,135,148,157,170,183,192],{"type":13,"tag":46,"props":47,"children":50},"span",{"class":48,"line":49},"line",1,[51,57,62],{"type":13,"tag":46,"props":52,"children":54},{"style":53},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[55],{"type":18,"value":56},"typedef",{"type":13,"tag":46,"props":58,"children":59},{"style":53},[60],{"type":18,"value":61}," struct",{"type":13,"tag":46,"props":63,"children":65},{"style":64},"--shiki-default:#1F2328;--shiki-dark:#E6EDF3",[66],{"type":18,"value":67}," VkPartitionedAccelerationStructureWriteInstanceDataNV {\n",{"type":13,"tag":46,"props":69,"children":71},{"class":48,"line":70},2,[72],{"type":13,"tag":46,"props":73,"children":74},{"style":64},[75],{"type":18,"value":76}," VkTransformMatrixKHR transform;\n",{"type":13,"tag":46,"props":78,"children":80},{"class":48,"line":79},3,[81,86,92,97,103],{"type":13,"tag":46,"props":82,"children":83},{"style":53},[84],{"type":18,"value":85}," float",{"type":13,"tag":46,"props":87,"children":89},{"style":88},"--shiki-default:#953800;--shiki-dark:#FFA657",[90],{"type":18,"value":91}," explicitAABB",{"type":13,"tag":46,"props":93,"children":94},{"style":64},[95],{"type":18,"value":96},"[",{"type":13,"tag":46,"props":98,"children":100},{"style":99},"--shiki-default:#0550AE;--shiki-dark:#79C0FF",[101],{"type":18,"value":102},"6",{"type":13,"tag":46,"props":104,"children":105},{"style":64},[106],{"type":18,"value":107},"];\n",{"type":13,"tag":46,"props":109,"children":111},{"class":48,"line":110},4,[112,117],{"type":13,"tag":46,"props":113,"children":114},{"style":53},[115],{"type":18,"value":116}," uint32_t",{"type":13,"tag":46,"props":118,"children":119},{"style":64},[120],{"type":18,"value":121}," instanceID;\n",{"type":13,"tag":46,"props":123,"children":125},{"class":48,"line":124},5,[126,130],{"type":13,"tag":46,"props":127,"children":128},{"style":53},[129],{"type":18,"value":116},{"type":13,"tag":46,"props":131,"children":132},{"style":64},[133],{"type":18,"value":134}," instanceMask;\n",{"type":13,"tag":46,"props":136,"children":138},{"class":48,"line":137},6,[139,143],{"type":13,"tag":46,"props":140,"children":141},{"style":53},[142],{"type":18,"value":116},{"type":13,"tag":46,"props":144,"children":145},{"style":64},[146],{"type":18,"value":147}," instanceContributionToHitGroupIndex;\n",{"type":13,"tag":46,"props":149,"children":151},{"class":48,"line":150},7,[152],{"type":13,"tag":46,"props":153,"children":154},{"style":64},[155],{"type":18,"value":156}," VkPartitionedAccelerationStructureInstanceFlagsNV instanceFlags;\n",{"type":13,"tag":46,"props":158,"children":160},{"class":48,"line":159},8,[161,165],{"type":13,"tag":46,"props":162,"children":163},{"style":53},[164],{"type":18,"value":116},{"type":13,"tag":46,"props":166,"children":167},{"style":64},[168],{"type":18,"value":169}," instanceIndex;\n",{"type":13,"tag":46,"props":171,"children":173},{"class":48,"line":172},9,[174,178],{"type":13,"tag":46,"props":175,"children":176},{"style":53},[177],{"type":18,"value":116},{"type":13,"tag":46,"props":179,"children":180},{"style":64},[181],{"type":18,"value":182}," partitionIndex;\n",{"type":13,"tag":46,"props":184,"children":186},{"class":48,"line":185},10,[187],{"type":13,"tag":46,"props":188,"children":189},{"style":64},[190],{"type":18,"value":191}," VkDeviceAddress accelerationStructure;\n",{"type":13,"tag":46,"props":193,"children":195},{"class":48,"line":194},11,[196],{"type":13,"tag":46,"props":197,"children":198},{"style":64},[199],{"type":18,"value":200},"} VkPartitionedAccelerationStructureWriteInstanceDataNV;\n",{"type":13,"tag":33,"props":202,"children":207},{"className":203,"code":204,"filename":205,"language":206,"meta":39,"style":39},"language-rs shiki shiki-themes github-light-default github-dark-default","pub struct PartitionedAccelerationStructureWriteInstanceDataNV {\n transform: vk::TransformMatrixKHR,\n explicit_aabb: *const [f32 ; 6],\n instance_id: u32,\n instance_mask: u32,\n instance_contribution_to_hit_group_index: u32,\n instance_flags: vk::PartitionedAccelerationStructureInstanceFlagsNV,\n instance_index: u32,\n partition_index: u32,\n acceleration_structure: vk::DeviceAddress,\n}\n","Rust","rs",[208],{"type":13,"tag":42,"props":209,"children":210},{"__ignoreMap":39},[211,233,266,307,328,348,368,397,417,437,466],{"type":13,"tag":46,"props":212,"children":213},{"class":48,"line":49},[214,219,223,228],{"type":13,"tag":46,"props":215,"children":216},{"style":53},[217],{"type":18,"value":218},"pub",{"type":13,"tag":46,"props":220,"children":221},{"style":53},[222],{"type":18,"value":61},{"type":13,"tag":46,"props":224,"children":225},{"style":88},[226],{"type":18,"value":227}," PartitionedAccelerationStructureWriteInstanceDataNV",{"type":13,"tag":46,"props":229,"children":230},{"style":64},[231],{"type":18,"value":232}," {\n",{"type":13,"tag":46,"props":234,"children":235},{"class":48,"line":70},[236,241,246,251,256,261],{"type":13,"tag":46,"props":237,"children":238},{"style":64},[239],{"type":18,"value":240}," transform",{"type":13,"tag":46,"props":242,"children":243},{"style":53},[244],{"type":18,"value":245},":",{"type":13,"tag":46,"props":247,"children":248},{"style":88},[249],{"type":18,"value":250}," vk",{"type":13,"tag":46,"props":252,"children":253},{"style":53},[254],{"type":18,"value":255},"::",{"type":13,"tag":46,"props":257,"children":258},{"style":88},[259],{"type":18,"value":260},"TransformMatrixKHR",{"type":13,"tag":46,"props":262,"children":263},{"style":64},[264],{"type":18,"value":265},",\n",{"type":13,"tag":46,"props":267,"children":268},{"class":48,"line":79},[269,274,278,283,288,293,298,302],{"type":13,"tag":46,"props":270,"children":271},{"style":64},[272],{"type":18,"value":273}," explicit_aabb",{"type":13,"tag":46,"props":275,"children":276},{"style":53},[277],{"type":18,"value":245},{"type":13,"tag":46,"props":279,"children":280},{"style":53},[281],{"type":18,"value":282}," *const",{"type":13,"tag":46,"props":284,"children":285},{"style":64},[286],{"type":18,"value":287}," [",{"type":13,"tag":46,"props":289,"children":290},{"style":88},[291],{"type":18,"value":292},"f32",{"type":13,"tag":46,"props":294,"children":295},{"style":64},[296],{"type":18,"value":297}," ; ",{"type":13,"tag":46,"props":299,"children":300},{"style":99},[301],{"type":18,"value":102},{"type":13,"tag":46,"props":303,"children":304},{"style":64},[305],{"type":18,"value":306},"],\n",{"type":13,"tag":46,"props":308,"children":309},{"class":48,"line":110},[310,315,319,324],{"type":13,"tag":46,"props":311,"children":312},{"style":64},[313],{"type":18,"value":314}," instance_id",{"type":13,"tag":46,"props":316,"children":317},{"style":53},[318],{"type":18,"value":245},{"type":13,"tag":46,"props":320,"children":321},{"style":88},[322],{"type":18,"value":323}," u32",{"type":13,"tag":46,"props":325,"children":326},{"style":64},[327],{"type":18,"value":265},{"type":13,"tag":46,"props":329,"children":330},{"class":48,"line":124},[331,336,340,344],{"type":13,"tag":46,"props":332,"children":333},{"style":64},[334],{"type":18,"value":335}," instance_mask",{"type":13,"tag":46,"props":337,"children":338},{"style":53},[339],{"type":18,"value":245},{"type":13,"tag":46,"props":341,"children":342},{"style":88},[343],{"type":18,"value":323},{"type":13,"tag":46,"props":345,"children":346},{"style":64},[347],{"type":18,"value":265},{"type":13,"tag":46,"props":349,"children":350},{"class":48,"line":137},[351,356,360,364],{"type":13,"tag":46,"props":352,"children":353},{"style":64},[354],{"type":18,"value":355}," instance_contribution_to_hit_group_index",{"type":13,"tag":46,"props":357,"children":358},{"style":53},[359],{"type":18,"value":245},{"type":13,"tag":46,"props":361,"children":362},{"style":88},[363],{"type":18,"value":323},{"type":13,"tag":46,"props":365,"children":366},{"style":64},[367],{"type":18,"value":265},{"type":13,"tag":46,"props":369,"children":370},{"class":48,"line":150},[371,376,380,384,388,393],{"type":13,"tag":46,"props":372,"children":373},{"style":64},[374],{"type":18,"value":375}," instance_flags",{"type":13,"tag":46,"props":377,"children":378},{"style":53},[379],{"type":18,"value":245},{"type":13,"tag":46,"props":381,"children":382},{"style":88},[383],{"type":18,"value":250},{"type":13,"tag":46,"props":385,"children":386},{"style":53},[387],{"type":18,"value":255},{"type":13,"tag":46,"props":389,"children":390},{"style":88},[391],{"type":18,"value":392},"PartitionedAccelerationStructureInstanceFlagsNV",{"type":13,"tag":46,"props":394,"children":395},{"style":64},[396],{"type":18,"value":265},{"type":13,"tag":46,"props":398,"children":399},{"class":48,"line":159},[400,405,409,413],{"type":13,"tag":46,"props":401,"children":402},{"style":64},[403],{"type":18,"value":404}," instance_index",{"type":13,"tag":46,"props":406,"children":407},{"style":53},[408],{"type":18,"value":245},{"type":13,"tag":46,"props":410,"children":411},{"style":88},[412],{"type":18,"value":323},{"type":13,"tag":46,"props":414,"children":415},{"style":64},[416],{"type":18,"value":265},{"type":13,"tag":46,"props":418,"children":419},{"class":48,"line":172},[420,425,429,433],{"type":13,"tag":46,"props":421,"children":422},{"style":64},[423],{"type":18,"value":424}," partition_index",{"type":13,"tag":46,"props":426,"children":427},{"style":53},[428],{"type":18,"value":245},{"type":13,"tag":46,"props":430,"children":431},{"style":88},[432],{"type":18,"value":323},{"type":13,"tag":46,"props":434,"children":435},{"style":64},[436],{"type":18,"value":265},{"type":13,"tag":46,"props":438,"children":439},{"class":48,"line":185},[440,445,449,453,457,462],{"type":13,"tag":46,"props":441,"children":442},{"style":64},[443],{"type":18,"value":444}," acceleration_structure",{"type":13,"tag":46,"props":446,"children":447},{"style":53},[448],{"type":18,"value":245},{"type":13,"tag":46,"props":450,"children":451},{"style":88},[452],{"type":18,"value":250},{"type":13,"tag":46,"props":454,"children":455},{"style":53},[456],{"type":18,"value":255},{"type":13,"tag":46,"props":458,"children":459},{"style":88},[460],{"type":18,"value":461},"DeviceAddress",{"type":13,"tag":46,"props":463,"children":464},{"style":64},[465],{"type":18,"value":265},{"type":13,"tag":46,"props":467,"children":468},{"class":48,"line":194},[469],{"type":13,"tag":46,"props":470,"children":471},{"style":64},[472],{"type":18,"value":473},"}\n",{"type":13,"tag":475,"props":476,"children":477},"ul",{},[478,498,517,528,546,557,576,587,614],{"type":13,"tag":479,"props":480,"children":481},"li",{},[482,488,490,496],{"type":13,"tag":42,"props":483,"children":485},{"className":484},[],[486],{"type":18,"value":487},"transform",{"type":18,"value":489}," is a ",{"type":13,"tag":21,"props":491,"children":493},{"href":492},"/man/VkTransformMatrixKHR",[494],{"type":18,"value":495},"VkTransformMatrixKHR",{"type":18,"value":497}," structure describing the\ntransformation to be applied to the instance in PTLAS.",{"type":13,"tag":479,"props":499,"children":500},{},[501,507,509,515],{"type":13,"tag":42,"props":502,"children":504},{"className":503},[],[505],{"type":18,"value":506},"explicitAABB",{"type":18,"value":508}," specifies an axis aligned bounding box representing\nthe maximum extent of any vertex within the used acceleration structure\nafter applying the instance-to-world transformation.\nThe ",{"type":13,"tag":21,"props":510,"children":512},{"href":511},"/chapters/acceleration-structure#ptlas-partition-translation",[513],{"type":18,"value":514},"partition translation",{"type":18,"value":516}," is not\napplied to the bounding box.",{"type":13,"tag":479,"props":518,"children":519},{},[520,526],{"type":13,"tag":42,"props":521,"children":523},{"className":522},[],[524],{"type":18,"value":525},"instanceID",{"type":18,"value":527}," is a user specified constant assigned to an instance in\nthe PTLAS.",{"type":13,"tag":479,"props":529,"children":530},{},[531,537,539,544],{"type":13,"tag":42,"props":532,"children":534},{"className":533},[],[535],{"type":18,"value":536},"instanceMask",{"type":18,"value":538}," is a 8-bit mask assigned to the instance that ",{"type":13,"tag":540,"props":541,"children":543},"normative",{"type":542},"may",[],{"type":18,"value":545}," be\nused to include or reject group of instances.",{"type":13,"tag":479,"props":547,"children":548},{},[549,555],{"type":13,"tag":42,"props":550,"children":552},{"className":551},[],[553],{"type":18,"value":554},"instanceContributionToHitGroupIndex",{"type":18,"value":556}," is a 24-bit per application\nspecified instance value added in the indexing into the shader binding\ntable to fetch the hit group to use.",{"type":13,"tag":479,"props":558,"children":559},{},[560,566,568,574],{"type":13,"tag":42,"props":561,"children":563},{"className":562},[],[564],{"type":18,"value":565},"instanceFlags",{"type":18,"value":567}," is a bitmask of\n",{"type":13,"tag":21,"props":569,"children":571},{"href":570},"/man/VkPartitionedAccelerationStructureInstanceFlagsNV",[572],{"type":18,"value":573},"VkPartitionedAccelerationStructureInstanceFlagsNV",{"type":18,"value":575}," specifying flags\nan instance in the PTLAS.",{"type":13,"tag":479,"props":577,"children":578},{},[579,585],{"type":13,"tag":42,"props":580,"children":582},{"className":581},[],[583],{"type":18,"value":584},"instanceIndex",{"type":18,"value":586}," is the index of the instance within the PTLAS.",{"type":13,"tag":479,"props":588,"children":589},{},[590,596,598,604,606,612],{"type":13,"tag":42,"props":591,"children":593},{"className":592},[],[594],{"type":18,"value":595},"partitionIndex",{"type":18,"value":597}," is the index of the partition to which this\ninstance belongs.\n",{"type":13,"tag":21,"props":599,"children":601},{"href":600},"/chapters/acceleration-structure#ptlas-global-partition",[602],{"type":18,"value":603},"Global partitions",{"type":18,"value":605}," are referred to by\n",{"type":13,"tag":42,"props":607,"children":609},{"className":608},[],[610],{"type":18,"value":611},"VK_PARTITIONED_ACCELERATION_STRUCTURE_PARTITION_INDEX_GLOBAL_NV",{"type":18,"value":613},".",{"type":13,"tag":479,"props":615,"children":616},{},[617,623,625,631],{"type":13,"tag":42,"props":618,"children":620},{"className":619},[],[621],{"type":18,"value":622},"accelerationStructure",{"type":18,"value":624}," is the device address of the bottom level\nacceleration structure or a clustered bottom level acceleration\nstructure that is being instanced.\nThis instance is disabled if the device address is ",{"type":13,"tag":42,"props":626,"children":628},{"className":627},[],[629],{"type":18,"value":630},"0",{"type":18,"value":613},{"type":13,"tag":633,"props":634,"children":636},"validity-group",{"name":635},"Valid Usage",[637,665,688,726,760],{"type":13,"tag":638,"props":639,"children":641},"validity-field",{"name":640},"VUID-VkPartitionedAccelerationStructureWriteInstanceDataNV-instanceMask-10566",[642],{"type":13,"tag":14,"props":643,"children":644},{},[645,647,652,654,658,660],{"type":18,"value":646},"The most significant 24 bits of ",{"type":13,"tag":42,"props":648,"children":650},{"className":649},[],[651],{"type":18,"value":536},{"type":18,"value":653}," ",{"type":13,"tag":540,"props":655,"children":657},{"type":656},"must",[],{"type":18,"value":659}," be ",{"type":13,"tag":42,"props":661,"children":663},{"className":662},[],[664],{"type":18,"value":630},{"type":13,"tag":638,"props":666,"children":668},{"name":667},"VUID-VkPartitionedAccelerationStructureWriteInstanceDataNV-instanceContributionToHitGroupIndex-10567",[669],{"type":13,"tag":14,"props":670,"children":671},{},[672,674,679,682,683],{"type":18,"value":673},"The most significant 8 bits of ",{"type":13,"tag":42,"props":675,"children":677},{"className":676},[],[678],{"type":18,"value":554},{"type":13,"tag":540,"props":680,"children":681},{"type":656},[],{"type":18,"value":659},{"type":13,"tag":42,"props":684,"children":686},{"className":685},[],[687],{"type":18,"value":630},{"type":13,"tag":638,"props":689,"children":691},{"name":690},"VUID-VkPartitionedAccelerationStructureWriteInstanceDataNV-instanceIndex-10568",[692],{"type":13,"tag":14,"props":693,"children":694},{},[695,700,701,704,706,712,713,719,720],{"type":13,"tag":42,"props":696,"children":698},{"className":697},[],[699],{"type":18,"value":584},{"type":18,"value":653},{"type":13,"tag":540,"props":702,"children":703},{"type":656},[],{"type":18,"value":705}," be less than\n",{"type":13,"tag":21,"props":707,"children":709},{"href":708},"/man/VkBuildPartitionedAccelerationStructureInfoNV",[710],{"type":18,"value":711},"VkBuildPartitionedAccelerationStructureInfoNV",{"type":18,"value":255},{"type":13,"tag":42,"props":714,"children":716},{"className":715},[],[717],{"type":18,"value":718},"input",{"type":18,"value":255},{"type":13,"tag":42,"props":721,"children":723},{"className":722},[],[724],{"type":18,"value":725},"instanceCount",{"type":13,"tag":638,"props":727,"children":729},{"name":728},"VUID-VkPartitionedAccelerationStructureWriteInstanceDataNV-partitionIndex-10569",[730],{"type":13,"tag":14,"props":731,"children":732},{},[733,738,739,742,743,747,748,753,754],{"type":13,"tag":42,"props":734,"children":736},{"className":735},[],[737],{"type":18,"value":595},{"type":18,"value":653},{"type":13,"tag":540,"props":740,"children":741},{"type":656},[],{"type":18,"value":705},{"type":13,"tag":21,"props":744,"children":745},{"href":708},[746],{"type":18,"value":711},{"type":18,"value":255},{"type":13,"tag":42,"props":749,"children":751},{"className":750},[],[752],{"type":18,"value":718},{"type":18,"value":255},{"type":13,"tag":42,"props":755,"children":757},{"className":756},[],[758],{"type":18,"value":759},"partitionCount",{"type":13,"tag":638,"props":761,"children":763},{"name":762},"VUID-VkPartitionedAccelerationStructureWriteInstanceDataNV-explicitAABB-10570",[764],{"type":13,"tag":14,"props":765,"children":766},{},[767,772,773,776,778,784],{"type":13,"tag":42,"props":768,"children":770},{"className":769},[],[771],{"type":18,"value":506},{"type":18,"value":653},{"type":13,"tag":540,"props":774,"children":775},{"type":656},[],{"type":18,"value":777}," be a valid bounding box if instance was created\nwith flag\n",{"type":13,"tag":42,"props":779,"children":781},{"className":780},[],[782],{"type":18,"value":783},"VK_PARTITIONED_ACCELERATION_STRUCTURE_INSTANCE_FLAG_ENABLE_EXPLICIT_BOUNDING_BOX_NV",{"type":18,"value":785},"\nset",{"type":13,"tag":633,"props":787,"children":789},{"name":788},"Valid Usage (Implicit)",[790],{"type":13,"tag":638,"props":791,"children":793},{"name":792},"VUID-VkPartitionedAccelerationStructureWriteInstanceDataNV-instanceFlags-parameter",[794],{"type":13,"tag":14,"props":795,"children":796},{},[797,802,803,806,808,814],{"type":13,"tag":42,"props":798,"children":800},{"className":799},[],[801],{"type":18,"value":565},{"type":18,"value":653},{"type":13,"tag":540,"props":804,"children":805},{"type":656},[],{"type":18,"value":807}," be a valid combination of ",{"type":13,"tag":21,"props":809,"children":811},{"href":810},"/man/VkPartitionedAccelerationStructureInstanceFlagBitsNV",[812],{"type":18,"value":813},"VkPartitionedAccelerationStructureInstanceFlagBitsNV",{"type":18,"value":815}," values",{"type":13,"tag":817,"props":818,"children":819},"style",{},[820],{"type":18,"value":821},"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":39,"searchDepth":70,"depth":70,"links":823},[],"markdown",1744876556349]