[{"data":1,"prerenderedAt":563},["ShallowReactive",2],{"YAEENFoiUL":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":562,"_id":4},"vkGetDescriptorSetLayoutSupport","Query whether a descriptor set layout can be created","VK_VERSION_1_1","protos",[],{"type":10,"children":11,"toc":560},"root",[12,27,298,352,419,445,475,554],{"type":13,"tag":14,"props":15,"children":16},"element","p",{},[17,20,25],{"type":18,"value":19},"text","To query information about whether a descriptor set layout ",{"type":13,"tag":21,"props":22,"children":24},"normative",{"type":23},"can",[],{"type":18,"value":26}," be created,\ncall:",{"type":13,"tag":28,"props":29,"children":30},"code-group",{},[31,139],{"type":13,"tag":32,"props":33,"children":39},"pre",{"className":34,"code":35,"filename":36,"language":37,"meta":38,"style":38},"language-c shiki shiki-themes github-light-default github-dark-default","void vkGetDescriptorSetLayoutSupportKHR(\n VkDevice device,\n const VkDescriptorSetLayoutCreateInfo* pCreateInfo,\n VkDescriptorSetLayoutSupport* pSupport);\n","C","c","",[40],{"type":13,"tag":41,"props":42,"children":43},"code",{"__ignoreMap":38},[44,68,88,116],{"type":13,"tag":45,"props":46,"children":49},"span",{"class":47,"line":48},"line",1,[50,56,62],{"type":13,"tag":45,"props":51,"children":53},{"style":52},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[54],{"type":18,"value":55},"void",{"type":13,"tag":45,"props":57,"children":59},{"style":58},"--shiki-default:#8250DF;--shiki-dark:#D2A8FF",[60],{"type":18,"value":61}," vkGetDescriptorSetLayoutSupportKHR",{"type":13,"tag":45,"props":63,"children":65},{"style":64},"--shiki-default:#1F2328;--shiki-dark:#E6EDF3",[66],{"type":18,"value":67},"(\n",{"type":13,"tag":45,"props":69,"children":71},{"class":47,"line":70},2,[72,77,83],{"type":13,"tag":45,"props":73,"children":74},{"style":64},[75],{"type":18,"value":76}," VkDevice ",{"type":13,"tag":45,"props":78,"children":80},{"style":79},"--shiki-default:#953800;--shiki-dark:#FFA657",[81],{"type":18,"value":82},"device",{"type":13,"tag":45,"props":84,"children":85},{"style":64},[86],{"type":18,"value":87},",\n",{"type":13,"tag":45,"props":89,"children":91},{"class":47,"line":90},3,[92,97,102,107,112],{"type":13,"tag":45,"props":93,"children":94},{"style":52},[95],{"type":18,"value":96}," const",{"type":13,"tag":45,"props":98,"children":99},{"style":64},[100],{"type":18,"value":101}," VkDescriptorSetLayoutCreateInfo",{"type":13,"tag":45,"props":103,"children":104},{"style":52},[105],{"type":18,"value":106},"*",{"type":13,"tag":45,"props":108,"children":109},{"style":79},[110],{"type":18,"value":111}," pCreateInfo",{"type":13,"tag":45,"props":113,"children":114},{"style":64},[115],{"type":18,"value":87},{"type":13,"tag":45,"props":117,"children":119},{"class":47,"line":118},4,[120,125,129,134],{"type":13,"tag":45,"props":121,"children":122},{"style":64},[123],{"type":18,"value":124}," VkDescriptorSetLayoutSupport",{"type":13,"tag":45,"props":126,"children":127},{"style":52},[128],{"type":18,"value":106},{"type":13,"tag":45,"props":130,"children":131},{"style":79},[132],{"type":18,"value":133}," pSupport",{"type":13,"tag":45,"props":135,"children":136},{"style":64},[137],{"type":18,"value":138},");\n",{"type":13,"tag":32,"props":140,"children":145},{"className":141,"code":142,"filename":143,"language":144,"meta":38,"style":38},"language-rs shiki shiki-themes github-light-default github-dark-default","pub fn get_descriptor_set_layout_support_khr(\n device: crate :: vk :: vk::Device,\n p_create_info: *const vk::DescriptorSetLayoutCreateInfo,\n p_support: *mut vk::DescriptorSetLayoutSupport,\n);\n","Rust","rs",[146],{"type":13,"tag":41,"props":147,"children":148},{"__ignoreMap":38},[149,171,222,256,290],{"type":13,"tag":45,"props":150,"children":151},{"class":47,"line":48},[152,157,162,167],{"type":13,"tag":45,"props":153,"children":154},{"style":52},[155],{"type":18,"value":156},"pub",{"type":13,"tag":45,"props":158,"children":159},{"style":52},[160],{"type":18,"value":161}," fn",{"type":13,"tag":45,"props":163,"children":164},{"style":58},[165],{"type":18,"value":166}," get_descriptor_set_layout_support_khr",{"type":13,"tag":45,"props":168,"children":169},{"style":64},[170],{"type":18,"value":67},{"type":13,"tag":45,"props":172,"children":173},{"class":47,"line":70},[174,179,184,189,194,199,204,209,213,218],{"type":13,"tag":45,"props":175,"children":176},{"style":64},[177],{"type":18,"value":178}," device",{"type":13,"tag":45,"props":180,"children":181},{"style":52},[182],{"type":18,"value":183},":",{"type":13,"tag":45,"props":185,"children":186},{"style":52},[187],{"type":18,"value":188}," crate",{"type":13,"tag":45,"props":190,"children":191},{"style":52},[192],{"type":18,"value":193}," ::",{"type":13,"tag":45,"props":195,"children":196},{"style":64},[197],{"type":18,"value":198}," vk ",{"type":13,"tag":45,"props":200,"children":201},{"style":52},[202],{"type":18,"value":203},"::",{"type":13,"tag":45,"props":205,"children":206},{"style":79},[207],{"type":18,"value":208}," vk",{"type":13,"tag":45,"props":210,"children":211},{"style":52},[212],{"type":18,"value":203},{"type":13,"tag":45,"props":214,"children":215},{"style":79},[216],{"type":18,"value":217},"Device",{"type":13,"tag":45,"props":219,"children":220},{"style":64},[221],{"type":18,"value":87},{"type":13,"tag":45,"props":223,"children":224},{"class":47,"line":90},[225,230,234,239,243,247,252],{"type":13,"tag":45,"props":226,"children":227},{"style":64},[228],{"type":18,"value":229}," p_create_info",{"type":13,"tag":45,"props":231,"children":232},{"style":52},[233],{"type":18,"value":183},{"type":13,"tag":45,"props":235,"children":236},{"style":52},[237],{"type":18,"value":238}," *const",{"type":13,"tag":45,"props":240,"children":241},{"style":79},[242],{"type":18,"value":208},{"type":13,"tag":45,"props":244,"children":245},{"style":52},[246],{"type":18,"value":203},{"type":13,"tag":45,"props":248,"children":249},{"style":79},[250],{"type":18,"value":251},"DescriptorSetLayoutCreateInfo",{"type":13,"tag":45,"props":253,"children":254},{"style":64},[255],{"type":18,"value":87},{"type":13,"tag":45,"props":257,"children":258},{"class":47,"line":118},[259,264,268,273,277,281,286],{"type":13,"tag":45,"props":260,"children":261},{"style":64},[262],{"type":18,"value":263}," p_support",{"type":13,"tag":45,"props":265,"children":266},{"style":52},[267],{"type":18,"value":183},{"type":13,"tag":45,"props":269,"children":270},{"style":52},[271],{"type":18,"value":272}," *mut",{"type":13,"tag":45,"props":274,"children":275},{"style":79},[276],{"type":18,"value":208},{"type":13,"tag":45,"props":278,"children":279},{"style":52},[280],{"type":18,"value":203},{"type":13,"tag":45,"props":282,"children":283},{"style":79},[284],{"type":18,"value":285},"DescriptorSetLayoutSupport",{"type":13,"tag":45,"props":287,"children":288},{"style":64},[289],{"type":18,"value":87},{"type":13,"tag":45,"props":291,"children":293},{"class":47,"line":292},5,[294],{"type":13,"tag":45,"props":295,"children":296},{"style":64},[297],{"type":18,"value":138},{"type":13,"tag":299,"props":300,"children":301},"ul",{},[302,313,333],{"type":13,"tag":303,"props":304,"children":305},"li",{},[306,311],{"type":13,"tag":41,"props":307,"children":309},{"className":308},[],[310],{"type":18,"value":82},{"type":18,"value":312}," is the logical device that would create the descriptor set\nlayout.",{"type":13,"tag":303,"props":314,"children":315},{},[316,322,324,331],{"type":13,"tag":41,"props":317,"children":319},{"className":318},[],[320],{"type":18,"value":321},"pCreateInfo",{"type":18,"value":323}," is a pointer to a\n",{"type":13,"tag":325,"props":326,"children":328},"a",{"href":327},"/man/VkDescriptorSetLayoutCreateInfo",[329],{"type":18,"value":330},"VkDescriptorSetLayoutCreateInfo",{"type":18,"value":332}," structure specifying the state of\nthe descriptor set layout object.",{"type":13,"tag":303,"props":334,"children":335},{},[336,342,344,350],{"type":13,"tag":41,"props":337,"children":339},{"className":338},[],[340],{"type":18,"value":341},"pSupport",{"type":18,"value":343}," is a pointer to a ",{"type":13,"tag":325,"props":345,"children":347},{"href":346},"/man/VkDescriptorSetLayoutSupport",[348],{"type":18,"value":349},"VkDescriptorSetLayoutSupport",{"type":18,"value":351},"\nstructure, in which information about support for the descriptor set\nlayout object is returned.",{"type":13,"tag":14,"props":353,"children":354},{},[355,357,363,365,371,372,378,380,386,388,392,393,399,401,405,406,411,413,417],{"type":18,"value":356},"Some implementations have limitations on what fits in a descriptor set which\nare not easily expressible in terms of existing limits like\n",{"type":13,"tag":41,"props":358,"children":360},{"className":359},[],[361],{"type":18,"value":362},"maxDescriptorSet",{"type":18,"value":364},"*, for example if all descriptor types share a limited\nspace in memory but each descriptor is a different size or alignment.\nThis command returns information about whether a descriptor set satisfies\nthis limit.\nIf the descriptor set layout satisfies the\n",{"type":13,"tag":325,"props":366,"children":368},{"href":367},"/man/VkPhysicalDeviceMaintenance3Properties",[369],{"type":18,"value":370},"VkPhysicalDeviceMaintenance3Properties",{"type":18,"value":203},{"type":13,"tag":41,"props":373,"children":375},{"className":374},[],[376],{"type":18,"value":377},"maxPerSetDescriptors",{"type":18,"value":379},"\nlimit, this command is guaranteed to return ",{"type":13,"tag":41,"props":381,"children":383},{"className":382},[],[384],{"type":18,"value":385},"VK_TRUE",{"type":18,"value":387}," in\n",{"type":13,"tag":325,"props":389,"children":390},{"href":346},[391],{"type":18,"value":349},{"type":18,"value":203},{"type":13,"tag":41,"props":394,"children":396},{"className":395},[],[397],{"type":18,"value":398},"supported",{"type":18,"value":400},".\nIf the descriptor set layout exceeds the\n",{"type":13,"tag":325,"props":402,"children":403},{"href":367},[404],{"type":18,"value":370},{"type":18,"value":203},{"type":13,"tag":41,"props":407,"children":409},{"className":408},[],[410],{"type":18,"value":377},{"type":18,"value":412},"\nlimit, whether the descriptor set layout is supported is\nimplementation-dependent and ",{"type":13,"tag":21,"props":414,"children":416},{"type":415},"may",[],{"type":18,"value":418}," depend on whether the descriptor sizes and\nalignments cause the layout to exceed an internal limit.",{"type":13,"tag":14,"props":420,"children":421},{},[422,424,430,432,436,438,443],{"type":18,"value":423},"This command does not consider other limits such as\n",{"type":13,"tag":41,"props":425,"children":427},{"className":426},[],[428],{"type":18,"value":429},"maxPerStageDescriptor",{"type":18,"value":431},"*, and so a descriptor set layout that is\nsupported according to this command ",{"type":13,"tag":21,"props":433,"children":435},{"type":434},"must",[],{"type":18,"value":437}," still satisfy the pipeline layout\nlimits such as ",{"type":13,"tag":41,"props":439,"children":441},{"className":440},[],[442],{"type":18,"value":429},{"type":18,"value":444},"* in order to be used in a\npipeline layout.",{"type":13,"tag":446,"props":447,"children":448},"note",{},[449],{"type":13,"tag":14,"props":450,"children":451},{},[452,454,460,462,468,470,473],{"type":18,"value":453},"This is a ",{"type":13,"tag":41,"props":455,"children":457},{"className":456},[],[458],{"type":18,"value":459},"VkDevice",{"type":18,"value":461}," query rather than ",{"type":13,"tag":41,"props":463,"children":465},{"className":464},[],[466],{"type":18,"value":467},"VkPhysicalDevice",{"type":18,"value":469}," because\nthe answer ",{"type":13,"tag":21,"props":471,"children":472},{"type":415},[],{"type":18,"value":474}," depend on enabled features.",{"type":13,"tag":476,"props":477,"children":479},"validity-group",{"name":478},"Valid Usage (Implicit)",[480,507,531],{"type":13,"tag":481,"props":482,"children":484},"validity-field",{"name":483},"VUID-vkGetDescriptorSetLayoutSupport-device-parameter",[485],{"type":13,"tag":14,"props":486,"children":487},{},[488,493,495,498,500,505],{"type":13,"tag":41,"props":489,"children":491},{"className":490},[],[492],{"type":18,"value":82},{"type":18,"value":494}," ",{"type":13,"tag":21,"props":496,"children":497},{"type":434},[],{"type":18,"value":499}," be a valid ",{"type":13,"tag":325,"props":501,"children":503},{"href":502},"/man/VkDevice",[504],{"type":18,"value":459},{"type":18,"value":506}," handle",{"type":13,"tag":481,"props":508,"children":510},{"name":509},"VUID-vkGetDescriptorSetLayoutSupport-pCreateInfo-parameter",[511],{"type":13,"tag":14,"props":512,"children":513},{},[514,519,520,523,525,529],{"type":13,"tag":41,"props":515,"children":517},{"className":516},[],[518],{"type":18,"value":321},{"type":18,"value":494},{"type":13,"tag":21,"props":521,"children":522},{"type":434},[],{"type":18,"value":524}," be a valid pointer to a valid ",{"type":13,"tag":325,"props":526,"children":527},{"href":327},[528],{"type":18,"value":330},{"type":18,"value":530}," structure",{"type":13,"tag":481,"props":532,"children":534},{"name":533},"VUID-vkGetDescriptorSetLayoutSupport-pSupport-parameter",[535],{"type":13,"tag":14,"props":536,"children":537},{},[538,543,544,547,549,553],{"type":13,"tag":41,"props":539,"children":541},{"className":540},[],[542],{"type":18,"value":341},{"type":18,"value":494},{"type":13,"tag":21,"props":545,"children":546},{"type":434},[],{"type":18,"value":548}," be a valid pointer to a ",{"type":13,"tag":325,"props":550,"children":551},{"href":346},[552],{"type":18,"value":349},{"type":18,"value":530},{"type":13,"tag":555,"props":556,"children":557},"style",{},[558],{"type":18,"value":559},"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":38,"searchDepth":70,"depth":70,"links":561},[],"markdown",1725732617270]