[{"data":1,"prerenderedAt":731},["ShallowReactive",2],{"SoOuzpfkJi":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":730,"_id":4},"VkValidationFeaturesEXT","Specify validation features to enable or disable for a Vulkan instance","VK_EXT_validation_features","structs",[],{"type":10,"children":11,"toc":728},"root",[12,45,422,523,605,722],{"type":13,"tag":14,"props":15,"children":16},"element","p",{},[17,20,26,28,35,37,43],{"type":18,"value":19},"text","When creating a Vulkan instance for which you wish to enable or disable\nspecific validation features, add a ",{"type":13,"tag":21,"props":22,"children":24},"a",{"href":23},"/man/VkValidationFeaturesEXT",[25],{"type":18,"value":4},{"type":18,"value":27}," structure\nto the ",{"type":13,"tag":29,"props":30,"children":32},"code",{"className":31},[],[33],{"type":18,"value":34},"pNext",{"type":18,"value":36}," chain of the ",{"type":13,"tag":21,"props":38,"children":40},{"href":39},"/man/VkInstanceCreateInfo",[41],{"type":18,"value":42},"VkInstanceCreateInfo",{"type":18,"value":44}," structure,\nspecifying the features to be enabled or disabled.",{"type":13,"tag":46,"props":47,"children":48},"code-group",{},[49,193],{"type":13,"tag":50,"props":51,"children":57},"pre",{"className":52,"code":53,"filename":54,"language":55,"meta":56,"style":56},"language-c shiki shiki-themes github-light-default github-dark-default","typedef struct VkValidationFeaturesEXT {\n VkStructureType sType;\n const void* pNext;\n uint32_t enabledValidationFeatureCount;\n const VkValidationFeatureEnableEXT* pEnabledValidationFeatures;\n uint32_t disabledValidationFeatureCount;\n const VkValidationFeatureDisableEXT* pDisabledValidationFeatures;\n} VkValidationFeaturesEXT;\n","C","c","",[58],{"type":13,"tag":29,"props":59,"children":60},{"__ignoreMap":56},[61,84,93,112,126,149,162,184],{"type":13,"tag":62,"props":63,"children":66},"span",{"class":64,"line":65},"line",1,[67,73,78],{"type":13,"tag":62,"props":68,"children":70},{"style":69},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[71],{"type":18,"value":72},"typedef",{"type":13,"tag":62,"props":74,"children":75},{"style":69},[76],{"type":18,"value":77}," struct",{"type":13,"tag":62,"props":79,"children":81},{"style":80},"--shiki-default:#1F2328;--shiki-dark:#E6EDF3",[82],{"type":18,"value":83}," VkValidationFeaturesEXT {\n",{"type":13,"tag":62,"props":85,"children":87},{"class":64,"line":86},2,[88],{"type":13,"tag":62,"props":89,"children":90},{"style":80},[91],{"type":18,"value":92}," VkStructureType sType;\n",{"type":13,"tag":62,"props":94,"children":96},{"class":64,"line":95},3,[97,102,107],{"type":13,"tag":62,"props":98,"children":99},{"style":69},[100],{"type":18,"value":101}," const",{"type":13,"tag":62,"props":103,"children":104},{"style":69},[105],{"type":18,"value":106}," void*",{"type":13,"tag":62,"props":108,"children":109},{"style":80},[110],{"type":18,"value":111}," pNext;\n",{"type":13,"tag":62,"props":113,"children":115},{"class":64,"line":114},4,[116,121],{"type":13,"tag":62,"props":117,"children":118},{"style":69},[119],{"type":18,"value":120}," uint32_t",{"type":13,"tag":62,"props":122,"children":123},{"style":80},[124],{"type":18,"value":125}," enabledValidationFeatureCount;\n",{"type":13,"tag":62,"props":127,"children":129},{"class":64,"line":128},5,[130,134,139,144],{"type":13,"tag":62,"props":131,"children":132},{"style":69},[133],{"type":18,"value":101},{"type":13,"tag":62,"props":135,"children":136},{"style":80},[137],{"type":18,"value":138}," VkValidationFeatureEnableEXT",{"type":13,"tag":62,"props":140,"children":141},{"style":69},[142],{"type":18,"value":143},"*",{"type":13,"tag":62,"props":145,"children":146},{"style":80},[147],{"type":18,"value":148}," pEnabledValidationFeatures;\n",{"type":13,"tag":62,"props":150,"children":152},{"class":64,"line":151},6,[153,157],{"type":13,"tag":62,"props":154,"children":155},{"style":69},[156],{"type":18,"value":120},{"type":13,"tag":62,"props":158,"children":159},{"style":80},[160],{"type":18,"value":161}," disabledValidationFeatureCount;\n",{"type":13,"tag":62,"props":163,"children":165},{"class":64,"line":164},7,[166,170,175,179],{"type":13,"tag":62,"props":167,"children":168},{"style":69},[169],{"type":18,"value":101},{"type":13,"tag":62,"props":171,"children":172},{"style":80},[173],{"type":18,"value":174}," VkValidationFeatureDisableEXT",{"type":13,"tag":62,"props":176,"children":177},{"style":69},[178],{"type":18,"value":143},{"type":13,"tag":62,"props":180,"children":181},{"style":80},[182],{"type":18,"value":183}," pDisabledValidationFeatures;\n",{"type":13,"tag":62,"props":185,"children":187},{"class":64,"line":186},8,[188],{"type":13,"tag":62,"props":189,"children":190},{"style":80},[191],{"type":18,"value":192},"} VkValidationFeaturesEXT;\n",{"type":13,"tag":50,"props":194,"children":199},{"className":195,"code":196,"filename":197,"language":198,"meta":56,"style":56},"language-rs shiki shiki-themes github-light-default github-dark-default","pub struct ValidationFeaturesEXT {\n s_type: vk::StructureType, // Must be VK_STRUCTURE_TYPE_VALIDATION_FEATURES_EXT\n p_next: *const c_void,\n enabled_validation_feature_count: u32, // Number of validation features to enable\n p_enabled_validation_features: *const vk::ValidationFeatureEnableEXT, // Validation features to enable\n disabled_validation_feature_count: u32, // Number of validation features to disable\n p_disabled_validation_features: *const vk::ValidationFeatureDisableEXT, // Validation features to disable\n}\n","Rust","rs",[200],{"type":13,"tag":29,"props":201,"children":202},{"__ignoreMap":56},[203,226,265,287,313,351,376,414],{"type":13,"tag":62,"props":204,"children":205},{"class":64,"line":65},[206,211,215,221],{"type":13,"tag":62,"props":207,"children":208},{"style":69},[209],{"type":18,"value":210},"pub",{"type":13,"tag":62,"props":212,"children":213},{"style":69},[214],{"type":18,"value":77},{"type":13,"tag":62,"props":216,"children":218},{"style":217},"--shiki-default:#953800;--shiki-dark:#FFA657",[219],{"type":18,"value":220}," ValidationFeaturesEXT",{"type":13,"tag":62,"props":222,"children":223},{"style":80},[224],{"type":18,"value":225}," {\n",{"type":13,"tag":62,"props":227,"children":228},{"class":64,"line":86},[229,234,239,244,249,254,259],{"type":13,"tag":62,"props":230,"children":231},{"style":80},[232],{"type":18,"value":233}," s_type",{"type":13,"tag":62,"props":235,"children":236},{"style":69},[237],{"type":18,"value":238},":",{"type":13,"tag":62,"props":240,"children":241},{"style":217},[242],{"type":18,"value":243}," vk",{"type":13,"tag":62,"props":245,"children":246},{"style":69},[247],{"type":18,"value":248},"::",{"type":13,"tag":62,"props":250,"children":251},{"style":217},[252],{"type":18,"value":253},"StructureType",{"type":13,"tag":62,"props":255,"children":256},{"style":80},[257],{"type":18,"value":258},", ",{"type":13,"tag":62,"props":260,"children":262},{"style":261},"--shiki-default:#6E7781;--shiki-dark:#8B949E",[263],{"type":18,"value":264},"// Must be VK_STRUCTURE_TYPE_VALIDATION_FEATURES_EXT\n",{"type":13,"tag":62,"props":266,"children":267},{"class":64,"line":95},[268,273,277,282],{"type":13,"tag":62,"props":269,"children":270},{"style":80},[271],{"type":18,"value":272}," p_next",{"type":13,"tag":62,"props":274,"children":275},{"style":69},[276],{"type":18,"value":238},{"type":13,"tag":62,"props":278,"children":279},{"style":69},[280],{"type":18,"value":281}," *const",{"type":13,"tag":62,"props":283,"children":284},{"style":80},[285],{"type":18,"value":286}," c_void,\n",{"type":13,"tag":62,"props":288,"children":289},{"class":64,"line":114},[290,295,299,304,308],{"type":13,"tag":62,"props":291,"children":292},{"style":80},[293],{"type":18,"value":294}," enabled_validation_feature_count",{"type":13,"tag":62,"props":296,"children":297},{"style":69},[298],{"type":18,"value":238},{"type":13,"tag":62,"props":300,"children":301},{"style":217},[302],{"type":18,"value":303}," u32",{"type":13,"tag":62,"props":305,"children":306},{"style":80},[307],{"type":18,"value":258},{"type":13,"tag":62,"props":309,"children":310},{"style":261},[311],{"type":18,"value":312},"// Number of validation features to enable\n",{"type":13,"tag":62,"props":314,"children":315},{"class":64,"line":128},[316,321,325,329,333,337,342,346],{"type":13,"tag":62,"props":317,"children":318},{"style":80},[319],{"type":18,"value":320}," p_enabled_validation_features",{"type":13,"tag":62,"props":322,"children":323},{"style":69},[324],{"type":18,"value":238},{"type":13,"tag":62,"props":326,"children":327},{"style":69},[328],{"type":18,"value":281},{"type":13,"tag":62,"props":330,"children":331},{"style":217},[332],{"type":18,"value":243},{"type":13,"tag":62,"props":334,"children":335},{"style":69},[336],{"type":18,"value":248},{"type":13,"tag":62,"props":338,"children":339},{"style":217},[340],{"type":18,"value":341},"ValidationFeatureEnableEXT",{"type":13,"tag":62,"props":343,"children":344},{"style":80},[345],{"type":18,"value":258},{"type":13,"tag":62,"props":347,"children":348},{"style":261},[349],{"type":18,"value":350},"// Validation features to enable\n",{"type":13,"tag":62,"props":352,"children":353},{"class":64,"line":151},[354,359,363,367,371],{"type":13,"tag":62,"props":355,"children":356},{"style":80},[357],{"type":18,"value":358}," disabled_validation_feature_count",{"type":13,"tag":62,"props":360,"children":361},{"style":69},[362],{"type":18,"value":238},{"type":13,"tag":62,"props":364,"children":365},{"style":217},[366],{"type":18,"value":303},{"type":13,"tag":62,"props":368,"children":369},{"style":80},[370],{"type":18,"value":258},{"type":13,"tag":62,"props":372,"children":373},{"style":261},[374],{"type":18,"value":375},"// Number of validation features to disable\n",{"type":13,"tag":62,"props":377,"children":378},{"class":64,"line":164},[379,384,388,392,396,400,405,409],{"type":13,"tag":62,"props":380,"children":381},{"style":80},[382],{"type":18,"value":383}," p_disabled_validation_features",{"type":13,"tag":62,"props":385,"children":386},{"style":69},[387],{"type":18,"value":238},{"type":13,"tag":62,"props":389,"children":390},{"style":69},[391],{"type":18,"value":281},{"type":13,"tag":62,"props":393,"children":394},{"style":217},[395],{"type":18,"value":243},{"type":13,"tag":62,"props":397,"children":398},{"style":69},[399],{"type":18,"value":248},{"type":13,"tag":62,"props":401,"children":402},{"style":217},[403],{"type":18,"value":404},"ValidationFeatureDisableEXT",{"type":13,"tag":62,"props":406,"children":407},{"style":80},[408],{"type":18,"value":258},{"type":13,"tag":62,"props":410,"children":411},{"style":261},[412],{"type":18,"value":413},"// Validation features to disable\n",{"type":13,"tag":62,"props":415,"children":416},{"class":64,"line":186},[417],{"type":13,"tag":62,"props":418,"children":419},{"style":80},[420],{"type":18,"value":421},"}\n",{"type":13,"tag":423,"props":424,"children":425},"ul",{},[426,446,464,475,494,505],{"type":13,"tag":427,"props":428,"children":429},"li",{},[430,436,438,444],{"type":13,"tag":29,"props":431,"children":433},{"className":432},[],[434],{"type":18,"value":435},"sType",{"type":18,"value":437}," is a ",{"type":13,"tag":21,"props":439,"children":441},{"href":440},"/man/VkStructureType",[442],{"type":18,"value":443},"VkStructureType",{"type":18,"value":445}," value identifying this structure.",{"type":13,"tag":427,"props":447,"children":448},{},[449,454,456,462],{"type":13,"tag":29,"props":450,"children":452},{"className":451},[],[453],{"type":18,"value":34},{"type":18,"value":455}," is ",{"type":13,"tag":29,"props":457,"children":459},{"className":458},[],[460],{"type":18,"value":461},"NULL",{"type":18,"value":463}," or a pointer to a structure extending this\nstructure.",{"type":13,"tag":427,"props":465,"children":466},{},[467,473],{"type":13,"tag":29,"props":468,"children":470},{"className":469},[],[471],{"type":18,"value":472},"enabledValidationFeatureCount",{"type":18,"value":474}," is the number of features to enable.",{"type":13,"tag":427,"props":476,"children":477},{},[478,484,486,492],{"type":13,"tag":29,"props":479,"children":481},{"className":480},[],[482],{"type":18,"value":483},"pEnabledValidationFeatures",{"type":18,"value":485}," is a pointer to an array of\n",{"type":13,"tag":21,"props":487,"children":489},{"href":488},"/man/VkValidationFeatureEnableEXT",[490],{"type":18,"value":491},"VkValidationFeatureEnableEXT",{"type":18,"value":493}," values specifying the validation\nfeatures to be enabled.",{"type":13,"tag":427,"props":495,"children":496},{},[497,503],{"type":13,"tag":29,"props":498,"children":500},{"className":499},[],[501],{"type":18,"value":502},"disabledValidationFeatureCount",{"type":18,"value":504}," is the number of features to\ndisable.",{"type":13,"tag":427,"props":506,"children":507},{},[508,514,515,521],{"type":13,"tag":29,"props":509,"children":511},{"className":510},[],[512],{"type":18,"value":513},"pDisabledValidationFeatures",{"type":18,"value":485},{"type":13,"tag":21,"props":516,"children":518},{"href":517},"/man/VkValidationFeatureDisableEXT",[519],{"type":18,"value":520},"VkValidationFeatureDisableEXT",{"type":18,"value":522}," values specifying the validation\nfeatures to be disabled.",{"type":13,"tag":524,"props":525,"children":527},"validity-group",{"name":526},"Valid Usage",[528,574],{"type":13,"tag":529,"props":530,"children":532},"validity-field",{"name":531},"VUID-VkValidationFeaturesEXT-pEnabledValidationFeatures-02967",[533],{"type":13,"tag":14,"props":534,"children":535},{},[536,538,543,545,551,553,558,560,566,568],{"type":18,"value":537},"If the ",{"type":13,"tag":29,"props":539,"children":541},{"className":540},[],[542],{"type":18,"value":483},{"type":18,"value":544}," array contains\n",{"type":13,"tag":29,"props":546,"children":548},{"className":547},[],[549],{"type":18,"value":550},"VK_VALIDATION_FEATURE_ENABLE_GPU_ASSISTED_RESERVE_BINDING_SLOT_EXT",{"type":18,"value":552},",\nthen it ",{"type":13,"tag":554,"props":555,"children":557},"normative",{"type":556},"must",[],{"type":18,"value":559}," also contain\n",{"type":13,"tag":29,"props":561,"children":563},{"className":562},[],[564],{"type":18,"value":565},"VK_VALIDATION_FEATURE_ENABLE_GPU_ASSISTED_EXT",{"type":18,"value":567}," or\n",{"type":13,"tag":29,"props":569,"children":571},{"className":570},[],[572],{"type":18,"value":573},"VK_VALIDATION_FEATURE_ENABLE_DEBUG_PRINTF_EXT",{"type":13,"tag":529,"props":575,"children":577},{"name":576},"VUID-VkValidationFeaturesEXT-pEnabledValidationFeatures-02968",[578],{"type":13,"tag":14,"props":579,"children":580},{},[581,582,587,588,593,595,598,600],{"type":18,"value":537},{"type":13,"tag":29,"props":583,"children":585},{"className":584},[],[586],{"type":18,"value":483},{"type":18,"value":544},{"type":13,"tag":29,"props":589,"children":591},{"className":590},[],[592],{"type":18,"value":573},{"type":18,"value":594},", then it ",{"type":13,"tag":554,"props":596,"children":597},{"type":556},[],{"type":18,"value":599}," not\ncontain ",{"type":13,"tag":29,"props":601,"children":603},{"className":602},[],[604],{"type":18,"value":565},{"type":13,"tag":524,"props":606,"children":608},{"name":607},"Valid Usage (Implicit)",[609,634,681],{"type":13,"tag":529,"props":610,"children":612},{"name":611},"VUID-VkValidationFeaturesEXT-sType-sType",[613],{"type":13,"tag":14,"props":614,"children":615},{},[616,621,623,626,628],{"type":13,"tag":29,"props":617,"children":619},{"className":618},[],[620],{"type":18,"value":435},{"type":18,"value":622}," ",{"type":13,"tag":554,"props":624,"children":625},{"type":556},[],{"type":18,"value":627}," be ",{"type":13,"tag":29,"props":629,"children":631},{"className":630},[],[632],{"type":18,"value":633},"VK_STRUCTURE_TYPE_VALIDATION_FEATURES_EXT",{"type":13,"tag":529,"props":635,"children":637},{"name":636},"VUID-VkValidationFeaturesEXT-pEnabledValidationFeatures-parameter",[638],{"type":13,"tag":14,"props":639,"children":640},{},[641,643,648,650,656,657,662,663,666,668,673,675,679],{"type":18,"value":642},"If ",{"type":13,"tag":29,"props":644,"children":646},{"className":645},[],[647],{"type":18,"value":472},{"type":18,"value":649}," is not ",{"type":13,"tag":29,"props":651,"children":653},{"className":652},[],[654],{"type":18,"value":655},"0",{"type":18,"value":258},{"type":13,"tag":29,"props":658,"children":660},{"className":659},[],[661],{"type":18,"value":483},{"type":18,"value":622},{"type":13,"tag":554,"props":664,"children":665},{"type":556},[],{"type":18,"value":667}," be a valid pointer to an array of ",{"type":13,"tag":29,"props":669,"children":671},{"className":670},[],[672],{"type":18,"value":472},{"type":18,"value":674}," valid ",{"type":13,"tag":21,"props":676,"children":677},{"href":488},[678],{"type":18,"value":491},{"type":18,"value":680}," values",{"type":13,"tag":529,"props":682,"children":684},{"name":683},"VUID-VkValidationFeaturesEXT-pDisabledValidationFeatures-parameter",[685],{"type":13,"tag":14,"props":686,"children":687},{},[688,689,694,695,700,701,706,707,710,711,716,717,721],{"type":18,"value":642},{"type":13,"tag":29,"props":690,"children":692},{"className":691},[],[693],{"type":18,"value":502},{"type":18,"value":649},{"type":13,"tag":29,"props":696,"children":698},{"className":697},[],[699],{"type":18,"value":655},{"type":18,"value":258},{"type":13,"tag":29,"props":702,"children":704},{"className":703},[],[705],{"type":18,"value":513},{"type":18,"value":622},{"type":13,"tag":554,"props":708,"children":709},{"type":556},[],{"type":18,"value":667},{"type":13,"tag":29,"props":712,"children":714},{"className":713},[],[715],{"type":18,"value":502},{"type":18,"value":674},{"type":13,"tag":21,"props":718,"children":719},{"href":517},[720],{"type":18,"value":520},{"type":18,"value":680},{"type":13,"tag":723,"props":724,"children":725},"style",{},[726],{"type":18,"value":727},"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":56,"searchDepth":86,"depth":86,"links":729},[],"markdown",1725732590777]