[{"data":1,"prerenderedAt":485},["ShallowReactive",2],{"v0V1CmsFjc":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":484,"_id":4},"VkSubpassShadingPipelineCreateInfoHUAWEI","Structure specifying parameters of a newly created subpass shading pipeline","VK_HUAWEI_subpass_shading","structs",[],{"type":10,"children":11,"toc":482},"root",[12,60,72,312,389,422,476],{"type":13,"tag":14,"props":15,"children":16},"element","p",{},[17,20,25,27,34,36,41,43,50,52,58],{"type":18,"value":19},"text","A subpass shading pipeline is a compute pipeline which ",{"type":13,"tag":21,"props":22,"children":24},"normative",{"type":23},"must",[],{"type":18,"value":26}," be called only\nin a subpass of a render pass with work dimensions specified by render area\nsize.\nThe subpass shading pipeline shader is a compute shader allowed to access\ninput attachments specified in the calling subpass.\nTo create a subpass shading pipeline, call ",{"type":13,"tag":28,"props":29,"children":31},"a",{"href":30},"/man/vkCreateComputePipelines",[32],{"type":18,"value":33},"vkCreateComputePipelines",{"type":18,"value":35},"\nwith ",{"type":13,"tag":28,"props":37,"children":39},{"href":38},"/man/VkSubpassShadingPipelineCreateInfoHUAWEI",[40],{"type":18,"value":4},{"type":18,"value":42}," in the ",{"type":13,"tag":44,"props":45,"children":47},"code",{"className":46},[],[48],{"type":18,"value":49},"pNext",{"type":18,"value":51}," chain\nof ",{"type":13,"tag":28,"props":53,"children":55},{"href":54},"/man/VkComputePipelineCreateInfo",[56],{"type":18,"value":57},"VkComputePipelineCreateInfo",{"type":18,"value":59},".",{"type":13,"tag":14,"props":61,"children":62},{},[63,65,70],{"type":18,"value":64},"The ",{"type":13,"tag":44,"props":66,"children":68},{"className":67},[],[69],{"type":18,"value":4},{"type":18,"value":71}," structure is defined as:",{"type":13,"tag":73,"props":74,"children":75},"code-group",{},[76,166],{"type":13,"tag":77,"props":78,"children":84},"pre",{"className":79,"code":80,"filename":81,"language":82,"meta":83,"style":83},"language-c shiki shiki-themes github-light-default github-dark-default","typedef struct VkSubpassShadingPipelineCreateInfoHUAWEI {\n VkStructureType sType;\n void* pNext;\n VkRenderPass renderPass;\n uint32_t subpass;\n} VkSubpassShadingPipelineCreateInfoHUAWEI;\n","C","c","",[85],{"type":13,"tag":44,"props":86,"children":87},{"__ignoreMap":83},[88,111,120,134,143,157],{"type":13,"tag":89,"props":90,"children":93},"span",{"class":91,"line":92},"line",1,[94,100,105],{"type":13,"tag":89,"props":95,"children":97},{"style":96},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[98],{"type":18,"value":99},"typedef",{"type":13,"tag":89,"props":101,"children":102},{"style":96},[103],{"type":18,"value":104}," struct",{"type":13,"tag":89,"props":106,"children":108},{"style":107},"--shiki-default:#1F2328;--shiki-dark:#E6EDF3",[109],{"type":18,"value":110}," VkSubpassShadingPipelineCreateInfoHUAWEI {\n",{"type":13,"tag":89,"props":112,"children":114},{"class":91,"line":113},2,[115],{"type":13,"tag":89,"props":116,"children":117},{"style":107},[118],{"type":18,"value":119}," VkStructureType sType;\n",{"type":13,"tag":89,"props":121,"children":123},{"class":91,"line":122},3,[124,129],{"type":13,"tag":89,"props":125,"children":126},{"style":96},[127],{"type":18,"value":128}," void*",{"type":13,"tag":89,"props":130,"children":131},{"style":107},[132],{"type":18,"value":133}," pNext;\n",{"type":13,"tag":89,"props":135,"children":137},{"class":91,"line":136},4,[138],{"type":13,"tag":89,"props":139,"children":140},{"style":107},[141],{"type":18,"value":142}," VkRenderPass renderPass;\n",{"type":13,"tag":89,"props":144,"children":146},{"class":91,"line":145},5,[147,152],{"type":13,"tag":89,"props":148,"children":149},{"style":96},[150],{"type":18,"value":151}," uint32_t",{"type":13,"tag":89,"props":153,"children":154},{"style":107},[155],{"type":18,"value":156}," subpass;\n",{"type":13,"tag":89,"props":158,"children":160},{"class":91,"line":159},6,[161],{"type":13,"tag":89,"props":162,"children":163},{"style":107},[164],{"type":18,"value":165},"} VkSubpassShadingPipelineCreateInfoHUAWEI;\n",{"type":13,"tag":77,"props":167,"children":172},{"className":168,"code":169,"filename":170,"language":171,"meta":83,"style":83},"language-rs shiki shiki-themes github-light-default github-dark-default","pub struct SubpassShadingPipelineCreateInfoHUAWEI {\n s_type: vk::StructureType,\n p_next: *mut c_void,\n render_pass: vk::RenderPass,\n subpass: u32,\n}\n","Rust","rs",[173],{"type":13,"tag":44,"props":174,"children":175},{"__ignoreMap":83},[176,199,232,254,283,304],{"type":13,"tag":89,"props":177,"children":178},{"class":91,"line":92},[179,184,188,194],{"type":13,"tag":89,"props":180,"children":181},{"style":96},[182],{"type":18,"value":183},"pub",{"type":13,"tag":89,"props":185,"children":186},{"style":96},[187],{"type":18,"value":104},{"type":13,"tag":89,"props":189,"children":191},{"style":190},"--shiki-default:#953800;--shiki-dark:#FFA657",[192],{"type":18,"value":193}," SubpassShadingPipelineCreateInfoHUAWEI",{"type":13,"tag":89,"props":195,"children":196},{"style":107},[197],{"type":18,"value":198}," {\n",{"type":13,"tag":89,"props":200,"children":201},{"class":91,"line":113},[202,207,212,217,222,227],{"type":13,"tag":89,"props":203,"children":204},{"style":107},[205],{"type":18,"value":206}," s_type",{"type":13,"tag":89,"props":208,"children":209},{"style":96},[210],{"type":18,"value":211},":",{"type":13,"tag":89,"props":213,"children":214},{"style":190},[215],{"type":18,"value":216}," vk",{"type":13,"tag":89,"props":218,"children":219},{"style":96},[220],{"type":18,"value":221},"::",{"type":13,"tag":89,"props":223,"children":224},{"style":190},[225],{"type":18,"value":226},"StructureType",{"type":13,"tag":89,"props":228,"children":229},{"style":107},[230],{"type":18,"value":231},",\n",{"type":13,"tag":89,"props":233,"children":234},{"class":91,"line":122},[235,240,244,249],{"type":13,"tag":89,"props":236,"children":237},{"style":107},[238],{"type":18,"value":239}," p_next",{"type":13,"tag":89,"props":241,"children":242},{"style":96},[243],{"type":18,"value":211},{"type":13,"tag":89,"props":245,"children":246},{"style":96},[247],{"type":18,"value":248}," *mut",{"type":13,"tag":89,"props":250,"children":251},{"style":107},[252],{"type":18,"value":253}," c_void,\n",{"type":13,"tag":89,"props":255,"children":256},{"class":91,"line":136},[257,262,266,270,274,279],{"type":13,"tag":89,"props":258,"children":259},{"style":107},[260],{"type":18,"value":261}," render_pass",{"type":13,"tag":89,"props":263,"children":264},{"style":96},[265],{"type":18,"value":211},{"type":13,"tag":89,"props":267,"children":268},{"style":190},[269],{"type":18,"value":216},{"type":13,"tag":89,"props":271,"children":272},{"style":96},[273],{"type":18,"value":221},{"type":13,"tag":89,"props":275,"children":276},{"style":190},[277],{"type":18,"value":278},"RenderPass",{"type":13,"tag":89,"props":280,"children":281},{"style":107},[282],{"type":18,"value":231},{"type":13,"tag":89,"props":284,"children":285},{"class":91,"line":145},[286,291,295,300],{"type":13,"tag":89,"props":287,"children":288},{"style":107},[289],{"type":18,"value":290}," subpass",{"type":13,"tag":89,"props":292,"children":293},{"style":96},[294],{"type":18,"value":211},{"type":13,"tag":89,"props":296,"children":297},{"style":190},[298],{"type":18,"value":299}," u32",{"type":13,"tag":89,"props":301,"children":302},{"style":107},[303],{"type":18,"value":231},{"type":13,"tag":89,"props":305,"children":306},{"class":91,"line":159},[307],{"type":13,"tag":89,"props":308,"children":309},{"style":107},[310],{"type":18,"value":311},"}\n",{"type":13,"tag":313,"props":314,"children":315},"ul",{},[316,336,354,378],{"type":13,"tag":317,"props":318,"children":319},"li",{},[320,326,328,334],{"type":13,"tag":44,"props":321,"children":323},{"className":322},[],[324],{"type":18,"value":325},"sType",{"type":18,"value":327}," is a ",{"type":13,"tag":28,"props":329,"children":331},{"href":330},"/man/VkStructureType",[332],{"type":18,"value":333},"VkStructureType",{"type":18,"value":335}," value identifying this structure.",{"type":13,"tag":317,"props":337,"children":338},{},[339,344,346,352],{"type":13,"tag":44,"props":340,"children":342},{"className":341},[],[343],{"type":18,"value":49},{"type":18,"value":345}," is ",{"type":13,"tag":44,"props":347,"children":349},{"className":348},[],[350],{"type":18,"value":351},"NULL",{"type":18,"value":353}," or a pointer to a structure extending this\nstructure.",{"type":13,"tag":317,"props":355,"children":356},{},[357,363,365,368,370,376],{"type":13,"tag":44,"props":358,"children":360},{"className":359},[],[361],{"type":18,"value":362},"renderPass",{"type":18,"value":364}," is a handle to a render pass object describing the\nenvironment in which the pipeline will be used.\nThe pipeline ",{"type":13,"tag":21,"props":366,"children":367},{"type":23},[],{"type":18,"value":369}," only be used with a render pass instance compatible\nwith the one provided.\nSee ",{"type":13,"tag":28,"props":371,"children":373},{"href":372},"/chapters/renderpass#renderpass-compatibility",[374],{"type":18,"value":375},"Render Pass Compatibility",{"type":18,"value":377}," for more\ninformation.",{"type":13,"tag":317,"props":379,"children":380},{},[381,387],{"type":13,"tag":44,"props":382,"children":384},{"className":383},[],[385],{"type":18,"value":386},"subpass",{"type":18,"value":388}," is the index of the subpass in the render pass where this\npipeline will be used.",{"type":13,"tag":390,"props":391,"children":393},"validity-group",{"name":392},"Valid Usage",[394],{"type":13,"tag":395,"props":396,"children":398},"validity-field",{"name":397},"VUID-VkSubpassShadingPipelineCreateInfoHUAWEI-subpass-04946",[399],{"type":13,"tag":14,"props":400,"children":401},{},[402,407,409,412,414,420],{"type":13,"tag":44,"props":403,"children":405},{"className":404},[],[406],{"type":18,"value":386},{"type":18,"value":408}," ",{"type":13,"tag":21,"props":410,"children":411},{"type":23},[],{"type":18,"value":413}," be created with\n",{"type":13,"tag":44,"props":415,"children":417},{"className":416},[],[418],{"type":18,"value":419},"VK_PIPELINE_BIND_POINT_SUBPASS_SHADING_HUAWEI",{"type":18,"value":421}," bind point",{"type":13,"tag":390,"props":423,"children":425},{"name":424},"Valid Usage (Implicit)",[426,450],{"type":13,"tag":395,"props":427,"children":429},{"name":428},"VUID-VkSubpassShadingPipelineCreateInfoHUAWEI-sType-sType",[430],{"type":13,"tag":14,"props":431,"children":432},{},[433,438,439,442,444],{"type":13,"tag":44,"props":434,"children":436},{"className":435},[],[437],{"type":18,"value":325},{"type":18,"value":408},{"type":13,"tag":21,"props":440,"children":441},{"type":23},[],{"type":18,"value":443}," be ",{"type":13,"tag":44,"props":445,"children":447},{"className":446},[],[448],{"type":18,"value":449},"VK_STRUCTURE_TYPE_SUBPASS_SHADING_PIPELINE_CREATE_INFO_HUAWEI",{"type":13,"tag":395,"props":451,"children":453},{"name":452},"VUID-VkSubpassShadingPipelineCreateInfoHUAWEI-renderPass-parameter",[454],{"type":13,"tag":14,"props":455,"children":456},{},[457,462,463,466,468,474],{"type":13,"tag":44,"props":458,"children":460},{"className":459},[],[461],{"type":18,"value":362},{"type":18,"value":408},{"type":13,"tag":21,"props":464,"children":465},{"type":23},[],{"type":18,"value":467}," be a valid ",{"type":13,"tag":28,"props":469,"children":471},{"href":470},"/man/VkRenderPass",[472],{"type":18,"value":473},"VkRenderPass",{"type":18,"value":475}," handle",{"type":13,"tag":477,"props":478,"children":479},"style",{},[480],{"type":18,"value":481},"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":83,"searchDepth":113,"depth":113,"links":483},[],"markdown",1725732588845]