[{"data":1,"prerenderedAt":432},["ShallowReactive",2],{"kqMciuh8xV":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":431,"_id":4},"vkCmdPushConstants2","Update the values of push constants","VK_VERSION_1_4","protos",[],{"type":10,"children":11,"toc":429},"root",[12,20,216,251,377,423],{"type":13,"tag":14,"props":15,"children":16},"element","p",{},[17],{"type":18,"value":19},"text","Alternatively, to update push constants, call:",{"type":13,"tag":21,"props":22,"children":23},"code-group",{},[24,110],{"type":13,"tag":25,"props":26,"children":32},"pre",{"className":27,"code":28,"filename":29,"language":30,"meta":31,"style":31},"language-c shiki shiki-themes github-light-default github-dark-default","void vkCmdPushConstants2KHR(\n VkCommandBuffer commandBuffer,\n const VkPushConstantsInfo* pPushConstantsInfo);\n","C","c","",[33],{"type":13,"tag":34,"props":35,"children":36},"code",{"__ignoreMap":31},[37,61,81],{"type":13,"tag":38,"props":39,"children":42},"span",{"class":40,"line":41},"line",1,[43,49,55],{"type":13,"tag":38,"props":44,"children":46},{"style":45},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[47],{"type":18,"value":48},"void",{"type":13,"tag":38,"props":50,"children":52},{"style":51},"--shiki-default:#8250DF;--shiki-dark:#D2A8FF",[53],{"type":18,"value":54}," vkCmdPushConstants2KHR",{"type":13,"tag":38,"props":56,"children":58},{"style":57},"--shiki-default:#1F2328;--shiki-dark:#E6EDF3",[59],{"type":18,"value":60},"(\n",{"type":13,"tag":38,"props":62,"children":64},{"class":40,"line":63},2,[65,70,76],{"type":13,"tag":38,"props":66,"children":67},{"style":57},[68],{"type":18,"value":69}," VkCommandBuffer ",{"type":13,"tag":38,"props":71,"children":73},{"style":72},"--shiki-default:#953800;--shiki-dark:#FFA657",[74],{"type":18,"value":75},"commandBuffer",{"type":13,"tag":38,"props":77,"children":78},{"style":57},[79],{"type":18,"value":80},",\n",{"type":13,"tag":38,"props":82,"children":84},{"class":40,"line":83},3,[85,90,95,100,105],{"type":13,"tag":38,"props":86,"children":87},{"style":45},[88],{"type":18,"value":89}," const",{"type":13,"tag":38,"props":91,"children":92},{"style":57},[93],{"type":18,"value":94}," VkPushConstantsInfo",{"type":13,"tag":38,"props":96,"children":97},{"style":45},[98],{"type":18,"value":99},"*",{"type":13,"tag":38,"props":101,"children":102},{"style":72},[103],{"type":18,"value":104}," pPushConstantsInfo",{"type":13,"tag":38,"props":106,"children":107},{"style":57},[108],{"type":18,"value":109},");\n",{"type":13,"tag":25,"props":111,"children":116},{"className":112,"code":113,"filename":114,"language":115,"meta":31,"style":31},"language-rs shiki shiki-themes github-light-default github-dark-default","pub fn cmd_push_constants2_khr(\n command_buffer: vk::CommandBuffer,\n p_push_constants_info: *const vk::PushConstantsInfo,\n);\n","Rust","rs",[117],{"type":13,"tag":34,"props":118,"children":119},{"__ignoreMap":31},[120,142,174,208],{"type":13,"tag":38,"props":121,"children":122},{"class":40,"line":41},[123,128,133,138],{"type":13,"tag":38,"props":124,"children":125},{"style":45},[126],{"type":18,"value":127},"pub",{"type":13,"tag":38,"props":129,"children":130},{"style":45},[131],{"type":18,"value":132}," fn",{"type":13,"tag":38,"props":134,"children":135},{"style":51},[136],{"type":18,"value":137}," cmd_push_constants2_khr",{"type":13,"tag":38,"props":139,"children":140},{"style":57},[141],{"type":18,"value":60},{"type":13,"tag":38,"props":143,"children":144},{"class":40,"line":63},[145,150,155,160,165,170],{"type":13,"tag":38,"props":146,"children":147},{"style":57},[148],{"type":18,"value":149}," command_buffer",{"type":13,"tag":38,"props":151,"children":152},{"style":45},[153],{"type":18,"value":154},":",{"type":13,"tag":38,"props":156,"children":157},{"style":72},[158],{"type":18,"value":159}," vk",{"type":13,"tag":38,"props":161,"children":162},{"style":45},[163],{"type":18,"value":164},"::",{"type":13,"tag":38,"props":166,"children":167},{"style":72},[168],{"type":18,"value":169},"CommandBuffer",{"type":13,"tag":38,"props":171,"children":172},{"style":57},[173],{"type":18,"value":80},{"type":13,"tag":38,"props":175,"children":176},{"class":40,"line":83},[177,182,186,191,195,199,204],{"type":13,"tag":38,"props":178,"children":179},{"style":57},[180],{"type":18,"value":181}," p_push_constants_info",{"type":13,"tag":38,"props":183,"children":184},{"style":45},[185],{"type":18,"value":154},{"type":13,"tag":38,"props":187,"children":188},{"style":45},[189],{"type":18,"value":190}," *const",{"type":13,"tag":38,"props":192,"children":193},{"style":72},[194],{"type":18,"value":159},{"type":13,"tag":38,"props":196,"children":197},{"style":45},[198],{"type":18,"value":164},{"type":13,"tag":38,"props":200,"children":201},{"style":72},[202],{"type":18,"value":203},"PushConstantsInfo",{"type":13,"tag":38,"props":205,"children":206},{"style":57},[207],{"type":18,"value":80},{"type":13,"tag":38,"props":209,"children":211},{"class":40,"line":210},4,[212],{"type":13,"tag":38,"props":213,"children":214},{"style":57},[215],{"type":18,"value":109},{"type":13,"tag":217,"props":218,"children":219},"ul",{},[220,231],{"type":13,"tag":221,"props":222,"children":223},"li",{},[224,229],{"type":13,"tag":34,"props":225,"children":227},{"className":226},[],[228],{"type":18,"value":75},{"type":18,"value":230}," is the command buffer in which the push constant\nupdate will be recorded.",{"type":13,"tag":221,"props":232,"children":233},{},[234,240,242,249],{"type":13,"tag":34,"props":235,"children":237},{"className":236},[],[238],{"type":18,"value":239},"pPushConstantsInfo",{"type":18,"value":241}," is a pointer to a ",{"type":13,"tag":243,"props":244,"children":246},"a",{"href":245},"/man/VkPushConstantsInfo",[247],{"type":18,"value":248},"VkPushConstantsInfo",{"type":18,"value":250},"\nstructure.",{"type":13,"tag":252,"props":253,"children":255},"validity-group",{"name":254},"Valid Usage (Implicit)",[256,286,310,334,363],{"type":13,"tag":257,"props":258,"children":260},"validity-field",{"name":259},"VUID-vkCmdPushConstants2-commandBuffer-parameter",[261],{"type":13,"tag":14,"props":262,"children":263},{},[264,269,271,276,278,284],{"type":13,"tag":34,"props":265,"children":267},{"className":266},[],[268],{"type":18,"value":75},{"type":18,"value":270}," ",{"type":13,"tag":272,"props":273,"children":275},"normative",{"type":274},"must",[],{"type":18,"value":277}," be a valid ",{"type":13,"tag":243,"props":279,"children":281},{"href":280},"/man/VkCommandBuffer",[282],{"type":18,"value":283},"VkCommandBuffer",{"type":18,"value":285}," handle",{"type":13,"tag":257,"props":287,"children":289},{"name":288},"VUID-vkCmdPushConstants2-pPushConstantsInfo-parameter",[290],{"type":13,"tag":14,"props":291,"children":292},{},[293,298,299,302,304,308],{"type":13,"tag":34,"props":294,"children":296},{"className":295},[],[297],{"type":18,"value":239},{"type":18,"value":270},{"type":13,"tag":272,"props":300,"children":301},{"type":274},[],{"type":18,"value":303}," be a valid pointer to a valid ",{"type":13,"tag":243,"props":305,"children":306},{"href":245},[307],{"type":18,"value":248},{"type":18,"value":309}," structure",{"type":13,"tag":257,"props":311,"children":313},{"name":312},"VUID-vkCmdPushConstants2-commandBuffer-recording",[314],{"type":13,"tag":14,"props":315,"children":316},{},[317,322,323,326,328],{"type":13,"tag":34,"props":318,"children":320},{"className":319},[],[321],{"type":18,"value":75},{"type":18,"value":270},{"type":13,"tag":272,"props":324,"children":325},{"type":274},[],{"type":18,"value":327}," be in the ",{"type":13,"tag":243,"props":329,"children":331},{"href":330},"/chapters/commandbuffers#commandbuffers-lifecycle",[332],{"type":18,"value":333},"recording state",{"type":13,"tag":257,"props":335,"children":337},{"name":336},"VUID-vkCmdPushConstants2-commandBuffer-cmdpool",[338],{"type":13,"tag":14,"props":339,"children":340},{},[341,343,349,351,356,358,361],{"type":18,"value":342},"The ",{"type":13,"tag":34,"props":344,"children":346},{"className":345},[],[347],{"type":18,"value":348},"VkCommandPool",{"type":18,"value":350}," that ",{"type":13,"tag":34,"props":352,"children":354},{"className":353},[],[355],{"type":18,"value":75},{"type":18,"value":357}," was allocated from ",{"type":13,"tag":272,"props":359,"children":360},{"type":274},[],{"type":18,"value":362}," support graphics, or compute operations",{"type":13,"tag":257,"props":364,"children":366},{"name":365},"VUID-vkCmdPushConstants2-videocoding",[367],{"type":13,"tag":14,"props":368,"children":369},{},[370,372,375],{"type":18,"value":371},"This command ",{"type":13,"tag":272,"props":373,"children":374},{"type":274},[],{"type":18,"value":376}," only be called outside of a video coding scope",{"type":13,"tag":378,"props":379,"children":381},"validity-box",{"name":380},"Host Synchronization",[382],{"type":13,"tag":217,"props":383,"children":384},{},[385,401],{"type":13,"tag":221,"props":386,"children":387},{},[388,390,395,396,399],{"type":18,"value":389},"Host access to ",{"type":13,"tag":34,"props":391,"children":393},{"className":392},[],[394],{"type":18,"value":75},{"type":18,"value":270},{"type":13,"tag":272,"props":397,"children":398},{"type":274},[],{"type":18,"value":400}," be externally synchronized",{"type":13,"tag":221,"props":402,"children":403},{},[404,406,411,412,417,418,421],{"type":18,"value":405},"Host access to the ",{"type":13,"tag":34,"props":407,"children":409},{"className":408},[],[410],{"type":18,"value":348},{"type":18,"value":350},{"type":13,"tag":34,"props":413,"children":415},{"className":414},[],[416],{"type":18,"value":75},{"type":18,"value":357},{"type":13,"tag":272,"props":419,"children":420},{"type":274},[],{"type":18,"value":422}," be externally synchronized\n::",{"type":13,"tag":424,"props":425,"children":426},"style",{},[427],{"type":18,"value":428},"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":31,"searchDepth":63,"depth":63,"links":430},[],"markdown",1744876589794]