[{"data":1,"prerenderedAt":597},["ShallowReactive",2],{"5i5T9DaWm8":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":596,"_id":4},"VkSpecializationInfo","Structure specifying specialization information","VK_VERSION_1_0","structs",[],{"type":10,"children":11,"toc":594},"root",[12,28,309,387,498,588],{"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},"code",{"className":23},[],[25],{"type":18,"value":4},{"type":18,"value":27}," structure is defined as:",{"type":13,"tag":29,"props":30,"children":31},"code-group",{},[32,146],{"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 VkSpecializationInfo {\n uint32_t mapEntryCount;\n const VkSpecializationMapEntry* pMapEntries;\n size_t dataSize;\n const void* pData;\n} VkSpecializationInfo;\n","C","c","",[41],{"type":13,"tag":21,"props":42,"children":43},{"__ignoreMap":39},[44,67,81,105,119,137],{"type":13,"tag":45,"props":46,"children":49},"span",{"class":47,"line":48},"line",1,[50,56,61],{"type":13,"tag":45,"props":51,"children":53},{"style":52},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[54],{"type":18,"value":55},"typedef",{"type":13,"tag":45,"props":57,"children":58},{"style":52},[59],{"type":18,"value":60}," struct",{"type":13,"tag":45,"props":62,"children":64},{"style":63},"--shiki-default:#1F2328;--shiki-dark:#E6EDF3",[65],{"type":18,"value":66}," VkSpecializationInfo {\n",{"type":13,"tag":45,"props":68,"children":70},{"class":47,"line":69},2,[71,76],{"type":13,"tag":45,"props":72,"children":73},{"style":52},[74],{"type":18,"value":75}," uint32_t",{"type":13,"tag":45,"props":77,"children":78},{"style":63},[79],{"type":18,"value":80}," mapEntryCount;\n",{"type":13,"tag":45,"props":82,"children":84},{"class":47,"line":83},3,[85,90,95,100],{"type":13,"tag":45,"props":86,"children":87},{"style":52},[88],{"type":18,"value":89}," const",{"type":13,"tag":45,"props":91,"children":92},{"style":63},[93],{"type":18,"value":94}," VkSpecializationMapEntry",{"type":13,"tag":45,"props":96,"children":97},{"style":52},[98],{"type":18,"value":99},"*",{"type":13,"tag":45,"props":101,"children":102},{"style":63},[103],{"type":18,"value":104}," pMapEntries;\n",{"type":13,"tag":45,"props":106,"children":108},{"class":47,"line":107},4,[109,114],{"type":13,"tag":45,"props":110,"children":111},{"style":52},[112],{"type":18,"value":113}," size_t",{"type":13,"tag":45,"props":115,"children":116},{"style":63},[117],{"type":18,"value":118}," dataSize;\n",{"type":13,"tag":45,"props":120,"children":122},{"class":47,"line":121},5,[123,127,132],{"type":13,"tag":45,"props":124,"children":125},{"style":52},[126],{"type":18,"value":89},{"type":13,"tag":45,"props":128,"children":129},{"style":52},[130],{"type":18,"value":131}," void*",{"type":13,"tag":45,"props":133,"children":134},{"style":63},[135],{"type":18,"value":136}," pData;\n",{"type":13,"tag":45,"props":138,"children":140},{"class":47,"line":139},6,[141],{"type":13,"tag":45,"props":142,"children":143},{"style":63},[144],{"type":18,"value":145},"} VkSpecializationInfo;\n",{"type":13,"tag":33,"props":147,"children":152},{"className":148,"code":149,"filename":150,"language":151,"meta":39,"style":39},"language-rs shiki shiki-themes github-light-default github-dark-default","pub struct SpecializationInfo {\n map_entry_count: u32, // Number of entries in the map\n p_map_entries: *const vk::SpecializationMapEntry, // Array of map entries\n data_size: usize, // Size in bytes of pData\n p_data: *const c_void, // Pointer to SpecConstant data\n}\n","Rust","rs",[153],{"type":13,"tag":21,"props":154,"children":155},{"__ignoreMap":39},[156,179,208,249,275,301],{"type":13,"tag":45,"props":157,"children":158},{"class":47,"line":48},[159,164,168,174],{"type":13,"tag":45,"props":160,"children":161},{"style":52},[162],{"type":18,"value":163},"pub",{"type":13,"tag":45,"props":165,"children":166},{"style":52},[167],{"type":18,"value":60},{"type":13,"tag":45,"props":169,"children":171},{"style":170},"--shiki-default:#953800;--shiki-dark:#FFA657",[172],{"type":18,"value":173}," SpecializationInfo",{"type":13,"tag":45,"props":175,"children":176},{"style":63},[177],{"type":18,"value":178}," {\n",{"type":13,"tag":45,"props":180,"children":181},{"class":47,"line":69},[182,187,192,197,202],{"type":13,"tag":45,"props":183,"children":184},{"style":63},[185],{"type":18,"value":186}," map_entry_count",{"type":13,"tag":45,"props":188,"children":189},{"style":52},[190],{"type":18,"value":191},":",{"type":13,"tag":45,"props":193,"children":194},{"style":170},[195],{"type":18,"value":196}," u32",{"type":13,"tag":45,"props":198,"children":199},{"style":63},[200],{"type":18,"value":201},", ",{"type":13,"tag":45,"props":203,"children":205},{"style":204},"--shiki-default:#6E7781;--shiki-dark:#8B949E",[206],{"type":18,"value":207},"// Number of entries in the map\n",{"type":13,"tag":45,"props":209,"children":210},{"class":47,"line":83},[211,216,220,225,230,235,240,244],{"type":13,"tag":45,"props":212,"children":213},{"style":63},[214],{"type":18,"value":215}," p_map_entries",{"type":13,"tag":45,"props":217,"children":218},{"style":52},[219],{"type":18,"value":191},{"type":13,"tag":45,"props":221,"children":222},{"style":52},[223],{"type":18,"value":224}," *const",{"type":13,"tag":45,"props":226,"children":227},{"style":170},[228],{"type":18,"value":229}," vk",{"type":13,"tag":45,"props":231,"children":232},{"style":52},[233],{"type":18,"value":234},"::",{"type":13,"tag":45,"props":236,"children":237},{"style":170},[238],{"type":18,"value":239},"SpecializationMapEntry",{"type":13,"tag":45,"props":241,"children":242},{"style":63},[243],{"type":18,"value":201},{"type":13,"tag":45,"props":245,"children":246},{"style":204},[247],{"type":18,"value":248},"// Array of map entries\n",{"type":13,"tag":45,"props":250,"children":251},{"class":47,"line":107},[252,257,261,266,270],{"type":13,"tag":45,"props":253,"children":254},{"style":63},[255],{"type":18,"value":256}," data_size",{"type":13,"tag":45,"props":258,"children":259},{"style":52},[260],{"type":18,"value":191},{"type":13,"tag":45,"props":262,"children":263},{"style":170},[264],{"type":18,"value":265}," usize",{"type":13,"tag":45,"props":267,"children":268},{"style":63},[269],{"type":18,"value":201},{"type":13,"tag":45,"props":271,"children":272},{"style":204},[273],{"type":18,"value":274},"// Size in bytes of pData\n",{"type":13,"tag":45,"props":276,"children":277},{"class":47,"line":121},[278,283,287,291,296],{"type":13,"tag":45,"props":279,"children":280},{"style":63},[281],{"type":18,"value":282}," p_data",{"type":13,"tag":45,"props":284,"children":285},{"style":52},[286],{"type":18,"value":191},{"type":13,"tag":45,"props":288,"children":289},{"style":52},[290],{"type":18,"value":224},{"type":13,"tag":45,"props":292,"children":293},{"style":63},[294],{"type":18,"value":295}," c_void, ",{"type":13,"tag":45,"props":297,"children":298},{"style":204},[299],{"type":18,"value":300},"// Pointer to SpecConstant data\n",{"type":13,"tag":45,"props":302,"children":303},{"class":47,"line":139},[304],{"type":13,"tag":45,"props":305,"children":306},{"style":63},[307],{"type":18,"value":308},"}\n",{"type":13,"tag":310,"props":311,"children":312},"ul",{},[313,333,359,377],{"type":13,"tag":314,"props":315,"children":316},"li",{},[317,323,325,331],{"type":13,"tag":21,"props":318,"children":320},{"className":319},[],[321],{"type":18,"value":322},"mapEntryCount",{"type":18,"value":324}," is the number of entries in the ",{"type":13,"tag":21,"props":326,"children":328},{"className":327},[],[329],{"type":18,"value":330},"pMapEntries",{"type":18,"value":332},"\narray.",{"type":13,"tag":314,"props":334,"children":335},{},[336,341,343,349,351,357],{"type":13,"tag":21,"props":337,"children":339},{"className":338},[],[340],{"type":18,"value":330},{"type":18,"value":342}," is a pointer to an array of\n",{"type":13,"tag":21,"props":344,"children":346},{"className":345},[],[347],{"type":18,"value":348},"VkSpecializationMapEntry",{"type":18,"value":350}," structures, which map constant IDs to\noffsets in ",{"type":13,"tag":21,"props":352,"children":354},{"className":353},[],[355],{"type":18,"value":356},"pData",{"type":18,"value":358},".",{"type":13,"tag":314,"props":360,"children":361},{},[362,368,370,375],{"type":13,"tag":21,"props":363,"children":365},{"className":364},[],[366],{"type":18,"value":367},"dataSize",{"type":18,"value":369}," is the byte size of the ",{"type":13,"tag":21,"props":371,"children":373},{"className":372},[],[374],{"type":18,"value":356},{"type":18,"value":376}," buffer.",{"type":13,"tag":314,"props":378,"children":379},{},[380,385],{"type":13,"tag":21,"props":381,"children":383},{"className":382},[],[384],{"type":18,"value":356},{"type":18,"value":386}," contains the actual constant values to specialize with.",{"type":13,"tag":388,"props":389,"children":391},"validity-group",{"name":390},"Valid Usage",[392,428,466],{"type":13,"tag":393,"props":394,"children":396},"validity-field",{"name":395},"VUID-VkSpecializationInfo-offset-00773",[397],{"type":13,"tag":14,"props":398,"children":399},{},[400,401,407,409,414,416,421,423],{"type":18,"value":19},{"type":13,"tag":21,"props":402,"children":404},{"className":403},[],[405],{"type":18,"value":406},"offset",{"type":18,"value":408}," member of each element of ",{"type":13,"tag":21,"props":410,"children":412},{"className":411},[],[413],{"type":18,"value":330},{"type":18,"value":415}," ",{"type":13,"tag":417,"props":418,"children":420},"normative",{"type":419},"must",[],{"type":18,"value":422}," be\nless than ",{"type":13,"tag":21,"props":424,"children":426},{"className":425},[],[427],{"type":18,"value":367},{"type":13,"tag":393,"props":429,"children":431},{"name":430},"VUID-VkSpecializationInfo-pMapEntries-00774",[432],{"type":13,"tag":14,"props":433,"children":434},{},[435,436,442,443,448,449,452,454,459,461],{"type":18,"value":19},{"type":13,"tag":21,"props":437,"children":439},{"className":438},[],[440],{"type":18,"value":441},"size",{"type":18,"value":408},{"type":13,"tag":21,"props":444,"children":446},{"className":445},[],[447],{"type":18,"value":330},{"type":18,"value":415},{"type":13,"tag":417,"props":450,"children":451},{"type":419},[],{"type":18,"value":453}," be less\nthan or equal to ",{"type":13,"tag":21,"props":455,"children":457},{"className":456},[],[458],{"type":18,"value":367},{"type":18,"value":460}," minus ",{"type":13,"tag":21,"props":462,"children":464},{"className":463},[],[465],{"type":18,"value":406},{"type":13,"tag":393,"props":467,"children":469},{"name":468},"VUID-VkSpecializationInfo-constantID-04911",[470],{"type":13,"tag":14,"props":471,"children":472},{},[473,474,480,482,487,488,491,493],{"type":18,"value":19},{"type":13,"tag":21,"props":475,"children":477},{"className":476},[],[478],{"type":18,"value":479},"constantID",{"type":18,"value":481}," value of each element of ",{"type":13,"tag":21,"props":483,"children":485},{"className":484},[],[486],{"type":18,"value":330},{"type":18,"value":415},{"type":13,"tag":417,"props":489,"children":490},{"type":419},[],{"type":18,"value":492}," be\nunique within ",{"type":13,"tag":21,"props":494,"children":496},{"className":495},[],[497],{"type":18,"value":330},{"type":13,"tag":388,"props":499,"children":501},{"name":500},"Valid Usage (Implicit)",[502,551],{"type":13,"tag":393,"props":503,"children":505},{"name":504},"VUID-VkSpecializationInfo-pMapEntries-parameter",[506],{"type":13,"tag":14,"props":507,"children":508},{},[509,511,516,518,524,525,530,531,534,536,541,543,549],{"type":18,"value":510},"If ",{"type":13,"tag":21,"props":512,"children":514},{"className":513},[],[515],{"type":18,"value":322},{"type":18,"value":517}," is not ",{"type":13,"tag":21,"props":519,"children":521},{"className":520},[],[522],{"type":18,"value":523},"0",{"type":18,"value":201},{"type":13,"tag":21,"props":526,"children":528},{"className":527},[],[529],{"type":18,"value":330},{"type":18,"value":415},{"type":13,"tag":417,"props":532,"children":533},{"type":419},[],{"type":18,"value":535}," be a valid pointer to an array of ",{"type":13,"tag":21,"props":537,"children":539},{"className":538},[],[540],{"type":18,"value":322},{"type":18,"value":542}," valid ",{"type":13,"tag":544,"props":545,"children":547},"a",{"href":546},"/man/VkSpecializationMapEntry",[548],{"type":18,"value":348},{"type":18,"value":550}," structures",{"type":13,"tag":393,"props":552,"children":554},{"name":553},"VUID-VkSpecializationInfo-pData-parameter",[555],{"type":13,"tag":14,"props":556,"children":557},{},[558,559,564,565,570,571,576,577,580,581,586],{"type":18,"value":510},{"type":13,"tag":21,"props":560,"children":562},{"className":561},[],[563],{"type":18,"value":367},{"type":18,"value":517},{"type":13,"tag":21,"props":566,"children":568},{"className":567},[],[569],{"type":18,"value":523},{"type":18,"value":201},{"type":13,"tag":21,"props":572,"children":574},{"className":573},[],[575],{"type":18,"value":356},{"type":18,"value":415},{"type":13,"tag":417,"props":578,"children":579},{"type":419},[],{"type":18,"value":535},{"type":13,"tag":21,"props":582,"children":584},{"className":583},[],[585],{"type":18,"value":367},{"type":18,"value":587}," bytes",{"type":13,"tag":589,"props":590,"children":591},"style",{},[592],{"type":18,"value":593},"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":69,"depth":69,"links":595},[],"markdown",1725732587150]