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