[{"data":1,"prerenderedAt":638},["ShallowReactive",2],{"vh5bv2Chtf":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":637,"_id":4},"VkDescriptorSetVariableDescriptorCountAllocateInfo","Structure specifying additional allocation parameters for descriptor sets","VK_VERSION_1_2","structs",[],{"type":10,"children":11,"toc":635},"root",[12,45,57,306,311,376,447,508,553,629],{"type":13,"tag":14,"props":15,"children":16},"element","p",{},[17,20,27,29,36,38,43],{"type":18,"value":19},"text","If the ",{"type":13,"tag":21,"props":22,"children":24},"code",{"className":23},[],[25],{"type":18,"value":26},"pNext",{"type":18,"value":28}," chain of a ",{"type":13,"tag":30,"props":31,"children":33},"a",{"href":32},"/man/VkDescriptorSetAllocateInfo",[34],{"type":18,"value":35},"VkDescriptorSetAllocateInfo",{"type":18,"value":37}," structure\nincludes a ",{"type":13,"tag":21,"props":39,"children":41},{"className":40},[],[42],{"type":18,"value":4},{"type":18,"value":44},"\nstructure, then that structure includes an array of descriptor counts for\nvariable-sized descriptor bindings, one for each descriptor set being\nallocated.",{"type":13,"tag":14,"props":46,"children":47},{},[48,50,55],{"type":18,"value":49},"The ",{"type":13,"tag":21,"props":51,"children":53},{"className":52},[],[54],{"type":18,"value":4},{"type":18,"value":56}," structure is\ndefined as:",{"type":13,"tag":58,"props":59,"children":60},"code-group",{},[61,165],{"type":13,"tag":62,"props":63,"children":69},"pre",{"className":64,"code":65,"filename":66,"language":67,"meta":68,"style":68},"language-c shiki shiki-themes github-light-default github-dark-default","typedef struct VkDescriptorSetVariableDescriptorCountAllocateInfo {\n VkStructureType sType;\n const void* pNext;\n uint32_t descriptorSetCount;\n const uint32_t* pDescriptorCounts;\n} VkDescriptorSetVariableDescriptorCountAllocateInfo;\n","C","c","",[70],{"type":13,"tag":21,"props":71,"children":72},{"__ignoreMap":68},[73,96,105,124,138,156],{"type":13,"tag":74,"props":75,"children":78},"span",{"class":76,"line":77},"line",1,[79,85,90],{"type":13,"tag":74,"props":80,"children":82},{"style":81},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[83],{"type":18,"value":84},"typedef",{"type":13,"tag":74,"props":86,"children":87},{"style":81},[88],{"type":18,"value":89}," struct",{"type":13,"tag":74,"props":91,"children":93},{"style":92},"--shiki-default:#1F2328;--shiki-dark:#E6EDF3",[94],{"type":18,"value":95}," VkDescriptorSetVariableDescriptorCountAllocateInfo {\n",{"type":13,"tag":74,"props":97,"children":99},{"class":76,"line":98},2,[100],{"type":13,"tag":74,"props":101,"children":102},{"style":92},[103],{"type":18,"value":104}," VkStructureType sType;\n",{"type":13,"tag":74,"props":106,"children":108},{"class":76,"line":107},3,[109,114,119],{"type":13,"tag":74,"props":110,"children":111},{"style":81},[112],{"type":18,"value":113}," const",{"type":13,"tag":74,"props":115,"children":116},{"style":81},[117],{"type":18,"value":118}," void*",{"type":13,"tag":74,"props":120,"children":121},{"style":92},[122],{"type":18,"value":123}," pNext;\n",{"type":13,"tag":74,"props":125,"children":127},{"class":76,"line":126},4,[128,133],{"type":13,"tag":74,"props":129,"children":130},{"style":81},[131],{"type":18,"value":132}," uint32_t",{"type":13,"tag":74,"props":134,"children":135},{"style":92},[136],{"type":18,"value":137}," descriptorSetCount;\n",{"type":13,"tag":74,"props":139,"children":141},{"class":76,"line":140},5,[142,146,151],{"type":13,"tag":74,"props":143,"children":144},{"style":81},[145],{"type":18,"value":113},{"type":13,"tag":74,"props":147,"children":148},{"style":81},[149],{"type":18,"value":150}," uint32_t*",{"type":13,"tag":74,"props":152,"children":153},{"style":92},[154],{"type":18,"value":155}," pDescriptorCounts;\n",{"type":13,"tag":74,"props":157,"children":159},{"class":76,"line":158},6,[160],{"type":13,"tag":74,"props":161,"children":162},{"style":92},[163],{"type":18,"value":164},"} VkDescriptorSetVariableDescriptorCountAllocateInfo;\n",{"type":13,"tag":62,"props":166,"children":171},{"className":167,"code":168,"filename":169,"language":170,"meta":68,"style":68},"language-rs shiki shiki-themes github-light-default github-dark-default","pub struct DescriptorSetVariableDescriptorCountAllocateInfo {\n s_type: vk::StructureType,\n p_next: *const c_void,\n descriptor_set_count: u32,\n p_descriptor_counts: *const u32,\n}\n","Rust","rs",[172],{"type":13,"tag":21,"props":173,"children":174},{"__ignoreMap":68},[175,198,231,253,274,298],{"type":13,"tag":74,"props":176,"children":177},{"class":76,"line":77},[178,183,187,193],{"type":13,"tag":74,"props":179,"children":180},{"style":81},[181],{"type":18,"value":182},"pub",{"type":13,"tag":74,"props":184,"children":185},{"style":81},[186],{"type":18,"value":89},{"type":13,"tag":74,"props":188,"children":190},{"style":189},"--shiki-default:#953800;--shiki-dark:#FFA657",[191],{"type":18,"value":192}," DescriptorSetVariableDescriptorCountAllocateInfo",{"type":13,"tag":74,"props":194,"children":195},{"style":92},[196],{"type":18,"value":197}," {\n",{"type":13,"tag":74,"props":199,"children":200},{"class":76,"line":98},[201,206,211,216,221,226],{"type":13,"tag":74,"props":202,"children":203},{"style":92},[204],{"type":18,"value":205}," s_type",{"type":13,"tag":74,"props":207,"children":208},{"style":81},[209],{"type":18,"value":210},":",{"type":13,"tag":74,"props":212,"children":213},{"style":189},[214],{"type":18,"value":215}," vk",{"type":13,"tag":74,"props":217,"children":218},{"style":81},[219],{"type":18,"value":220},"::",{"type":13,"tag":74,"props":222,"children":223},{"style":189},[224],{"type":18,"value":225},"StructureType",{"type":13,"tag":74,"props":227,"children":228},{"style":92},[229],{"type":18,"value":230},",\n",{"type":13,"tag":74,"props":232,"children":233},{"class":76,"line":107},[234,239,243,248],{"type":13,"tag":74,"props":235,"children":236},{"style":92},[237],{"type":18,"value":238}," p_next",{"type":13,"tag":74,"props":240,"children":241},{"style":81},[242],{"type":18,"value":210},{"type":13,"tag":74,"props":244,"children":245},{"style":81},[246],{"type":18,"value":247}," *const",{"type":13,"tag":74,"props":249,"children":250},{"style":92},[251],{"type":18,"value":252}," c_void,\n",{"type":13,"tag":74,"props":254,"children":255},{"class":76,"line":126},[256,261,265,270],{"type":13,"tag":74,"props":257,"children":258},{"style":92},[259],{"type":18,"value":260}," descriptor_set_count",{"type":13,"tag":74,"props":262,"children":263},{"style":81},[264],{"type":18,"value":210},{"type":13,"tag":74,"props":266,"children":267},{"style":189},[268],{"type":18,"value":269}," u32",{"type":13,"tag":74,"props":271,"children":272},{"style":92},[273],{"type":18,"value":230},{"type":13,"tag":74,"props":275,"children":276},{"class":76,"line":140},[277,282,286,290,294],{"type":13,"tag":74,"props":278,"children":279},{"style":92},[280],{"type":18,"value":281}," p_descriptor_counts",{"type":13,"tag":74,"props":283,"children":284},{"style":81},[285],{"type":18,"value":210},{"type":13,"tag":74,"props":287,"children":288},{"style":81},[289],{"type":18,"value":247},{"type":13,"tag":74,"props":291,"children":292},{"style":189},[293],{"type":18,"value":269},{"type":13,"tag":74,"props":295,"children":296},{"style":92},[297],{"type":18,"value":230},{"type":13,"tag":74,"props":299,"children":300},{"class":76,"line":158},[301],{"type":13,"tag":74,"props":302,"children":303},{"style":92},[304],{"type":18,"value":305},"}\n",{"type":13,"tag":14,"props":307,"children":308},{},[309],{"type":18,"value":310},"or the equivalent",{"type":13,"tag":58,"props":312,"children":313},{},[314,333],{"type":13,"tag":62,"props":315,"children":317},{"className":64,"code":316,"filename":66,"language":67,"meta":68,"style":68},"typedef VkDescriptorSetVariableDescriptorCountAllocateInfo VkDescriptorSetVariableDescriptorCountAllocateInfoEXT;\n",[318],{"type":13,"tag":21,"props":319,"children":320},{"__ignoreMap":68},[321],{"type":13,"tag":74,"props":322,"children":323},{"class":76,"line":77},[324,328],{"type":13,"tag":74,"props":325,"children":326},{"style":81},[327],{"type":18,"value":84},{"type":13,"tag":74,"props":329,"children":330},{"style":92},[331],{"type":18,"value":332}," VkDescriptorSetVariableDescriptorCountAllocateInfo VkDescriptorSetVariableDescriptorCountAllocateInfoEXT;\n",{"type":13,"tag":62,"props":334,"children":336},{"className":167,"code":335,"filename":169,"language":170,"meta":68,"style":68},"type DescriptorSetVariableDescriptorCountAllocateInfoEXT = vk::DescriptorSetVariableDescriptorCountAllocateInfo;\n",[337],{"type":13,"tag":21,"props":338,"children":339},{"__ignoreMap":68},[340],{"type":13,"tag":74,"props":341,"children":342},{"class":76,"line":77},[343,348,353,358,362,366,371],{"type":13,"tag":74,"props":344,"children":345},{"style":81},[346],{"type":18,"value":347},"type",{"type":13,"tag":74,"props":349,"children":350},{"style":189},[351],{"type":18,"value":352}," DescriptorSetVariableDescriptorCountAllocateInfoEXT",{"type":13,"tag":74,"props":354,"children":355},{"style":81},[356],{"type":18,"value":357}," =",{"type":13,"tag":74,"props":359,"children":360},{"style":189},[361],{"type":18,"value":215},{"type":13,"tag":74,"props":363,"children":364},{"style":81},[365],{"type":18,"value":220},{"type":13,"tag":74,"props":367,"children":368},{"style":189},[369],{"type":18,"value":370},"DescriptorSetVariableDescriptorCountAllocateInfo",{"type":13,"tag":74,"props":372,"children":373},{"style":92},[374],{"type":18,"value":375},";\n",{"type":13,"tag":377,"props":378,"children":379},"ul",{},[380,400,418,437],{"type":13,"tag":381,"props":382,"children":383},"li",{},[384,390,392,398],{"type":13,"tag":21,"props":385,"children":387},{"className":386},[],[388],{"type":18,"value":389},"sType",{"type":18,"value":391}," is a ",{"type":13,"tag":30,"props":393,"children":395},{"href":394},"/man/VkStructureType",[396],{"type":18,"value":397},"VkStructureType",{"type":18,"value":399}," value identifying this structure.",{"type":13,"tag":381,"props":401,"children":402},{},[403,408,410,416],{"type":13,"tag":21,"props":404,"children":406},{"className":405},[],[407],{"type":18,"value":26},{"type":18,"value":409}," is ",{"type":13,"tag":21,"props":411,"children":413},{"className":412},[],[414],{"type":18,"value":415},"NULL",{"type":18,"value":417}," or a pointer to a structure extending this\nstructure.",{"type":13,"tag":381,"props":419,"children":420},{},[421,427,429,435],{"type":13,"tag":21,"props":422,"children":424},{"className":423},[],[425],{"type":18,"value":426},"descriptorSetCount",{"type":18,"value":428}," is zero or the number of elements in\n",{"type":13,"tag":21,"props":430,"children":432},{"className":431},[],[433],{"type":18,"value":434},"pDescriptorCounts",{"type":18,"value":436},".",{"type":13,"tag":381,"props":438,"children":439},{},[440,445],{"type":13,"tag":21,"props":441,"children":443},{"className":442},[],[444],{"type":18,"value":434},{"type":18,"value":446}," is a pointer to an array of descriptor counts,\nwith each member specifying the number of descriptors in a\nvariable-sized descriptor binding in the corresponding descriptor set\nbeing allocated.",{"type":13,"tag":14,"props":448,"children":449},{},[450,452,457,459,464,466,471,473,479,481,486,488,492,493,499,501,506],{"type":18,"value":451},"If ",{"type":13,"tag":21,"props":453,"children":455},{"className":454},[],[456],{"type":18,"value":426},{"type":18,"value":458}," is zero or this structure is not included in the\n",{"type":13,"tag":21,"props":460,"children":462},{"className":461},[],[463],{"type":18,"value":26},{"type":18,"value":465}," chain, then the variable lengths are considered to be zero.\nOtherwise, ",{"type":13,"tag":21,"props":467,"children":469},{"className":468},[],[470],{"type":18,"value":434},{"type":18,"value":472},"[i] is the number of descriptors in the\nvariable-sized descriptor binding in the corresponding descriptor set\nlayout.\nIf the variable-sized descriptor binding in the corresponding descriptor set\nlayout has a descriptor type of\n",{"type":13,"tag":21,"props":474,"children":476},{"className":475},[],[477],{"type":18,"value":478},"VK_DESCRIPTOR_TYPE_INLINE_UNIFORM_BLOCK",{"type":18,"value":480}," then\n",{"type":13,"tag":21,"props":482,"children":484},{"className":483},[],[485],{"type":18,"value":434},{"type":18,"value":487},"[i] specifies the binding’s capacity in bytes.\nIf ",{"type":13,"tag":30,"props":489,"children":490},{"href":32},[491],{"type":18,"value":35},{"type":18,"value":220},{"type":13,"tag":21,"props":494,"children":496},{"className":495},[],[497],{"type":18,"value":498},"pSetLayouts",{"type":18,"value":500},"[i] does not include\na variable-sized descriptor binding, then ",{"type":13,"tag":21,"props":502,"children":504},{"className":503},[],[505],{"type":18,"value":434},{"type":18,"value":507},"[i] is\nignored.",{"type":13,"tag":509,"props":510,"children":512},"validity-group",{"name":511},"Valid Usage",[513],{"type":13,"tag":514,"props":515,"children":517},"validity-field",{"name":516},"VUID-VkDescriptorSetVariableDescriptorCountAllocateInfo-descriptorSetCount-03045",[518],{"type":13,"tag":14,"props":519,"children":520},{},[521,522,527,529,534,536,541,543,547,548],{"type":18,"value":451},{"type":13,"tag":21,"props":523,"children":525},{"className":524},[],[526],{"type":18,"value":426},{"type":18,"value":528}," is not zero, ",{"type":13,"tag":21,"props":530,"children":532},{"className":531},[],[533],{"type":18,"value":426},{"type":18,"value":535}," ",{"type":13,"tag":537,"props":538,"children":540},"normative",{"type":539},"must",[],{"type":18,"value":542},"\nequal ",{"type":13,"tag":30,"props":544,"children":545},{"href":32},[546],{"type":18,"value":35},{"type":18,"value":220},{"type":13,"tag":21,"props":549,"children":551},{"className":550},[],[552],{"type":18,"value":426},{"type":13,"tag":509,"props":554,"children":556},{"name":555},"Valid Usage (Implicit)",[557,581],{"type":13,"tag":514,"props":558,"children":560},{"name":559},"VUID-VkDescriptorSetVariableDescriptorCountAllocateInfo-sType-sType",[561],{"type":13,"tag":14,"props":562,"children":563},{},[564,569,570,573,575],{"type":13,"tag":21,"props":565,"children":567},{"className":566},[],[568],{"type":18,"value":389},{"type":18,"value":535},{"type":13,"tag":537,"props":571,"children":572},{"type":539},[],{"type":18,"value":574}," be ",{"type":13,"tag":21,"props":576,"children":578},{"className":577},[],[579],{"type":18,"value":580},"VK_STRUCTURE_TYPE_DESCRIPTOR_SET_VARIABLE_DESCRIPTOR_COUNT_ALLOCATE_INFO",{"type":13,"tag":514,"props":582,"children":584},{"name":583},"VUID-VkDescriptorSetVariableDescriptorCountAllocateInfo-pDescriptorCounts-parameter",[585],{"type":13,"tag":14,"props":586,"children":587},{},[588,589,594,596,602,604,609,610,613,615,620,621,627],{"type":18,"value":451},{"type":13,"tag":21,"props":590,"children":592},{"className":591},[],[593],{"type":18,"value":426},{"type":18,"value":595}," is not ",{"type":13,"tag":21,"props":597,"children":599},{"className":598},[],[600],{"type":18,"value":601},"0",{"type":18,"value":603},", ",{"type":13,"tag":21,"props":605,"children":607},{"className":606},[],[608],{"type":18,"value":434},{"type":18,"value":535},{"type":13,"tag":537,"props":611,"children":612},{"type":539},[],{"type":18,"value":614}," be a valid pointer to an array of ",{"type":13,"tag":21,"props":616,"children":618},{"className":617},[],[619],{"type":18,"value":426},{"type":18,"value":535},{"type":13,"tag":21,"props":622,"children":624},{"className":623},[],[625],{"type":18,"value":626},"uint32_t",{"type":18,"value":628}," values",{"type":13,"tag":630,"props":631,"children":632},"style",{},[633],{"type":18,"value":634},"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":68,"searchDepth":98,"depth":98,"links":636},[],"markdown",1725732547488]