[{"data":1,"prerenderedAt":429},["ShallowReactive",2],{"WZmF3yhz0o":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":428,"_id":4},"VkDescriptorPoolSize","Structure specifying descriptor pool size","VK_VERSION_1_0","structs",[],{"type":10,"children":11,"toc":426},"root",[12,28,190,239,320,390,420],{"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,99],{"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 VkDescriptorPoolSize {\n VkDescriptorType type;\n uint32_t descriptorCount;\n} VkDescriptorPoolSize;\n","C","c","",[41],{"type":13,"tag":21,"props":42,"children":43},{"__ignoreMap":39},[44,67,76,90],{"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}," VkDescriptorPoolSize {\n",{"type":13,"tag":45,"props":68,"children":70},{"class":47,"line":69},2,[71],{"type":13,"tag":45,"props":72,"children":73},{"style":63},[74],{"type":18,"value":75}," VkDescriptorType type;\n",{"type":13,"tag":45,"props":77,"children":79},{"class":47,"line":78},3,[80,85],{"type":13,"tag":45,"props":81,"children":82},{"style":52},[83],{"type":18,"value":84}," uint32_t",{"type":13,"tag":45,"props":86,"children":87},{"style":63},[88],{"type":18,"value":89}," descriptorCount;\n",{"type":13,"tag":45,"props":91,"children":93},{"class":47,"line":92},4,[94],{"type":13,"tag":45,"props":95,"children":96},{"style":63},[97],{"type":18,"value":98},"} VkDescriptorPoolSize;\n",{"type":13,"tag":33,"props":100,"children":105},{"className":101,"code":102,"filename":103,"language":104,"meta":39,"style":39},"language-rs shiki shiki-themes github-light-default github-dark-default","pub struct DescriptorPoolSize {\n type: vk::DescriptorType,\n descriptor_count: u32,\n}\n","Rust","rs",[106],{"type":13,"tag":21,"props":107,"children":108},{"__ignoreMap":39},[109,132,160,182],{"type":13,"tag":45,"props":110,"children":111},{"class":47,"line":48},[112,117,121,127],{"type":13,"tag":45,"props":113,"children":114},{"style":52},[115],{"type":18,"value":116},"pub",{"type":13,"tag":45,"props":118,"children":119},{"style":52},[120],{"type":18,"value":60},{"type":13,"tag":45,"props":122,"children":124},{"style":123},"--shiki-default:#953800;--shiki-dark:#FFA657",[125],{"type":18,"value":126}," DescriptorPoolSize",{"type":13,"tag":45,"props":128,"children":129},{"style":63},[130],{"type":18,"value":131}," {\n",{"type":13,"tag":45,"props":133,"children":134},{"class":47,"line":69},[135,140,145,150,155],{"type":13,"tag":45,"props":136,"children":137},{"style":52},[138],{"type":18,"value":139}," type:",{"type":13,"tag":45,"props":141,"children":142},{"style":123},[143],{"type":18,"value":144}," vk",{"type":13,"tag":45,"props":146,"children":147},{"style":52},[148],{"type":18,"value":149},"::",{"type":13,"tag":45,"props":151,"children":152},{"style":123},[153],{"type":18,"value":154},"DescriptorType",{"type":13,"tag":45,"props":156,"children":157},{"style":63},[158],{"type":18,"value":159},",\n",{"type":13,"tag":45,"props":161,"children":162},{"class":47,"line":78},[163,168,173,178],{"type":13,"tag":45,"props":164,"children":165},{"style":63},[166],{"type":18,"value":167}," descriptor_count",{"type":13,"tag":45,"props":169,"children":170},{"style":52},[171],{"type":18,"value":172},":",{"type":13,"tag":45,"props":174,"children":175},{"style":123},[176],{"type":18,"value":177}," u32",{"type":13,"tag":45,"props":179,"children":180},{"style":63},[181],{"type":18,"value":159},{"type":13,"tag":45,"props":183,"children":184},{"class":47,"line":92},[185],{"type":13,"tag":45,"props":186,"children":187},{"style":63},[188],{"type":18,"value":189},"}\n",{"type":13,"tag":191,"props":192,"children":193},"ul",{},[194,206],{"type":13,"tag":195,"props":196,"children":197},"li",{},[198,204],{"type":13,"tag":21,"props":199,"children":201},{"className":200},[],[202],{"type":18,"value":203},"type",{"type":18,"value":205}," is the type of descriptor.",{"type":13,"tag":195,"props":207,"children":208},{},[209,215,217,222,224,230,232,237],{"type":13,"tag":21,"props":210,"children":212},{"className":211},[],[213],{"type":18,"value":214},"descriptorCount",{"type":18,"value":216}," is the number of descriptors of that type to\nallocate.\nIf ",{"type":13,"tag":21,"props":218,"children":220},{"className":219},[],[221],{"type":18,"value":203},{"type":18,"value":223}," is ",{"type":13,"tag":21,"props":225,"children":227},{"className":226},[],[228],{"type":18,"value":229},"VK_DESCRIPTOR_TYPE_INLINE_UNIFORM_BLOCK",{"type":18,"value":231}," then\n",{"type":13,"tag":21,"props":233,"children":235},{"className":234},[],[236],{"type":18,"value":214},{"type":18,"value":238}," is the number of bytes to allocate for descriptors\nof this type.",{"type":13,"tag":240,"props":241,"children":242},"note",{},[243,271],{"type":13,"tag":14,"props":244,"children":245},{},[246,248,253,255,262,263,269],{"type":18,"value":247},"When creating a descriptor pool that will contain descriptors for combined\nimage samplers of multi-planar formats, an application needs to account for\nnon-trivial descriptor consumption when choosing the ",{"type":13,"tag":21,"props":249,"children":251},{"className":250},[],[252],{"type":18,"value":214},{"type":18,"value":254},"\nvalue, as indicated by\n",{"type":13,"tag":256,"props":257,"children":259},"a",{"href":258},"/man/VkSamplerYcbcrConversionImageFormatProperties",[260],{"type":18,"value":261},"VkSamplerYcbcrConversionImageFormatProperties",{"type":18,"value":149},{"type":13,"tag":21,"props":264,"children":266},{"className":265},[],[267],{"type":18,"value":268},"combinedImageSamplerDescriptorCount",{"type":18,"value":270},".",{"type":13,"tag":14,"props":272,"children":273},{},[274,276,281,283,289,290,296,298,318],{"type":18,"value":275},"For simplicity the application ",{"type":13,"tag":277,"props":278,"children":280},"normative",{"type":279},"can",[],{"type":18,"value":282}," use the\n",{"type":13,"tag":256,"props":284,"children":286},{"href":285},"/man/VkPhysicalDeviceMaintenance6PropertiesKHR",[287],{"type":18,"value":288},"VkPhysicalDeviceMaintenance6PropertiesKHR",{"type":18,"value":149},{"type":13,"tag":21,"props":291,"children":293},{"className":292},[],[294],{"type":18,"value":295},"maxCombinedImageSamplerDescriptorCount",{"type":18,"value":297},"\nproperty, which is sized to accommodate any and all\n",{"type":13,"tag":256,"props":299,"children":301},{"href":300},"/chapters/formats#formats-requiring-sampler-ycbcr-conversion",[302,304,310,311,316],{"type":18,"value":303},"formats that require a sampler\nY′C",{"type":13,"tag":305,"props":306,"children":307},"sub",{},[308],{"type":18,"value":309},"B",{"type":18,"value":37},{"type":13,"tag":305,"props":312,"children":313},{},[314],{"type":18,"value":315},"R",{"type":18,"value":317}," conversion",{"type":18,"value":319}," supported by the implementation.",{"type":13,"tag":321,"props":322,"children":324},"validity-group",{"name":323},"Valid Usage",[325,352],{"type":13,"tag":326,"props":327,"children":329},"validity-field",{"name":328},"VUID-VkDescriptorPoolSize-descriptorCount-00302",[330],{"type":13,"tag":14,"props":331,"children":332},{},[333,338,340,344,346],{"type":13,"tag":21,"props":334,"children":336},{"className":335},[],[337],{"type":18,"value":214},{"type":18,"value":339}," ",{"type":13,"tag":277,"props":341,"children":343},{"type":342},"must",[],{"type":18,"value":345}," be greater than ",{"type":13,"tag":21,"props":347,"children":349},{"className":348},[],[350],{"type":18,"value":351},"0",{"type":13,"tag":326,"props":353,"children":355},{"name":354},"VUID-VkDescriptorPoolSize-type-02218",[356],{"type":13,"tag":14,"props":357,"children":358},{},[359,361,366,367,372,373,378,379,382,384],{"type":18,"value":360},"If ",{"type":13,"tag":21,"props":362,"children":364},{"className":363},[],[365],{"type":18,"value":203},{"type":18,"value":223},{"type":13,"tag":21,"props":368,"children":370},{"className":369},[],[371],{"type":18,"value":229},{"type":18,"value":231},{"type":13,"tag":21,"props":374,"children":376},{"className":375},[],[377],{"type":18,"value":214},{"type":18,"value":339},{"type":13,"tag":277,"props":380,"children":381},{"type":342},[],{"type":18,"value":383}," be a multiple of ",{"type":13,"tag":21,"props":385,"children":387},{"className":386},[],[388],{"type":18,"value":389},"4",{"type":13,"tag":321,"props":391,"children":393},{"name":392},"Valid Usage (Implicit)",[394],{"type":13,"tag":326,"props":395,"children":397},{"name":396},"VUID-VkDescriptorPoolSize-type-parameter",[398],{"type":13,"tag":14,"props":399,"children":400},{},[401,406,407,410,412,418],{"type":13,"tag":21,"props":402,"children":404},{"className":403},[],[405],{"type":18,"value":203},{"type":18,"value":339},{"type":13,"tag":277,"props":408,"children":409},{"type":342},[],{"type":18,"value":411}," be a valid ",{"type":13,"tag":256,"props":413,"children":415},{"href":414},"/man/VkDescriptorType",[416],{"type":18,"value":417},"VkDescriptorType",{"type":18,"value":419}," value",{"type":13,"tag":421,"props":422,"children":423},"style",{},[424],{"type":18,"value":425},"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":427},[],"markdown",1725732546977]