[{"data":1,"prerenderedAt":558},["ShallowReactive",2],{"$fYS_ELBcpIF2vmo2665cM23nJDu53XE1rmPAOuuszp24":3},{"title":4,"description":5,"parent":6,"structextends":7,"type":10,"xrefs":11,"body":12,"_type":557,"_id":4},"VkImageStencilUsage2CreateInfoKHR","Specify separate 64-bit usage flags for the stencil aspect of a depth-stencil image","VK_KHR_extended_flags",[8,9],"VkImageCreateInfo","VkPhysicalDeviceImageFormatInfo2","structs",[],{"type":13,"children":14,"toc":555},"root",[15,31,236,299,325,357,423,472,549],{"type":16,"tag":17,"props":18,"children":19},"element","p",{},[20,23,29],{"type":21,"value":22},"text","The ",{"type":16,"tag":24,"props":25,"children":27},"code",{"className":26},[],[28],{"type":21,"value":4},{"type":21,"value":30}," structure is defined as:",{"type":16,"tag":32,"props":33,"children":34},"code-group",{},[35,111],{"type":16,"tag":36,"props":37,"children":43},"pre",{"className":38,"code":39,"filename":40,"language":41,"meta":42,"style":42},"language-c shiki shiki-themes github-light-default github-dark-default","typedef struct VkImageStencilUsage2CreateInfoKHR {\n VkStructureType sType;\n void* pNext;\n VkImageUsageFlags2KHR stencilUsage;\n} VkImageStencilUsage2CreateInfoKHR;\n","C","c","",[44],{"type":16,"tag":24,"props":45,"children":46},{"__ignoreMap":42},[47,70,79,93,102],{"type":16,"tag":48,"props":49,"children":52},"span",{"class":50,"line":51},"line",1,[53,59,64],{"type":16,"tag":48,"props":54,"children":56},{"style":55},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[57],{"type":21,"value":58},"typedef",{"type":16,"tag":48,"props":60,"children":61},{"style":55},[62],{"type":21,"value":63}," struct",{"type":16,"tag":48,"props":65,"children":67},{"style":66},"--shiki-default:#1F2328;--shiki-dark:#E6EDF3",[68],{"type":21,"value":69}," VkImageStencilUsage2CreateInfoKHR {\n",{"type":16,"tag":48,"props":71,"children":73},{"class":50,"line":72},2,[74],{"type":16,"tag":48,"props":75,"children":76},{"style":66},[77],{"type":21,"value":78}," VkStructureType sType;\n",{"type":16,"tag":48,"props":80,"children":82},{"class":50,"line":81},3,[83,88],{"type":16,"tag":48,"props":84,"children":85},{"style":55},[86],{"type":21,"value":87}," void*",{"type":16,"tag":48,"props":89,"children":90},{"style":66},[91],{"type":21,"value":92}," pNext;\n",{"type":16,"tag":48,"props":94,"children":96},{"class":50,"line":95},4,[97],{"type":16,"tag":48,"props":98,"children":99},{"style":66},[100],{"type":21,"value":101}," VkImageUsageFlags2KHR stencilUsage;\n",{"type":16,"tag":48,"props":103,"children":105},{"class":50,"line":104},5,[106],{"type":16,"tag":48,"props":107,"children":108},{"style":66},[109],{"type":21,"value":110},"} VkImageStencilUsage2CreateInfoKHR;\n",{"type":16,"tag":36,"props":112,"children":117},{"className":113,"code":114,"filename":115,"language":116,"meta":42,"style":42},"language-rs shiki shiki-themes github-light-default github-dark-default","pub struct ImageStencilUsage2CreateInfoKHR {\n s_type: vk::StructureType,\n p_next: *mut c_void,\n stencil_usage: vk::ImageUsageFlags2KHR,\n}\n","Rust","rs",[118],{"type":16,"tag":24,"props":119,"children":120},{"__ignoreMap":42},[121,144,177,199,228],{"type":16,"tag":48,"props":122,"children":123},{"class":50,"line":51},[124,129,133,139],{"type":16,"tag":48,"props":125,"children":126},{"style":55},[127],{"type":21,"value":128},"pub",{"type":16,"tag":48,"props":130,"children":131},{"style":55},[132],{"type":21,"value":63},{"type":16,"tag":48,"props":134,"children":136},{"style":135},"--shiki-default:#953800;--shiki-dark:#FFA657",[137],{"type":21,"value":138}," ImageStencilUsage2CreateInfoKHR",{"type":16,"tag":48,"props":140,"children":141},{"style":66},[142],{"type":21,"value":143}," {\n",{"type":16,"tag":48,"props":145,"children":146},{"class":50,"line":72},[147,152,157,162,167,172],{"type":16,"tag":48,"props":148,"children":149},{"style":66},[150],{"type":21,"value":151}," s_type",{"type":16,"tag":48,"props":153,"children":154},{"style":55},[155],{"type":21,"value":156},":",{"type":16,"tag":48,"props":158,"children":159},{"style":135},[160],{"type":21,"value":161}," vk",{"type":16,"tag":48,"props":163,"children":164},{"style":55},[165],{"type":21,"value":166},"::",{"type":16,"tag":48,"props":168,"children":169},{"style":135},[170],{"type":21,"value":171},"StructureType",{"type":16,"tag":48,"props":173,"children":174},{"style":66},[175],{"type":21,"value":176},",\n",{"type":16,"tag":48,"props":178,"children":179},{"class":50,"line":81},[180,185,189,194],{"type":16,"tag":48,"props":181,"children":182},{"style":66},[183],{"type":21,"value":184}," p_next",{"type":16,"tag":48,"props":186,"children":187},{"style":55},[188],{"type":21,"value":156},{"type":16,"tag":48,"props":190,"children":191},{"style":55},[192],{"type":21,"value":193}," *mut",{"type":16,"tag":48,"props":195,"children":196},{"style":66},[197],{"type":21,"value":198}," c_void,\n",{"type":16,"tag":48,"props":200,"children":201},{"class":50,"line":95},[202,207,211,215,219,224],{"type":16,"tag":48,"props":203,"children":204},{"style":66},[205],{"type":21,"value":206}," stencil_usage",{"type":16,"tag":48,"props":208,"children":209},{"style":55},[210],{"type":21,"value":156},{"type":16,"tag":48,"props":212,"children":213},{"style":135},[214],{"type":21,"value":161},{"type":16,"tag":48,"props":216,"children":217},{"style":55},[218],{"type":21,"value":166},{"type":16,"tag":48,"props":220,"children":221},{"style":135},[222],{"type":21,"value":223},"ImageUsageFlags2KHR",{"type":16,"tag":48,"props":225,"children":226},{"style":66},[227],{"type":21,"value":176},{"type":16,"tag":48,"props":229,"children":230},{"class":50,"line":104},[231],{"type":16,"tag":48,"props":232,"children":233},{"style":66},[234],{"type":21,"value":235},"}\n",{"type":16,"tag":237,"props":238,"children":239},"ul",{},[240,261,280],{"type":16,"tag":241,"props":242,"children":243},"li",{},[244,250,252,259],{"type":16,"tag":24,"props":245,"children":247},{"className":246},[],[248],{"type":21,"value":249},"sType",{"type":21,"value":251}," is a ",{"type":16,"tag":253,"props":254,"children":256},"a",{"href":255},"\u002Fman\u002FVkStructureType",[257],{"type":21,"value":258},"VkStructureType",{"type":21,"value":260}," value identifying this structure.",{"type":16,"tag":241,"props":262,"children":263},{},[264,270,272,278],{"type":16,"tag":24,"props":265,"children":267},{"className":266},[],[268],{"type":21,"value":269},"pNext",{"type":21,"value":271}," is ",{"type":16,"tag":24,"props":273,"children":275},{"className":274},[],[276],{"type":21,"value":277},"NULL",{"type":21,"value":279}," or a pointer to a structure extending this\nstructure.",{"type":16,"tag":241,"props":281,"children":282},{},[283,289,291,297],{"type":16,"tag":24,"props":284,"children":286},{"className":285},[],[287],{"type":21,"value":288},"stencilUsage",{"type":21,"value":290}," is a bitmask of ",{"type":16,"tag":253,"props":292,"children":294},{"href":293},"\u002Fman\u002FVkImageUsageFlagBits2KHR",[295],{"type":21,"value":296},"VkImageUsageFlagBits2KHR",{"type":21,"value":298},"\ndescribing the intended usage of the stencil aspect of the image.",{"type":16,"tag":17,"props":300,"children":301},{},[302,304,309,311,316,318,323],{"type":21,"value":303},"If the ",{"type":16,"tag":24,"props":305,"children":307},{"className":306},[],[308],{"type":21,"value":269},{"type":21,"value":310}," chain of ",{"type":16,"tag":253,"props":312,"children":314},{"href":313},"\u002Fman\u002FVkImageCreateInfo",[315],{"type":21,"value":8},{"type":21,"value":317}," includes a\n",{"type":16,"tag":24,"props":319,"children":321},{"className":320},[],[322],{"type":21,"value":4},{"type":21,"value":324}," structure, then that structure\nincludes the usage flags specific to the stencil aspect of the image for an\nimage with a depth-stencil format.",{"type":16,"tag":17,"props":326,"children":327},{},[328,330,335,337,341,343,348,350,355],{"type":21,"value":329},"This structure specifies image usages which only apply to the stencil aspect\nof a depth\u002Fstencil format image.\nWhen this structure is included in the ",{"type":16,"tag":24,"props":331,"children":333},{"className":332},[],[334],{"type":21,"value":269},{"type":21,"value":336}," chain of\n",{"type":16,"tag":253,"props":338,"children":339},{"href":313},[340],{"type":21,"value":8},{"type":21,"value":342},", the stencil aspect of the image ",{"type":16,"tag":344,"props":345,"children":347},"normative",{"type":346},"must",[],{"type":21,"value":349}," only be used\nas specified by ",{"type":16,"tag":24,"props":351,"children":353},{"className":352},[],[354],{"type":21,"value":288},{"type":21,"value":356},".\nUse of other aspects of an image are unaffected by this structure.",{"type":16,"tag":17,"props":358,"children":359},{},[360,362,366,368,373,374,379,381,387,389,394,395,400,402,407,409,414,415,421],{"type":21,"value":361},"This structure ",{"type":16,"tag":344,"props":363,"children":365},{"type":364},"can",[],{"type":21,"value":367}," also be included in the ",{"type":16,"tag":24,"props":369,"children":371},{"className":370},[],[372],{"type":21,"value":269},{"type":21,"value":336},{"type":16,"tag":253,"props":375,"children":377},{"href":376},"\u002Fman\u002FVkPhysicalDeviceImageFormatInfo2",[378],{"type":21,"value":9},{"type":21,"value":380}," to query additional capabilities\nspecific to image creation parameter combinations including a separate set\nof usage flags for the stencil aspect of the image using\n",{"type":16,"tag":253,"props":382,"children":384},{"href":383},"\u002Fman\u002FvkGetPhysicalDeviceImageFormatProperties2",[385],{"type":21,"value":386},"vkGetPhysicalDeviceImageFormatProperties2",{"type":21,"value":388},".\nWhen this structure is not included in the ",{"type":16,"tag":24,"props":390,"children":392},{"className":391},[],[393],{"type":21,"value":269},{"type":21,"value":336},{"type":16,"tag":24,"props":396,"children":398},{"className":397},[],[399],{"type":21,"value":9},{"type":21,"value":401}," then the implicit value of\n",{"type":16,"tag":24,"props":403,"children":405},{"className":404},[],[406],{"type":21,"value":288},{"type":21,"value":408}," matches that of\n",{"type":16,"tag":24,"props":410,"children":412},{"className":411},[],[413],{"type":21,"value":9},{"type":21,"value":166},{"type":16,"tag":24,"props":416,"children":418},{"className":417},[],[419],{"type":21,"value":420},"usage",{"type":21,"value":422},".",{"type":16,"tag":424,"props":425,"children":427},"validity-group",{"name":426},"Valid Usage",[428],{"type":16,"tag":429,"props":430,"children":432},"validity-field",{"name":431},"VUID-VkImageStencilUsage2CreateInfoKHR-stencilUsage-12443",[433],{"type":16,"tag":17,"props":434,"children":435},{},[436,438,443,445,451,453,456,458,464,466],{"type":21,"value":437},"If ",{"type":16,"tag":24,"props":439,"children":441},{"className":440},[],[442],{"type":21,"value":288},{"type":21,"value":444}," includes\n",{"type":16,"tag":24,"props":446,"children":448},{"className":447},[],[449],{"type":21,"value":450},"VK_IMAGE_USAGE_2_TRANSIENT_ATTACHMENT_BIT_KHR",{"type":21,"value":452},", it ",{"type":16,"tag":344,"props":454,"children":455},{"type":346},[],{"type":21,"value":457}," not\ninclude bits other than\n",{"type":16,"tag":24,"props":459,"children":461},{"className":460},[],[462],{"type":21,"value":463},"VK_IMAGE_USAGE_2_DEPTH_STENCIL_ATTACHMENT_BIT_KHR",{"type":21,"value":465}," or\n",{"type":16,"tag":24,"props":467,"children":469},{"className":468},[],[470],{"type":21,"value":471},"VK_IMAGE_USAGE_2_INPUT_ATTACHMENT_BIT_KHR",{"type":16,"tag":424,"props":473,"children":475},{"name":474},"Valid Usage (Implicit)",[476,501,525],{"type":16,"tag":429,"props":477,"children":479},{"name":478},"VUID-VkImageStencilUsage2CreateInfoKHR-sType-sType",[480],{"type":16,"tag":17,"props":481,"children":482},{},[483,488,490,493,495],{"type":16,"tag":24,"props":484,"children":486},{"className":485},[],[487],{"type":21,"value":249},{"type":21,"value":489}," ",{"type":16,"tag":344,"props":491,"children":492},{"type":346},[],{"type":21,"value":494}," be ",{"type":16,"tag":24,"props":496,"children":498},{"className":497},[],[499],{"type":21,"value":500},"VK_STRUCTURE_TYPE_IMAGE_STENCIL_USAGE_2_CREATE_INFO_KHR",{"type":16,"tag":429,"props":502,"children":504},{"name":503},"VUID-VkImageStencilUsage2CreateInfoKHR-stencilUsage-parameter",[505],{"type":16,"tag":17,"props":506,"children":507},{},[508,513,514,517,519,523],{"type":16,"tag":24,"props":509,"children":511},{"className":510},[],[512],{"type":21,"value":288},{"type":21,"value":489},{"type":16,"tag":344,"props":515,"children":516},{"type":346},[],{"type":21,"value":518}," be a valid combination of ",{"type":16,"tag":253,"props":520,"children":521},{"href":293},[522],{"type":21,"value":296},{"type":21,"value":524}," values",{"type":16,"tag":429,"props":526,"children":528},{"name":527},"VUID-VkImageStencilUsage2CreateInfoKHR-stencilUsage-requiredbitmask",[529],{"type":16,"tag":17,"props":530,"children":531},{},[532,537,538,541,543],{"type":16,"tag":24,"props":533,"children":535},{"className":534},[],[536],{"type":21,"value":288},{"type":21,"value":489},{"type":16,"tag":344,"props":539,"children":540},{"type":346},[],{"type":21,"value":542}," not be ",{"type":16,"tag":24,"props":544,"children":546},{"className":545},[],[547],{"type":21,"value":548},"0",{"type":16,"tag":550,"props":551,"children":552},"style",{},[553],{"type":21,"value":554},"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":42,"searchDepth":72,"depth":72,"links":556},[],"markdown",1780828915125]