[{"data":1,"prerenderedAt":690},["ShallowReactive",2],{"kb4X4Ao7Zh":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":689,"_id":4},"VkGeometryInstanceFlagBitsKHR","Instance flag bits","VK_KHR_acceleration_structure","enums",[],{"type":10,"children":11,"toc":687},"root",[12,29,473,478,558,658,681],{"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},"flags",{"type":18,"value":28}," in the instance modifying the behavior of\nthat instance are:",{"type":13,"tag":30,"props":31,"children":32},"code-group",{},[33,203],{"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 VkGeometryInstanceFlagBitsKHR {\n VK_GEOMETRY_INSTANCE_TRIANGLE_FACING_CULL_DISABLE_BIT_KHR = 0x00000001,\n VK_GEOMETRY_INSTANCE_TRIANGLE_FLIP_FACING_BIT_KHR = 0x00000002,\n VK_GEOMETRY_INSTANCE_FORCE_OPAQUE_BIT_KHR = 0x00000004,\n VK_GEOMETRY_INSTANCE_FORCE_NO_OPAQUE_BIT_KHR = 0x00000008,\n VK_GEOMETRY_INSTANCE_TRIANGLE_FRONT_COUNTERCLOCKWISE_BIT_KHR = VK_GEOMETRY_INSTANCE_TRIANGLE_FLIP_FACING_BIT_KHR,\n} VkGeometryInstanceFlagBitsKHR;\n","C","c","",[42],{"type":13,"tag":21,"props":43,"children":44},{"__ignoreMap":40},[45,68,98,124,150,176,194],{"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}," VkGeometryInstanceFlagBitsKHR {\n",{"type":13,"tag":46,"props":69,"children":71},{"class":48,"line":70},2,[72,77,82,87,93],{"type":13,"tag":46,"props":73,"children":74},{"style":64},[75],{"type":18,"value":76}," VK_GEOMETRY_INSTANCE_TRIANGLE_FACING_CULL_DISABLE_BIT_KHR ",{"type":13,"tag":46,"props":78,"children":79},{"style":53},[80],{"type":18,"value":81},"=",{"type":13,"tag":46,"props":83,"children":84},{"style":53},[85],{"type":18,"value":86}," 0x",{"type":13,"tag":46,"props":88,"children":90},{"style":89},"--shiki-default:#0550AE;--shiki-dark:#79C0FF",[91],{"type":18,"value":92},"00000001",{"type":13,"tag":46,"props":94,"children":95},{"style":64},[96],{"type":18,"value":97},",\n",{"type":13,"tag":46,"props":99,"children":101},{"class":48,"line":100},3,[102,107,111,115,120],{"type":13,"tag":46,"props":103,"children":104},{"style":64},[105],{"type":18,"value":106}," VK_GEOMETRY_INSTANCE_TRIANGLE_FLIP_FACING_BIT_KHR ",{"type":13,"tag":46,"props":108,"children":109},{"style":53},[110],{"type":18,"value":81},{"type":13,"tag":46,"props":112,"children":113},{"style":53},[114],{"type":18,"value":86},{"type":13,"tag":46,"props":116,"children":117},{"style":89},[118],{"type":18,"value":119},"00000002",{"type":13,"tag":46,"props":121,"children":122},{"style":64},[123],{"type":18,"value":97},{"type":13,"tag":46,"props":125,"children":127},{"class":48,"line":126},4,[128,133,137,141,146],{"type":13,"tag":46,"props":129,"children":130},{"style":64},[131],{"type":18,"value":132}," VK_GEOMETRY_INSTANCE_FORCE_OPAQUE_BIT_KHR ",{"type":13,"tag":46,"props":134,"children":135},{"style":53},[136],{"type":18,"value":81},{"type":13,"tag":46,"props":138,"children":139},{"style":53},[140],{"type":18,"value":86},{"type":13,"tag":46,"props":142,"children":143},{"style":89},[144],{"type":18,"value":145},"00000004",{"type":13,"tag":46,"props":147,"children":148},{"style":64},[149],{"type":18,"value":97},{"type":13,"tag":46,"props":151,"children":153},{"class":48,"line":152},5,[154,159,163,167,172],{"type":13,"tag":46,"props":155,"children":156},{"style":64},[157],{"type":18,"value":158}," VK_GEOMETRY_INSTANCE_FORCE_NO_OPAQUE_BIT_KHR ",{"type":13,"tag":46,"props":160,"children":161},{"style":53},[162],{"type":18,"value":81},{"type":13,"tag":46,"props":164,"children":165},{"style":53},[166],{"type":18,"value":86},{"type":13,"tag":46,"props":168,"children":169},{"style":89},[170],{"type":18,"value":171},"00000008",{"type":13,"tag":46,"props":173,"children":174},{"style":64},[175],{"type":18,"value":97},{"type":13,"tag":46,"props":177,"children":179},{"class":48,"line":178},6,[180,185,189],{"type":13,"tag":46,"props":181,"children":182},{"style":64},[183],{"type":18,"value":184}," VK_GEOMETRY_INSTANCE_TRIANGLE_FRONT_COUNTERCLOCKWISE_BIT_KHR ",{"type":13,"tag":46,"props":186,"children":187},{"style":53},[188],{"type":18,"value":81},{"type":13,"tag":46,"props":190,"children":191},{"style":64},[192],{"type":18,"value":193}," VK_GEOMETRY_INSTANCE_TRIANGLE_FLIP_FACING_BIT_KHR,\n",{"type":13,"tag":46,"props":195,"children":197},{"class":48,"line":196},7,[198],{"type":13,"tag":46,"props":199,"children":200},{"style":64},[201],{"type":18,"value":202},"} VkGeometryInstanceFlagBitsKHR;\n",{"type":13,"tag":34,"props":204,"children":209},{"className":205,"code":206,"filename":207,"language":208,"meta":40,"style":40},"language-rs shiki shiki-themes github-light-default github-dark-default","pub struct GeometryInstanceFlagBitsKHR(u32);\nimpl GeometryInstanceFlagBitsKHR {\n pub const TRIANGLE_FACING_CULL_DISABLE: Self = 0x00000001;\n pub const TRIANGLE_FLIP_FACING: Self = 0x00000002;\n pub const FORCE_OPAQUE: Self = 0x00000004;\n pub const FORCE_NO_OPAQUE: Self = 0x00000008;\n pub const TRIANGLE_FRONT_COUNTERCLOCKWISE: Self = Self::TRIANGLE_FLIP_FACING;\n}\n","Rust","rs",[210],{"type":13,"tag":21,"props":211,"children":212},{"__ignoreMap":40},[213,247,264,307,344,381,418,464],{"type":13,"tag":46,"props":214,"children":215},{"class":48,"line":49},[216,221,226,232,237,242],{"type":13,"tag":46,"props":217,"children":218},{"style":53},[219],{"type":18,"value":220},"pub",{"type":13,"tag":46,"props":222,"children":223},{"style":53},[224],{"type":18,"value":225}," struct",{"type":13,"tag":46,"props":227,"children":229},{"style":228},"--shiki-default:#953800;--shiki-dark:#FFA657",[230],{"type":18,"value":231}," GeometryInstanceFlagBitsKHR",{"type":13,"tag":46,"props":233,"children":234},{"style":64},[235],{"type":18,"value":236},"(",{"type":13,"tag":46,"props":238,"children":239},{"style":228},[240],{"type":18,"value":241},"u32",{"type":13,"tag":46,"props":243,"children":244},{"style":64},[245],{"type":18,"value":246},");\n",{"type":13,"tag":46,"props":248,"children":249},{"class":48,"line":70},[250,255,259],{"type":13,"tag":46,"props":251,"children":252},{"style":53},[253],{"type":18,"value":254},"impl",{"type":13,"tag":46,"props":256,"children":257},{"style":228},[258],{"type":18,"value":231},{"type":13,"tag":46,"props":260,"children":261},{"style":64},[262],{"type":18,"value":263}," {\n",{"type":13,"tag":46,"props":265,"children":266},{"class":48,"line":100},[267,272,277,282,287,292,297,302],{"type":13,"tag":46,"props":268,"children":269},{"style":53},[270],{"type":18,"value":271}," pub",{"type":13,"tag":46,"props":273,"children":274},{"style":53},[275],{"type":18,"value":276}," const",{"type":13,"tag":46,"props":278,"children":279},{"style":89},[280],{"type":18,"value":281}," TRIANGLE_FACING_CULL_DISABLE",{"type":13,"tag":46,"props":283,"children":284},{"style":53},[285],{"type":18,"value":286},":",{"type":13,"tag":46,"props":288,"children":289},{"style":89},[290],{"type":18,"value":291}," Self",{"type":13,"tag":46,"props":293,"children":294},{"style":53},[295],{"type":18,"value":296}," =",{"type":13,"tag":46,"props":298,"children":299},{"style":89},[300],{"type":18,"value":301}," 0x00000001",{"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":126},[310,314,318,323,327,331,335,340],{"type":13,"tag":46,"props":311,"children":312},{"style":53},[313],{"type":18,"value":271},{"type":13,"tag":46,"props":315,"children":316},{"style":53},[317],{"type":18,"value":276},{"type":13,"tag":46,"props":319,"children":320},{"style":89},[321],{"type":18,"value":322}," TRIANGLE_FLIP_FACING",{"type":13,"tag":46,"props":324,"children":325},{"style":53},[326],{"type":18,"value":286},{"type":13,"tag":46,"props":328,"children":329},{"style":89},[330],{"type":18,"value":291},{"type":13,"tag":46,"props":332,"children":333},{"style":53},[334],{"type":18,"value":296},{"type":13,"tag":46,"props":336,"children":337},{"style":89},[338],{"type":18,"value":339}," 0x00000002",{"type":13,"tag":46,"props":341,"children":342},{"style":64},[343],{"type":18,"value":306},{"type":13,"tag":46,"props":345,"children":346},{"class":48,"line":152},[347,351,355,360,364,368,372,377],{"type":13,"tag":46,"props":348,"children":349},{"style":53},[350],{"type":18,"value":271},{"type":13,"tag":46,"props":352,"children":353},{"style":53},[354],{"type":18,"value":276},{"type":13,"tag":46,"props":356,"children":357},{"style":89},[358],{"type":18,"value":359}," FORCE_OPAQUE",{"type":13,"tag":46,"props":361,"children":362},{"style":53},[363],{"type":18,"value":286},{"type":13,"tag":46,"props":365,"children":366},{"style":89},[367],{"type":18,"value":291},{"type":13,"tag":46,"props":369,"children":370},{"style":53},[371],{"type":18,"value":296},{"type":13,"tag":46,"props":373,"children":374},{"style":89},[375],{"type":18,"value":376}," 0x00000004",{"type":13,"tag":46,"props":378,"children":379},{"style":64},[380],{"type":18,"value":306},{"type":13,"tag":46,"props":382,"children":383},{"class":48,"line":178},[384,388,392,397,401,405,409,414],{"type":13,"tag":46,"props":385,"children":386},{"style":53},[387],{"type":18,"value":271},{"type":13,"tag":46,"props":389,"children":390},{"style":53},[391],{"type":18,"value":276},{"type":13,"tag":46,"props":393,"children":394},{"style":89},[395],{"type":18,"value":396}," FORCE_NO_OPAQUE",{"type":13,"tag":46,"props":398,"children":399},{"style":53},[400],{"type":18,"value":286},{"type":13,"tag":46,"props":402,"children":403},{"style":89},[404],{"type":18,"value":291},{"type":13,"tag":46,"props":406,"children":407},{"style":53},[408],{"type":18,"value":296},{"type":13,"tag":46,"props":410,"children":411},{"style":89},[412],{"type":18,"value":413}," 0x00000008",{"type":13,"tag":46,"props":415,"children":416},{"style":64},[417],{"type":18,"value":306},{"type":13,"tag":46,"props":419,"children":420},{"class":48,"line":196},[421,425,429,434,438,442,446,450,455,460],{"type":13,"tag":46,"props":422,"children":423},{"style":53},[424],{"type":18,"value":271},{"type":13,"tag":46,"props":426,"children":427},{"style":53},[428],{"type":18,"value":276},{"type":13,"tag":46,"props":430,"children":431},{"style":89},[432],{"type":18,"value":433}," TRIANGLE_FRONT_COUNTERCLOCKWISE",{"type":13,"tag":46,"props":435,"children":436},{"style":53},[437],{"type":18,"value":286},{"type":13,"tag":46,"props":439,"children":440},{"style":89},[441],{"type":18,"value":291},{"type":13,"tag":46,"props":443,"children":444},{"style":53},[445],{"type":18,"value":296},{"type":13,"tag":46,"props":447,"children":448},{"style":89},[449],{"type":18,"value":291},{"type":13,"tag":46,"props":451,"children":452},{"style":53},[453],{"type":18,"value":454},"::",{"type":13,"tag":46,"props":456,"children":457},{"style":89},[458],{"type":18,"value":459},"TRIANGLE_FLIP_FACING",{"type":13,"tag":46,"props":461,"children":462},{"style":64},[463],{"type":18,"value":306},{"type":13,"tag":46,"props":465,"children":467},{"class":48,"line":466},8,[468],{"type":13,"tag":46,"props":469,"children":470},{"style":64},[471],{"type":18,"value":472},"}\n",{"type":13,"tag":14,"props":474,"children":475},{},[476],{"type":18,"value":477},"or the equivalent",{"type":13,"tag":30,"props":479,"children":480},{},[481,507],{"type":13,"tag":34,"props":482,"children":484},{"className":36,"code":483,"filename":38,"language":39,"meta":40,"style":40},"#define VkGeometryInstanceFlagBitsNV VkGeometryInstanceFlagBitsKHR\n",[485],{"type":13,"tag":21,"props":486,"children":487},{"__ignoreMap":40},[488],{"type":13,"tag":46,"props":489,"children":490},{"class":48,"line":49},[491,496,502],{"type":13,"tag":46,"props":492,"children":493},{"style":53},[494],{"type":18,"value":495},"#define",{"type":13,"tag":46,"props":497,"children":499},{"style":498},"--shiki-default:#8250DF;--shiki-dark:#D2A8FF",[500],{"type":18,"value":501}," VkGeometryInstanceFlagBitsNV",{"type":13,"tag":46,"props":503,"children":504},{"style":64},[505],{"type":18,"value":506}," VkGeometryInstanceFlagBitsKHR\n",{"type":13,"tag":34,"props":508,"children":510},{"className":205,"code":509,"filename":207,"language":208,"meta":40,"style":40},"const GeometryInstanceFlagBitsNV: _ = vk::GeometryInstanceFlagBitsKHR;\n",[511],{"type":13,"tag":21,"props":512,"children":513},{"__ignoreMap":40},[514],{"type":13,"tag":46,"props":515,"children":516},{"class":48,"line":49},[517,522,527,531,536,540,545,549,554],{"type":13,"tag":46,"props":518,"children":519},{"style":53},[520],{"type":18,"value":521},"const",{"type":13,"tag":46,"props":523,"children":524},{"style":89},[525],{"type":18,"value":526}," GeometryInstanceFlagBitsNV",{"type":13,"tag":46,"props":528,"children":529},{"style":53},[530],{"type":18,"value":286},{"type":13,"tag":46,"props":532,"children":533},{"style":64},[534],{"type":18,"value":535}," _ ",{"type":13,"tag":46,"props":537,"children":538},{"style":53},[539],{"type":18,"value":81},{"type":13,"tag":46,"props":541,"children":542},{"style":228},[543],{"type":18,"value":544}," vk",{"type":13,"tag":46,"props":546,"children":547},{"style":53},[548],{"type":18,"value":454},{"type":13,"tag":46,"props":550,"children":551},{"style":228},[552],{"type":18,"value":553},"GeometryInstanceFlagBitsKHR",{"type":13,"tag":46,"props":555,"children":556},{"style":64},[557],{"type":18,"value":306},{"type":13,"tag":559,"props":560,"children":561},"ul",{},[562,574,594,628],{"type":13,"tag":563,"props":564,"children":565},"li",{},[566,572],{"type":13,"tag":21,"props":567,"children":569},{"className":568},[],[570],{"type":18,"value":571},"VK_GEOMETRY_INSTANCE_TRIANGLE_FACING_CULL_DISABLE_BIT_KHR",{"type":18,"value":573}," disables\nface culling for this instance.",{"type":13,"tag":563,"props":575,"children":576},{},[577,583,585,592],{"type":13,"tag":21,"props":578,"children":580},{"className":579},[],[581],{"type":18,"value":582},"VK_GEOMETRY_INSTANCE_TRIANGLE_FLIP_FACING_BIT_KHR",{"type":18,"value":584}," indicates that\nthe ",{"type":13,"tag":586,"props":587,"children":589},"a",{"href":588},"/chapters/ray-traversal#ray-traversal-culling-face",[590],{"type":18,"value":591},"facing determination",{"type":18,"value":593}," for geometry in\nthis instance is inverted.\nBecause the facing is determined in object space, an instance transform\ndoes not change the winding, but a geometry transform does.",{"type":13,"tag":563,"props":595,"children":596},{},[597,603,605,611,613,618,620,626],{"type":13,"tag":21,"props":598,"children":600},{"className":599},[],[601],{"type":18,"value":602},"VK_GEOMETRY_INSTANCE_FORCE_OPAQUE_BIT_KHR",{"type":18,"value":604}," causes this instance to\nact as though ",{"type":13,"tag":21,"props":606,"children":608},{"className":607},[],[609],{"type":18,"value":610},"VK_GEOMETRY_OPAQUE_BIT_KHR",{"type":18,"value":612}," were specified on all\ngeometries referenced by this instance.\nThis behavior ",{"type":13,"tag":614,"props":615,"children":617},"normative",{"type":616},"can",[],{"type":18,"value":619}," be overridden by the SPIR-V ",{"type":13,"tag":21,"props":621,"children":623},{"className":622},[],[624],{"type":18,"value":625},"NoOpaqueKHR",{"type":18,"value":627}," ray\nflag.",{"type":13,"tag":563,"props":629,"children":630},{},[631,637,639,644,646,649,650,656],{"type":13,"tag":21,"props":632,"children":634},{"className":633},[],[635],{"type":18,"value":636},"VK_GEOMETRY_INSTANCE_FORCE_NO_OPAQUE_BIT_KHR",{"type":18,"value":638}," causes this instance\nto act as though ",{"type":13,"tag":21,"props":640,"children":642},{"className":641},[],[643],{"type":18,"value":610},{"type":18,"value":645}," were not specified on\nall geometries referenced by this instance.\nThis behavior ",{"type":13,"tag":614,"props":647,"children":648},{"type":616},[],{"type":18,"value":619},{"type":13,"tag":21,"props":651,"children":653},{"className":652},[],[654],{"type":18,"value":655},"OpaqueKHR",{"type":18,"value":657}," ray flag.",{"type":13,"tag":14,"props":659,"children":660},{},[661,666,668,673,675,679],{"type":13,"tag":21,"props":662,"children":664},{"className":663},[],[665],{"type":18,"value":636},{"type":18,"value":667}," and\n",{"type":13,"tag":21,"props":669,"children":671},{"className":670},[],[672],{"type":18,"value":602},{"type":18,"value":674}," ",{"type":13,"tag":614,"props":676,"children":678},{"type":677},"must",[],{"type":18,"value":680}," not be used in the\nsame flag.",{"type":13,"tag":682,"props":683,"children":684},"style",{},[685],{"type":18,"value":686},"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":688},[],"markdown",1725732555115]