[{"data":1,"prerenderedAt":628},["ShallowReactive",2],{"bOUoPJgDSR":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":627,"_id":4},"vkCmdSetLineRasterizationModeEXT","Specify the line rasterization mode dynamically for a command buffer","VK_EXT_extended_dynamic_state3, VK_EXT_shader_object",[8,9],"primary","secondary","both",[12],"graphics",[14],"state","protos",[],{"type":18,"children":19,"toc":625},"root",[20,46,225,257,314,450,573,619],{"type":21,"tag":22,"props":23,"children":24},"element","p",{},[25,28,35,37,44],{"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\n",{"type":21,"tag":38,"props":39,"children":41},"code",{"className":40},[],[42],{"type":26,"value":43},"lineRasterizationMode",{"type":26,"value":45}," state, call:",{"type":21,"tag":47,"props":48,"children":49},"code-group",{},[50,124],{"type":21,"tag":51,"props":52,"children":58},"pre",{"className":53,"code":54,"filename":55,"language":56,"meta":57,"style":57},"language-c shiki shiki-themes github-light-default github-dark-default","void vkCmdSetLineRasterizationModeEXT(\n VkCommandBuffer commandBuffer,\n VkLineRasterizationModeEXT lineRasterizationMode);\n","C","c","",[59],{"type":21,"tag":38,"props":60,"children":61},{"__ignoreMap":57},[62,86,106],{"type":21,"tag":63,"props":64,"children":67},"span",{"class":65,"line":66},"line",1,[68,74,80],{"type":21,"tag":63,"props":69,"children":71},{"style":70},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[72],{"type":26,"value":73},"void",{"type":21,"tag":63,"props":75,"children":77},{"style":76},"--shiki-default:#8250DF;--shiki-dark:#D2A8FF",[78],{"type":26,"value":79}," vkCmdSetLineRasterizationModeEXT",{"type":21,"tag":63,"props":81,"children":83},{"style":82},"--shiki-default:#1F2328;--shiki-dark:#E6EDF3",[84],{"type":26,"value":85},"(\n",{"type":21,"tag":63,"props":87,"children":89},{"class":65,"line":88},2,[90,95,101],{"type":21,"tag":63,"props":91,"children":92},{"style":82},[93],{"type":26,"value":94}," VkCommandBuffer ",{"type":21,"tag":63,"props":96,"children":98},{"style":97},"--shiki-default:#953800;--shiki-dark:#FFA657",[99],{"type":26,"value":100},"commandBuffer",{"type":21,"tag":63,"props":102,"children":103},{"style":82},[104],{"type":26,"value":105},",\n",{"type":21,"tag":63,"props":107,"children":109},{"class":65,"line":108},3,[110,115,119],{"type":21,"tag":63,"props":111,"children":112},{"style":82},[113],{"type":26,"value":114}," VkLineRasterizationModeEXT ",{"type":21,"tag":63,"props":116,"children":117},{"style":97},[118],{"type":26,"value":43},{"type":21,"tag":63,"props":120,"children":121},{"style":82},[122],{"type":26,"value":123},");\n",{"type":21,"tag":51,"props":125,"children":130},{"className":126,"code":127,"filename":128,"language":129,"meta":57,"style":57},"language-rs shiki shiki-themes github-light-default github-dark-default","pub fn cmd_set_line_rasterization_mode_ext(\n command_buffer: vk::CommandBuffer,\n line_rasterization_mode: vk::LineRasterizationModeEXT,\n);\n","Rust","rs",[131],{"type":21,"tag":38,"props":132,"children":133},{"__ignoreMap":57},[134,156,188,217],{"type":21,"tag":63,"props":135,"children":136},{"class":65,"line":66},[137,142,147,152],{"type":21,"tag":63,"props":138,"children":139},{"style":70},[140],{"type":26,"value":141},"pub",{"type":21,"tag":63,"props":143,"children":144},{"style":70},[145],{"type":26,"value":146}," fn",{"type":21,"tag":63,"props":148,"children":149},{"style":76},[150],{"type":26,"value":151}," cmd_set_line_rasterization_mode_ext",{"type":21,"tag":63,"props":153,"children":154},{"style":82},[155],{"type":26,"value":85},{"type":21,"tag":63,"props":157,"children":158},{"class":65,"line":88},[159,164,169,174,179,184],{"type":21,"tag":63,"props":160,"children":161},{"style":82},[162],{"type":26,"value":163}," command_buffer",{"type":21,"tag":63,"props":165,"children":166},{"style":70},[167],{"type":26,"value":168},":",{"type":21,"tag":63,"props":170,"children":171},{"style":97},[172],{"type":26,"value":173}," vk",{"type":21,"tag":63,"props":175,"children":176},{"style":70},[177],{"type":26,"value":178},"::",{"type":21,"tag":63,"props":180,"children":181},{"style":97},[182],{"type":26,"value":183},"CommandBuffer",{"type":21,"tag":63,"props":185,"children":186},{"style":82},[187],{"type":26,"value":105},{"type":21,"tag":63,"props":189,"children":190},{"class":65,"line":108},[191,196,200,204,208,213],{"type":21,"tag":63,"props":192,"children":193},{"style":82},[194],{"type":26,"value":195}," line_rasterization_mode",{"type":21,"tag":63,"props":197,"children":198},{"style":70},[199],{"type":26,"value":168},{"type":21,"tag":63,"props":201,"children":202},{"style":97},[203],{"type":26,"value":173},{"type":21,"tag":63,"props":205,"children":206},{"style":70},[207],{"type":26,"value":178},{"type":21,"tag":63,"props":209,"children":210},{"style":97},[211],{"type":26,"value":212},"LineRasterizationModeEXT",{"type":21,"tag":63,"props":214,"children":215},{"style":82},[216],{"type":26,"value":105},{"type":21,"tag":63,"props":218,"children":220},{"class":65,"line":219},4,[221],{"type":21,"tag":63,"props":222,"children":223},{"style":82},[224],{"type":26,"value":123},{"type":21,"tag":226,"props":227,"children":228},"ul",{},[229,240],{"type":21,"tag":230,"props":231,"children":232},"li",{},[233,238],{"type":21,"tag":38,"props":234,"children":236},{"className":235},[],[237],{"type":26,"value":100},{"type":26,"value":239}," is the command buffer into which the command will be\nrecorded.",{"type":21,"tag":230,"props":241,"children":242},{},[243,248,250,255],{"type":21,"tag":38,"props":244,"children":246},{"className":245},[],[247],{"type":26,"value":43},{"type":26,"value":249}," specifies the ",{"type":21,"tag":38,"props":251,"children":253},{"className":252},[],[254],{"type":26,"value":43},{"type":26,"value":256},"\nstate.",{"type":21,"tag":22,"props":258,"children":259},{},[260,262,267,269,275,277,283,285,291,292,298,300,306,307,312],{"type":26,"value":261},"This command sets the ",{"type":21,"tag":38,"props":263,"children":265},{"className":264},[],[266],{"type":26,"value":43},{"type":26,"value":268}," state for subsequent\ndrawing commands\nwhen drawing using ",{"type":21,"tag":29,"props":270,"children":272},{"href":271},"/chapters/shaders#shaders-objects",[273],{"type":26,"value":274},"shader objects",{"type":26,"value":276},", or\nwhen the graphics pipeline is created with\n",{"type":21,"tag":38,"props":278,"children":280},{"className":279},[],[281],{"type":26,"value":282},"VK_DYNAMIC_STATE_LINE_RASTERIZATION_MODE_EXT",{"type":26,"value":284}," set in\n",{"type":21,"tag":29,"props":286,"children":288},{"href":287},"/man/VkPipelineDynamicStateCreateInfo",[289],{"type":26,"value":290},"VkPipelineDynamicStateCreateInfo",{"type":26,"value":178},{"type":21,"tag":38,"props":293,"children":295},{"className":294},[],[296],{"type":26,"value":297},"pDynamicStates",{"type":26,"value":299},".\nOtherwise, this state is specified by the\n",{"type":21,"tag":29,"props":301,"children":303},{"href":302},"/man/VkPipelineRasterizationLineStateCreateInfoKHR",[304],{"type":26,"value":305},"VkPipelineRasterizationLineStateCreateInfoKHR",{"type":26,"value":178},{"type":21,"tag":38,"props":308,"children":310},{"className":309},[],[311],{"type":26,"value":43},{"type":26,"value":313},"\nvalue used to create the currently active pipeline.",{"type":21,"tag":315,"props":316,"children":318},"validity-group",{"name":317},"Valid Usage",[319,336,377,413],{"type":21,"tag":320,"props":321,"children":323},"validity-field",{"name":322},"VUID-vkCmdSetLineRasterizationModeEXT-None-09423",[324],{"type":21,"tag":22,"props":325,"children":326},{},[327,329,334],{"type":26,"value":328},"At least one of the following ",{"type":21,"tag":330,"props":331,"children":333},"normative",{"type":332},"must",[],{"type":26,"value":335}," be true:",{"type":21,"tag":320,"props":337,"children":339},{"name":338},"VUID-vkCmdSetLineRasterizationModeEXT-lineRasterizationMode-07418",[340],{"type":21,"tag":22,"props":341,"children":342},{},[343,345,350,352,358,360,370,372,375],{"type":26,"value":344},"If ",{"type":21,"tag":38,"props":346,"children":348},{"className":347},[],[349],{"type":26,"value":43},{"type":26,"value":351}," is\n",{"type":21,"tag":38,"props":353,"children":355},{"className":354},[],[356],{"type":26,"value":357},"VK_LINE_RASTERIZATION_MODE_RECTANGULAR_KHR",{"type":26,"value":359},", then the\n",{"type":21,"tag":29,"props":361,"children":363},{"href":362},"/man/VkPhysicalDeviceLineRasterizationFeaturesKHR#features-rectangularLines",[364],{"type":21,"tag":38,"props":365,"children":367},{"className":366},[],[368],{"type":26,"value":369},"rectangularLines",{"type":26,"value":371}," feature ",{"type":21,"tag":330,"props":373,"children":374},{"type":332},[],{"type":26,"value":376}," be\nenabled",{"type":21,"tag":320,"props":378,"children":380},{"name":379},"VUID-vkCmdSetLineRasterizationModeEXT-lineRasterizationMode-07419",[381],{"type":21,"tag":22,"props":382,"children":383},{},[384,385,390,391,397,398,408,409,412],{"type":26,"value":344},{"type":21,"tag":38,"props":386,"children":388},{"className":387},[],[389],{"type":26,"value":43},{"type":26,"value":351},{"type":21,"tag":38,"props":392,"children":394},{"className":393},[],[395],{"type":26,"value":396},"VK_LINE_RASTERIZATION_MODE_BRESENHAM_KHR",{"type":26,"value":359},{"type":21,"tag":29,"props":399,"children":401},{"href":400},"/man/VkPhysicalDeviceLineRasterizationFeaturesKHR#features-bresenhamLines",[402],{"type":21,"tag":38,"props":403,"children":405},{"className":404},[],[406],{"type":26,"value":407},"bresenhamLines",{"type":26,"value":371},{"type":21,"tag":330,"props":410,"children":411},{"type":332},[],{"type":26,"value":376},{"type":21,"tag":320,"props":414,"children":416},{"name":415},"VUID-vkCmdSetLineRasterizationModeEXT-lineRasterizationMode-07420",[417],{"type":21,"tag":22,"props":418,"children":419},{},[420,421,426,427,433,434,444,445,448],{"type":26,"value":344},{"type":21,"tag":38,"props":422,"children":424},{"className":423},[],[425],{"type":26,"value":43},{"type":26,"value":351},{"type":21,"tag":38,"props":428,"children":430},{"className":429},[],[431],{"type":26,"value":432},"VK_LINE_RASTERIZATION_MODE_RECTANGULAR_SMOOTH_KHR",{"type":26,"value":359},{"type":21,"tag":29,"props":435,"children":437},{"href":436},"/man/VkPhysicalDeviceLineRasterizationFeaturesKHR#features-smoothLines",[438],{"type":21,"tag":38,"props":439,"children":441},{"className":440},[],[442],{"type":26,"value":443},"smoothLines",{"type":26,"value":371},{"type":21,"tag":330,"props":446,"children":447},{"type":332},[],{"type":26,"value":449}," be enabled",{"type":21,"tag":315,"props":451,"children":453},{"name":452},"Valid Usage (Implicit)",[454,481,506,530,559],{"type":21,"tag":320,"props":455,"children":457},{"name":456},"VUID-vkCmdSetLineRasterizationModeEXT-commandBuffer-parameter",[458],{"type":21,"tag":22,"props":459,"children":460},{},[461,466,468,471,473,479],{"type":21,"tag":38,"props":462,"children":464},{"className":463},[],[465],{"type":26,"value":100},{"type":26,"value":467}," ",{"type":21,"tag":330,"props":469,"children":470},{"type":332},[],{"type":26,"value":472}," be a valid ",{"type":21,"tag":29,"props":474,"children":476},{"href":475},"/man/VkCommandBuffer",[477],{"type":26,"value":478},"VkCommandBuffer",{"type":26,"value":480}," handle",{"type":21,"tag":320,"props":482,"children":484},{"name":483},"VUID-vkCmdSetLineRasterizationModeEXT-lineRasterizationMode-parameter",[485],{"type":21,"tag":22,"props":486,"children":487},{},[488,493,494,497,498,504],{"type":21,"tag":38,"props":489,"children":491},{"className":490},[],[492],{"type":26,"value":43},{"type":26,"value":467},{"type":21,"tag":330,"props":495,"children":496},{"type":332},[],{"type":26,"value":472},{"type":21,"tag":29,"props":499,"children":501},{"href":500},"/man/VkLineRasterizationModeEXT",[502],{"type":26,"value":503},"VkLineRasterizationModeEXT",{"type":26,"value":505}," value",{"type":21,"tag":320,"props":507,"children":509},{"name":508},"VUID-vkCmdSetLineRasterizationModeEXT-commandBuffer-recording",[510],{"type":21,"tag":22,"props":511,"children":512},{},[513,518,519,522,524],{"type":21,"tag":38,"props":514,"children":516},{"className":515},[],[517],{"type":26,"value":100},{"type":26,"value":467},{"type":21,"tag":330,"props":520,"children":521},{"type":332},[],{"type":26,"value":523}," be in the ",{"type":21,"tag":29,"props":525,"children":527},{"href":526},"/chapters/commandbuffers#commandbuffers-lifecycle",[528],{"type":26,"value":529},"recording state",{"type":21,"tag":320,"props":531,"children":533},{"name":532},"VUID-vkCmdSetLineRasterizationModeEXT-commandBuffer-cmdpool",[534],{"type":21,"tag":22,"props":535,"children":536},{},[537,539,545,547,552,554,557],{"type":26,"value":538},"The ",{"type":21,"tag":38,"props":540,"children":542},{"className":541},[],[543],{"type":26,"value":544},"VkCommandPool",{"type":26,"value":546}," that ",{"type":21,"tag":38,"props":548,"children":550},{"className":549},[],[551],{"type":26,"value":100},{"type":26,"value":553}," was allocated from ",{"type":21,"tag":330,"props":555,"children":556},{"type":332},[],{"type":26,"value":558}," support graphics operations",{"type":21,"tag":320,"props":560,"children":562},{"name":561},"VUID-vkCmdSetLineRasterizationModeEXT-videocoding",[563],{"type":21,"tag":22,"props":564,"children":565},{},[566,568,571],{"type":26,"value":567},"This command ",{"type":21,"tag":330,"props":569,"children":570},{"type":332},[],{"type":26,"value":572}," only be called outside of a video coding scope",{"type":21,"tag":574,"props":575,"children":577},"validity-box",{"name":576},"Host Synchronization",[578],{"type":21,"tag":226,"props":579,"children":580},{},[581,597],{"type":21,"tag":230,"props":582,"children":583},{},[584,586,591,592,595],{"type":26,"value":585},"Host access to ",{"type":21,"tag":38,"props":587,"children":589},{"className":588},[],[590],{"type":26,"value":100},{"type":26,"value":467},{"type":21,"tag":330,"props":593,"children":594},{"type":332},[],{"type":26,"value":596}," be externally synchronized",{"type":21,"tag":230,"props":598,"children":599},{},[600,602,607,608,613,614,617],{"type":26,"value":601},"Host access to the ",{"type":21,"tag":38,"props":603,"children":605},{"className":604},[],[606],{"type":26,"value":544},{"type":26,"value":546},{"type":21,"tag":38,"props":609,"children":611},{"className":610},[],[612],{"type":26,"value":100},{"type":26,"value":553},{"type":21,"tag":330,"props":615,"children":616},{"type":332},[],{"type":26,"value":618}," be externally synchronized\n::",{"type":21,"tag":620,"props":621,"children":622},"style",{},[623],{"type":26,"value":624},"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":57,"searchDepth":88,"depth":88,"links":626},[],"markdown",1725732609246]