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