[{"data":1,"prerenderedAt":644},["ShallowReactive",2],{"n386XvUhoj":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":643,"_id":4},"VkCopyAccelerationStructureModeKHR","Acceleration structure copy mode","VK_KHR_acceleration_structure","enums",[],{"type":10,"children":11,"toc":641},"root",[12,29,388,393,474,635],{"type":13,"tag":14,"props":15,"children":16},"element","p",{},[17,20,27],{"type":18,"value":19},"text","Possible values of ",{"type":13,"tag":21,"props":22,"children":24},"code",{"className":23},[],[25],{"type":18,"value":26},"mode",{"type":18,"value":28}," specifying additional operations to perform\nduring the copy, are:",{"type":13,"tag":30,"props":31,"children":32},"code-group",{},[33,168],{"type":13,"tag":34,"props":35,"children":41},"pre",{"className":36,"code":37,"filename":38,"language":39,"meta":40,"style":40},"language-c shiki shiki-themes github-light-default github-dark-default","typedef enum VkCopyAccelerationStructureModeKHR {\n VK_COPY_ACCELERATION_STRUCTURE_MODE_CLONE_KHR = 0,\n VK_COPY_ACCELERATION_STRUCTURE_MODE_COMPACT_KHR = 1,\n VK_COPY_ACCELERATION_STRUCTURE_MODE_SERIALIZE_KHR = 2,\n VK_COPY_ACCELERATION_STRUCTURE_MODE_DESERIALIZE_KHR = 3,\n} VkCopyAccelerationStructureModeKHR;\n","C","c","",[42],{"type":13,"tag":21,"props":43,"children":44},{"__ignoreMap":40},[45,68,93,115,137,159],{"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}," enum",{"type":13,"tag":46,"props":63,"children":65},{"style":64},"--shiki-default:#1F2328;--shiki-dark:#E6EDF3",[66],{"type":18,"value":67}," VkCopyAccelerationStructureModeKHR {\n",{"type":13,"tag":46,"props":69,"children":71},{"class":48,"line":70},2,[72,77,82,88],{"type":13,"tag":46,"props":73,"children":74},{"style":64},[75],{"type":18,"value":76}," VK_COPY_ACCELERATION_STRUCTURE_MODE_CLONE_KHR ",{"type":13,"tag":46,"props":78,"children":79},{"style":53},[80],{"type":18,"value":81},"=",{"type":13,"tag":46,"props":83,"children":85},{"style":84},"--shiki-default:#0550AE;--shiki-dark:#79C0FF",[86],{"type":18,"value":87}," 0",{"type":13,"tag":46,"props":89,"children":90},{"style":64},[91],{"type":18,"value":92},",\n",{"type":13,"tag":46,"props":94,"children":96},{"class":48,"line":95},3,[97,102,106,111],{"type":13,"tag":46,"props":98,"children":99},{"style":64},[100],{"type":18,"value":101}," VK_COPY_ACCELERATION_STRUCTURE_MODE_COMPACT_KHR ",{"type":13,"tag":46,"props":103,"children":104},{"style":53},[105],{"type":18,"value":81},{"type":13,"tag":46,"props":107,"children":108},{"style":84},[109],{"type":18,"value":110}," 1",{"type":13,"tag":46,"props":112,"children":113},{"style":64},[114],{"type":18,"value":92},{"type":13,"tag":46,"props":116,"children":118},{"class":48,"line":117},4,[119,124,128,133],{"type":13,"tag":46,"props":120,"children":121},{"style":64},[122],{"type":18,"value":123}," VK_COPY_ACCELERATION_STRUCTURE_MODE_SERIALIZE_KHR ",{"type":13,"tag":46,"props":125,"children":126},{"style":53},[127],{"type":18,"value":81},{"type":13,"tag":46,"props":129,"children":130},{"style":84},[131],{"type":18,"value":132}," 2",{"type":13,"tag":46,"props":134,"children":135},{"style":64},[136],{"type":18,"value":92},{"type":13,"tag":46,"props":138,"children":140},{"class":48,"line":139},5,[141,146,150,155],{"type":13,"tag":46,"props":142,"children":143},{"style":64},[144],{"type":18,"value":145}," VK_COPY_ACCELERATION_STRUCTURE_MODE_DESERIALIZE_KHR ",{"type":13,"tag":46,"props":147,"children":148},{"style":53},[149],{"type":18,"value":81},{"type":13,"tag":46,"props":151,"children":152},{"style":84},[153],{"type":18,"value":154}," 3",{"type":13,"tag":46,"props":156,"children":157},{"style":64},[158],{"type":18,"value":92},{"type":13,"tag":46,"props":160,"children":162},{"class":48,"line":161},6,[163],{"type":13,"tag":46,"props":164,"children":165},{"style":64},[166],{"type":18,"value":167},"} VkCopyAccelerationStructureModeKHR;\n",{"type":13,"tag":34,"props":169,"children":174},{"className":170,"code":171,"filename":172,"language":173,"meta":40,"style":40},"language-rs shiki shiki-themes github-light-default github-dark-default","pub struct CopyAccelerationStructureModeKHR(u32);\nimpl CopyAccelerationStructureModeKHR {\n pub const CLONE: Self = 0;\n pub const COMPACT: Self = 1;\n pub const SERIALIZE: Self = 2;\n pub const DESERIALIZE: Self = 3;\n}\n","Rust","rs",[175],{"type":13,"tag":21,"props":176,"children":177},{"__ignoreMap":40},[178,212,229,271,307,343,379],{"type":13,"tag":46,"props":179,"children":180},{"class":48,"line":49},[181,186,191,197,202,207],{"type":13,"tag":46,"props":182,"children":183},{"style":53},[184],{"type":18,"value":185},"pub",{"type":13,"tag":46,"props":187,"children":188},{"style":53},[189],{"type":18,"value":190}," struct",{"type":13,"tag":46,"props":192,"children":194},{"style":193},"--shiki-default:#953800;--shiki-dark:#FFA657",[195],{"type":18,"value":196}," CopyAccelerationStructureModeKHR",{"type":13,"tag":46,"props":198,"children":199},{"style":64},[200],{"type":18,"value":201},"(",{"type":13,"tag":46,"props":203,"children":204},{"style":193},[205],{"type":18,"value":206},"u32",{"type":13,"tag":46,"props":208,"children":209},{"style":64},[210],{"type":18,"value":211},");\n",{"type":13,"tag":46,"props":213,"children":214},{"class":48,"line":70},[215,220,224],{"type":13,"tag":46,"props":216,"children":217},{"style":53},[218],{"type":18,"value":219},"impl",{"type":13,"tag":46,"props":221,"children":222},{"style":193},[223],{"type":18,"value":196},{"type":13,"tag":46,"props":225,"children":226},{"style":64},[227],{"type":18,"value":228}," {\n",{"type":13,"tag":46,"props":230,"children":231},{"class":48,"line":95},[232,237,242,247,252,257,262,266],{"type":13,"tag":46,"props":233,"children":234},{"style":53},[235],{"type":18,"value":236}," pub",{"type":13,"tag":46,"props":238,"children":239},{"style":53},[240],{"type":18,"value":241}," const",{"type":13,"tag":46,"props":243,"children":244},{"style":84},[245],{"type":18,"value":246}," CLONE",{"type":13,"tag":46,"props":248,"children":249},{"style":53},[250],{"type":18,"value":251},":",{"type":13,"tag":46,"props":253,"children":254},{"style":84},[255],{"type":18,"value":256}," Self",{"type":13,"tag":46,"props":258,"children":259},{"style":53},[260],{"type":18,"value":261}," =",{"type":13,"tag":46,"props":263,"children":264},{"style":84},[265],{"type":18,"value":87},{"type":13,"tag":46,"props":267,"children":268},{"style":64},[269],{"type":18,"value":270},";\n",{"type":13,"tag":46,"props":272,"children":273},{"class":48,"line":117},[274,278,282,287,291,295,299,303],{"type":13,"tag":46,"props":275,"children":276},{"style":53},[277],{"type":18,"value":236},{"type":13,"tag":46,"props":279,"children":280},{"style":53},[281],{"type":18,"value":241},{"type":13,"tag":46,"props":283,"children":284},{"style":84},[285],{"type":18,"value":286}," COMPACT",{"type":13,"tag":46,"props":288,"children":289},{"style":53},[290],{"type":18,"value":251},{"type":13,"tag":46,"props":292,"children":293},{"style":84},[294],{"type":18,"value":256},{"type":13,"tag":46,"props":296,"children":297},{"style":53},[298],{"type":18,"value":261},{"type":13,"tag":46,"props":300,"children":301},{"style":84},[302],{"type":18,"value":110},{"type":13,"tag":46,"props":304,"children":305},{"style":64},[306],{"type":18,"value":270},{"type":13,"tag":46,"props":308,"children":309},{"class":48,"line":139},[310,314,318,323,327,331,335,339],{"type":13,"tag":46,"props":311,"children":312},{"style":53},[313],{"type":18,"value":236},{"type":13,"tag":46,"props":315,"children":316},{"style":53},[317],{"type":18,"value":241},{"type":13,"tag":46,"props":319,"children":320},{"style":84},[321],{"type":18,"value":322}," SERIALIZE",{"type":13,"tag":46,"props":324,"children":325},{"style":53},[326],{"type":18,"value":251},{"type":13,"tag":46,"props":328,"children":329},{"style":84},[330],{"type":18,"value":256},{"type":13,"tag":46,"props":332,"children":333},{"style":53},[334],{"type":18,"value":261},{"type":13,"tag":46,"props":336,"children":337},{"style":84},[338],{"type":18,"value":132},{"type":13,"tag":46,"props":340,"children":341},{"style":64},[342],{"type":18,"value":270},{"type":13,"tag":46,"props":344,"children":345},{"class":48,"line":161},[346,350,354,359,363,367,371,375],{"type":13,"tag":46,"props":347,"children":348},{"style":53},[349],{"type":18,"value":236},{"type":13,"tag":46,"props":351,"children":352},{"style":53},[353],{"type":18,"value":241},{"type":13,"tag":46,"props":355,"children":356},{"style":84},[357],{"type":18,"value":358}," DESERIALIZE",{"type":13,"tag":46,"props":360,"children":361},{"style":53},[362],{"type":18,"value":251},{"type":13,"tag":46,"props":364,"children":365},{"style":84},[366],{"type":18,"value":256},{"type":13,"tag":46,"props":368,"children":369},{"style":53},[370],{"type":18,"value":261},{"type":13,"tag":46,"props":372,"children":373},{"style":84},[374],{"type":18,"value":154},{"type":13,"tag":46,"props":376,"children":377},{"style":64},[378],{"type":18,"value":270},{"type":13,"tag":46,"props":380,"children":382},{"class":48,"line":381},7,[383],{"type":13,"tag":46,"props":384,"children":385},{"style":64},[386],{"type":18,"value":387},"}\n",{"type":13,"tag":14,"props":389,"children":390},{},[391],{"type":18,"value":392},"or the equivalent",{"type":13,"tag":30,"props":394,"children":395},{},[396,422],{"type":13,"tag":34,"props":397,"children":399},{"className":36,"code":398,"filename":38,"language":39,"meta":40,"style":40},"#define VkCopyAccelerationStructureModeNV VkCopyAccelerationStructureModeKHR\n",[400],{"type":13,"tag":21,"props":401,"children":402},{"__ignoreMap":40},[403],{"type":13,"tag":46,"props":404,"children":405},{"class":48,"line":49},[406,411,417],{"type":13,"tag":46,"props":407,"children":408},{"style":53},[409],{"type":18,"value":410},"#define",{"type":13,"tag":46,"props":412,"children":414},{"style":413},"--shiki-default:#8250DF;--shiki-dark:#D2A8FF",[415],{"type":18,"value":416}," VkCopyAccelerationStructureModeNV",{"type":13,"tag":46,"props":418,"children":419},{"style":64},[420],{"type":18,"value":421}," VkCopyAccelerationStructureModeKHR\n",{"type":13,"tag":34,"props":423,"children":425},{"className":170,"code":424,"filename":172,"language":173,"meta":40,"style":40},"const CopyAccelerationStructureModeNV: _ = vk::CopyAccelerationStructureModeKHR;\n",[426],{"type":13,"tag":21,"props":427,"children":428},{"__ignoreMap":40},[429],{"type":13,"tag":46,"props":430,"children":431},{"class":48,"line":49},[432,437,442,446,451,455,460,465,470],{"type":13,"tag":46,"props":433,"children":434},{"style":53},[435],{"type":18,"value":436},"const",{"type":13,"tag":46,"props":438,"children":439},{"style":84},[440],{"type":18,"value":441}," CopyAccelerationStructureModeNV",{"type":13,"tag":46,"props":443,"children":444},{"style":53},[445],{"type":18,"value":251},{"type":13,"tag":46,"props":447,"children":448},{"style":64},[449],{"type":18,"value":450}," _ ",{"type":13,"tag":46,"props":452,"children":453},{"style":53},[454],{"type":18,"value":81},{"type":13,"tag":46,"props":456,"children":457},{"style":193},[458],{"type":18,"value":459}," vk",{"type":13,"tag":46,"props":461,"children":462},{"style":53},[463],{"type":18,"value":464},"::",{"type":13,"tag":46,"props":466,"children":467},{"style":193},[468],{"type":18,"value":469},"CopyAccelerationStructureModeKHR",{"type":13,"tag":46,"props":471,"children":472},{"style":64},[473],{"type":18,"value":270},{"type":13,"tag":475,"props":476,"children":477},"ul",{},[478,541,613,624],{"type":13,"tag":479,"props":480,"children":481},"li",{},[482,488,490,496,498,504,506,511,513,518,520,525,527,532,534,539],{"type":13,"tag":21,"props":483,"children":485},{"className":484},[],[486],{"type":18,"value":487},"VK_COPY_ACCELERATION_STRUCTURE_MODE_CLONE_KHR",{"type":18,"value":489}," creates a direct\ncopy of the acceleration structure specified in ",{"type":13,"tag":21,"props":491,"children":493},{"className":492},[],[494],{"type":18,"value":495},"src",{"type":18,"value":497}," into the one\nspecified by ",{"type":13,"tag":21,"props":499,"children":501},{"className":500},[],[502],{"type":18,"value":503},"dst",{"type":18,"value":505},".\nThe ",{"type":13,"tag":21,"props":507,"children":509},{"className":508},[],[510],{"type":18,"value":503},{"type":18,"value":512}," acceleration structure ",{"type":13,"tag":514,"props":515,"children":517},"normative",{"type":516},"must",[],{"type":18,"value":519}," have been created with the\nsame parameters as ",{"type":13,"tag":21,"props":521,"children":523},{"className":522},[],[524],{"type":18,"value":495},{"type":18,"value":526},".\nIf ",{"type":13,"tag":21,"props":528,"children":530},{"className":529},[],[531],{"type":18,"value":495},{"type":18,"value":533}," contains references to other acceleration structures,\n",{"type":13,"tag":21,"props":535,"children":537},{"className":536},[],[538],{"type":18,"value":503},{"type":18,"value":540}," will reference the same acceleration structures.",{"type":13,"tag":479,"props":542,"children":543},{},[544,550,552,557,559,564,566,571,573,576,578,585,587,593,595,600,601,606,607,612],{"type":13,"tag":21,"props":545,"children":547},{"className":546},[],[548],{"type":18,"value":549},"VK_COPY_ACCELERATION_STRUCTURE_MODE_COMPACT_KHR",{"type":18,"value":551}," creates a more\ncompact version of an acceleration structure ",{"type":13,"tag":21,"props":553,"children":555},{"className":554},[],[556],{"type":18,"value":495},{"type":18,"value":558}," into ",{"type":13,"tag":21,"props":560,"children":562},{"className":561},[],[563],{"type":18,"value":503},{"type":18,"value":565},".\nThe acceleration structure ",{"type":13,"tag":21,"props":567,"children":569},{"className":568},[],[570],{"type":18,"value":503},{"type":18,"value":572}," ",{"type":13,"tag":514,"props":574,"children":575},{"type":516},[],{"type":18,"value":577}," have been created with a size\nat least as large as that returned by\n",{"type":13,"tag":579,"props":580,"children":582},"a",{"href":581},"/man/vkCmdWriteAccelerationStructuresPropertiesKHR",[583],{"type":18,"value":584},"vkCmdWriteAccelerationStructuresPropertiesKHR",{"type":18,"value":586},"\nor ",{"type":13,"tag":579,"props":588,"children":590},{"href":589},"/man/vkWriteAccelerationStructuresPropertiesKHR",[591],{"type":18,"value":592},"vkWriteAccelerationStructuresPropertiesKHR",{"type":18,"value":594},"\nafter the build of the acceleration structure specified by ",{"type":13,"tag":21,"props":596,"children":598},{"className":597},[],[599],{"type":18,"value":495},{"type":18,"value":526},{"type":13,"tag":21,"props":602,"children":604},{"className":603},[],[605],{"type":18,"value":495},{"type":18,"value":533},{"type":13,"tag":21,"props":608,"children":610},{"className":609},[],[611],{"type":18,"value":503},{"type":18,"value":540},{"type":13,"tag":479,"props":614,"children":615},{},[616,622],{"type":13,"tag":21,"props":617,"children":619},{"className":618},[],[620],{"type":18,"value":621},"VK_COPY_ACCELERATION_STRUCTURE_MODE_SERIALIZE_KHR",{"type":18,"value":623}," serializes the\nacceleration structure to a semi-opaque format which can be reloaded on\na compatible implementation.",{"type":13,"tag":479,"props":625,"children":626},{},[627,633],{"type":13,"tag":21,"props":628,"children":630},{"className":629},[],[631],{"type":18,"value":632},"VK_COPY_ACCELERATION_STRUCTURE_MODE_DESERIALIZE_KHR",{"type":18,"value":634}," deserializes\nthe semi-opaque serialization format in the buffer to the acceleration\nstructure.",{"type":13,"tag":636,"props":637,"children":638},"style",{},[639],{"type":18,"value":640},"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":40,"searchDepth":70,"depth":70,"links":642},[],"markdown",1725732543919]