[{"data":1,"prerenderedAt":516},["ShallowReactive",2],{"Xwlr9iTOGn":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":515,"_id":4},"VkPipelineShaderStageNodeCreateInfoAMDX","Structure specifying the shader name and index with an execution graph","VK_AMDX_shader_enqueue","structs",[],{"type":10,"children":11,"toc":513},"root",[12,28,274,383,410,428,442,507],{"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,136],{"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 VkPipelineShaderStageNodeCreateInfoAMDX {\n VkStructureType sType;\n const void* pNext;\n const char* pName;\n uint32_t index;\n} VkPipelineShaderStageNodeCreateInfoAMDX;\n","C","c","",[41],{"type":13,"tag":21,"props":42,"children":43},{"__ignoreMap":39},[44,67,76,95,113,127],{"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}," VkPipelineShaderStageNodeCreateInfoAMDX {\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}," VkStructureType sType;\n",{"type":13,"tag":45,"props":77,"children":79},{"class":47,"line":78},3,[80,85,90],{"type":13,"tag":45,"props":81,"children":82},{"style":52},[83],{"type":18,"value":84}," const",{"type":13,"tag":45,"props":86,"children":87},{"style":52},[88],{"type":18,"value":89}," void*",{"type":13,"tag":45,"props":91,"children":92},{"style":63},[93],{"type":18,"value":94}," pNext;\n",{"type":13,"tag":45,"props":96,"children":98},{"class":47,"line":97},4,[99,103,108],{"type":13,"tag":45,"props":100,"children":101},{"style":52},[102],{"type":18,"value":84},{"type":13,"tag":45,"props":104,"children":105},{"style":52},[106],{"type":18,"value":107}," char*",{"type":13,"tag":45,"props":109,"children":110},{"style":63},[111],{"type":18,"value":112}," pName;\n",{"type":13,"tag":45,"props":114,"children":116},{"class":47,"line":115},5,[117,122],{"type":13,"tag":45,"props":118,"children":119},{"style":52},[120],{"type":18,"value":121}," uint32_t",{"type":13,"tag":45,"props":123,"children":124},{"style":63},[125],{"type":18,"value":126}," index;\n",{"type":13,"tag":45,"props":128,"children":130},{"class":47,"line":129},6,[131],{"type":13,"tag":45,"props":132,"children":133},{"style":63},[134],{"type":18,"value":135},"} VkPipelineShaderStageNodeCreateInfoAMDX;\n",{"type":13,"tag":33,"props":137,"children":142},{"className":138,"code":139,"filename":140,"language":141,"meta":39,"style":39},"language-rs shiki shiki-themes github-light-default github-dark-default","pub struct PipelineShaderStageNodeCreateInfoAMDX {\n s_type: vk::StructureType,\n p_next: *const c_void,\n p_name: *const c_char,\n index: u32,\n}\n","Rust","rs",[143],{"type":13,"tag":21,"props":144,"children":145},{"__ignoreMap":39},[146,169,202,224,245,266],{"type":13,"tag":45,"props":147,"children":148},{"class":47,"line":48},[149,154,158,164],{"type":13,"tag":45,"props":150,"children":151},{"style":52},[152],{"type":18,"value":153},"pub",{"type":13,"tag":45,"props":155,"children":156},{"style":52},[157],{"type":18,"value":60},{"type":13,"tag":45,"props":159,"children":161},{"style":160},"--shiki-default:#953800;--shiki-dark:#FFA657",[162],{"type":18,"value":163}," PipelineShaderStageNodeCreateInfoAMDX",{"type":13,"tag":45,"props":165,"children":166},{"style":63},[167],{"type":18,"value":168}," {\n",{"type":13,"tag":45,"props":170,"children":171},{"class":47,"line":69},[172,177,182,187,192,197],{"type":13,"tag":45,"props":173,"children":174},{"style":63},[175],{"type":18,"value":176}," s_type",{"type":13,"tag":45,"props":178,"children":179},{"style":52},[180],{"type":18,"value":181},":",{"type":13,"tag":45,"props":183,"children":184},{"style":160},[185],{"type":18,"value":186}," vk",{"type":13,"tag":45,"props":188,"children":189},{"style":52},[190],{"type":18,"value":191},"::",{"type":13,"tag":45,"props":193,"children":194},{"style":160},[195],{"type":18,"value":196},"StructureType",{"type":13,"tag":45,"props":198,"children":199},{"style":63},[200],{"type":18,"value":201},",\n",{"type":13,"tag":45,"props":203,"children":204},{"class":47,"line":78},[205,210,214,219],{"type":13,"tag":45,"props":206,"children":207},{"style":63},[208],{"type":18,"value":209}," p_next",{"type":13,"tag":45,"props":211,"children":212},{"style":52},[213],{"type":18,"value":181},{"type":13,"tag":45,"props":215,"children":216},{"style":52},[217],{"type":18,"value":218}," *const",{"type":13,"tag":45,"props":220,"children":221},{"style":63},[222],{"type":18,"value":223}," c_void,\n",{"type":13,"tag":45,"props":225,"children":226},{"class":47,"line":97},[227,232,236,240],{"type":13,"tag":45,"props":228,"children":229},{"style":63},[230],{"type":18,"value":231}," p_name",{"type":13,"tag":45,"props":233,"children":234},{"style":52},[235],{"type":18,"value":181},{"type":13,"tag":45,"props":237,"children":238},{"style":52},[239],{"type":18,"value":218},{"type":13,"tag":45,"props":241,"children":242},{"style":63},[243],{"type":18,"value":244}," c_char,\n",{"type":13,"tag":45,"props":246,"children":247},{"class":47,"line":115},[248,253,257,262],{"type":13,"tag":45,"props":249,"children":250},{"style":63},[251],{"type":18,"value":252}," index",{"type":13,"tag":45,"props":254,"children":255},{"style":52},[256],{"type":18,"value":181},{"type":13,"tag":45,"props":258,"children":259},{"style":160},[260],{"type":18,"value":261}," u32",{"type":13,"tag":45,"props":263,"children":264},{"style":63},[265],{"type":18,"value":201},{"type":13,"tag":45,"props":267,"children":268},{"class":47,"line":129},[269],{"type":13,"tag":45,"props":270,"children":271},{"style":63},[272],{"type":18,"value":273},"}\n",{"type":13,"tag":275,"props":276,"children":277},"ul",{},[278,299,318,342],{"type":13,"tag":279,"props":280,"children":281},"li",{},[282,288,290,297],{"type":13,"tag":21,"props":283,"children":285},{"className":284},[],[286],{"type":18,"value":287},"sType",{"type":18,"value":289}," is a ",{"type":13,"tag":291,"props":292,"children":294},"a",{"href":293},"/man/VkStructureType",[295],{"type":18,"value":296},"VkStructureType",{"type":18,"value":298}," value identifying this structure.",{"type":13,"tag":279,"props":300,"children":301},{},[302,308,310,316],{"type":13,"tag":21,"props":303,"children":305},{"className":304},[],[306],{"type":18,"value":307},"pNext",{"type":18,"value":309}," is ",{"type":13,"tag":21,"props":311,"children":313},{"className":312},[],[314],{"type":18,"value":315},"NULL",{"type":18,"value":317}," or a pointer to a structure extending this\nstructure.",{"type":13,"tag":279,"props":319,"children":320},{},[321,327,329,334,335,340],{"type":13,"tag":21,"props":322,"children":324},{"className":323},[],[325],{"type":18,"value":326},"pName",{"type":18,"value":328}," is the shader name to use when creating a node in an\nexecution graph.\nIf ",{"type":13,"tag":21,"props":330,"children":332},{"className":331},[],[333],{"type":18,"value":326},{"type":18,"value":309},{"type":13,"tag":21,"props":336,"children":338},{"className":337},[],[339],{"type":18,"value":315},{"type":18,"value":341},", the name of the entry point specified in\nSPIR-V is used as the shader name.",{"type":13,"tag":279,"props":343,"children":344},{},[345,351,353,358,359,365,367,373,375,381],{"type":13,"tag":21,"props":346,"children":348},{"className":347},[],[349],{"type":18,"value":350},"index",{"type":18,"value":352}," is the shader index to use when creating a node in an\nexecution graph.\nIf ",{"type":13,"tag":21,"props":354,"children":356},{"className":355},[],[357],{"type":18,"value":350},{"type":18,"value":309},{"type":13,"tag":21,"props":360,"children":362},{"className":361},[],[363],{"type":18,"value":364},"VK_SHADER_INDEX_UNUSED_AMDX",{"type":18,"value":366}," then the original\nindex is used, either as specified by the ",{"type":13,"tag":21,"props":368,"children":370},{"className":369},[],[371],{"type":18,"value":372},"ShaderIndexAMDX",{"type":18,"value":374}," execution\nmode, or ",{"type":13,"tag":21,"props":376,"children":378},{"className":377},[],[379],{"type":18,"value":380},"0",{"type":18,"value":382}," if that too is not specified.",{"type":13,"tag":14,"props":384,"children":385},{},[386,388,393,395,401,403,408],{"type":18,"value":387},"When included in the ",{"type":13,"tag":21,"props":389,"children":391},{"className":390},[],[392],{"type":18,"value":307},{"type":18,"value":394}," chain of a\n",{"type":13,"tag":291,"props":396,"children":398},{"href":397},"/man/VkPipelineShaderStageCreateInfo",[399],{"type":18,"value":400},"VkPipelineShaderStageCreateInfo",{"type":18,"value":402}," structure, this structure specifies\nthe shader name and shader index of a node when creating an execution graph\npipeline.\nIf this structure is omitted, the shader name is set to the name of the\nentry point in SPIR-V and the shader index is set to ",{"type":13,"tag":21,"props":404,"children":406},{"className":405},[],[407],{"type":18,"value":380},{"type":18,"value":409},".",{"type":13,"tag":14,"props":411,"children":412},{},[413,415,420,422,426],{"type":18,"value":414},"When dispatching a node from another shader, the name is fixed at pipeline\ncreation, but the index ",{"type":13,"tag":416,"props":417,"children":419},"normative",{"type":418},"can",[],{"type":18,"value":421}," be set dynamically.\nBy associating multiple shaders with the same name but different indexes,\napplications can dynamically select different nodes to execute.\nApplications ",{"type":13,"tag":416,"props":423,"children":425},{"type":424},"must",[],{"type":18,"value":427}," ensure each node has a unique name and index.",{"type":13,"tag":429,"props":430,"children":431},"note",{},[432],{"type":13,"tag":14,"props":433,"children":434},{},[435,437,440],{"type":18,"value":436},"Shaders with the same name ",{"type":13,"tag":416,"props":438,"children":439},{"type":424},[],{"type":18,"value":441}," be of the same type - e.g. a compute and\ngraphics shader, or even two compute shaders where one is coalescing and the\nother is not, cannot share the same name.",{"type":13,"tag":443,"props":444,"children":446},"validity-group",{"name":445},"Valid Usage (Implicit)",[447,473],{"type":13,"tag":448,"props":449,"children":451},"validity-field",{"name":450},"VUID-VkPipelineShaderStageNodeCreateInfoAMDX-sType-sType",[452],{"type":13,"tag":14,"props":453,"children":454},{},[455,460,462,465,467],{"type":13,"tag":21,"props":456,"children":458},{"className":457},[],[459],{"type":18,"value":287},{"type":18,"value":461}," ",{"type":13,"tag":416,"props":463,"children":464},{"type":424},[],{"type":18,"value":466}," be ",{"type":13,"tag":21,"props":468,"children":470},{"className":469},[],[471],{"type":18,"value":472},"VK_STRUCTURE_TYPE_PIPELINE_SHADER_STAGE_NODE_CREATE_INFO_AMDX",{"type":13,"tag":448,"props":474,"children":476},{"name":475},"VUID-VkPipelineShaderStageNodeCreateInfoAMDX-pName-parameter",[477],{"type":13,"tag":14,"props":478,"children":479},{},[480,482,487,489,494,496,501,502,505],{"type":18,"value":481},"If ",{"type":13,"tag":21,"props":483,"children":485},{"className":484},[],[486],{"type":18,"value":326},{"type":18,"value":488}," is not ",{"type":13,"tag":21,"props":490,"children":492},{"className":491},[],[493],{"type":18,"value":315},{"type":18,"value":495},", ",{"type":13,"tag":21,"props":497,"children":499},{"className":498},[],[500],{"type":18,"value":326},{"type":18,"value":461},{"type":13,"tag":416,"props":503,"children":504},{"type":424},[],{"type":18,"value":506}," be a null-terminated UTF-8 string",{"type":13,"tag":508,"props":509,"children":510},"style",{},[511],{"type":18,"value":512},"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":514},[],"markdown",1729612473938]