[{"data":1,"prerenderedAt":506},["ShallowReactive",2],{"PuoBTvVH9m":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":505,"_id":4},"vkCmdSetRasterizationSamplesEXT","Specify the rasterization samples 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":503},"root",[20,46,217,249,306,328,451,497],{"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},"rasterizationSamples",{"type":26,"value":45},", 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 vkCmdSetRasterizationSamplesEXT(\n VkCommandBuffer commandBuffer,\n VkSampleCountFlagBits rasterizationSamples);\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}," vkCmdSetRasterizationSamplesEXT",{"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}," VkSampleCountFlagBits ",{"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_rasterization_samples_ext(\n command_buffer: vk::CommandBuffer,\n rasterization_samples: SampleCountFlags,\n);\n","Rust","rs",[131],{"type":21,"tag":38,"props":132,"children":133},{"__ignoreMap":57},[134,156,188,209],{"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_rasterization_samples_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,205],{"type":21,"tag":63,"props":192,"children":193},{"style":82},[194],{"type":26,"value":195}," rasterization_samples",{"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":204}," SampleCountFlags",{"type":21,"tag":63,"props":206,"children":207},{"style":82},[208],{"type":26,"value":105},{"type":21,"tag":63,"props":210,"children":212},{"class":65,"line":211},4,[213],{"type":21,"tag":63,"props":214,"children":215},{"style":82},[216],{"type":26,"value":123},{"type":21,"tag":218,"props":219,"children":220},"ul",{},[221,232],{"type":21,"tag":222,"props":223,"children":224},"li",{},[225,230],{"type":21,"tag":38,"props":226,"children":228},{"className":227},[],[229],{"type":26,"value":100},{"type":26,"value":231}," is the command buffer into which the command will be\nrecorded.",{"type":21,"tag":222,"props":233,"children":234},{},[235,240,242,247],{"type":21,"tag":38,"props":236,"children":238},{"className":237},[],[239],{"type":26,"value":43},{"type":26,"value":241}," specifies ",{"type":21,"tag":38,"props":243,"children":245},{"className":244},[],[246],{"type":26,"value":43},{"type":26,"value":248},".",{"type":21,"tag":22,"props":250,"children":251},{},[252,254,259,261,267,269,275,277,283,284,290,292,298,299,304],{"type":26,"value":253},"This command sets the ",{"type":21,"tag":38,"props":255,"children":257},{"className":256},[],[258],{"type":26,"value":43},{"type":26,"value":260}," for subsequent drawing\ncommands\nwhen drawing using ",{"type":21,"tag":29,"props":262,"children":264},{"href":263},"/chapters/shaders#shaders-objects",[265],{"type":26,"value":266},"shader objects",{"type":26,"value":268},", or\nwhen the graphics pipeline is created with\n",{"type":21,"tag":38,"props":270,"children":272},{"className":271},[],[273],{"type":26,"value":274},"VK_DYNAMIC_STATE_RASTERIZATION_SAMPLES_EXT",{"type":26,"value":276}," set in\n",{"type":21,"tag":29,"props":278,"children":280},{"href":279},"/man/VkPipelineDynamicStateCreateInfo",[281],{"type":26,"value":282},"VkPipelineDynamicStateCreateInfo",{"type":26,"value":178},{"type":21,"tag":38,"props":285,"children":287},{"className":286},[],[288],{"type":26,"value":289},"pDynamicStates",{"type":26,"value":291},".\nOtherwise, this state is specified by the\n",{"type":21,"tag":29,"props":293,"children":295},{"href":294},"/man/VkPipelineMultisampleStateCreateInfo",[296],{"type":26,"value":297},"VkPipelineMultisampleStateCreateInfo",{"type":26,"value":178},{"type":21,"tag":38,"props":300,"children":302},{"className":301},[],[303],{"type":26,"value":43},{"type":26,"value":305}," value\nused to create the currently active pipeline.",{"type":21,"tag":307,"props":308,"children":310},"validity-group",{"name":309},"Valid Usage",[311],{"type":21,"tag":312,"props":313,"children":315},"validity-field",{"name":314},"VUID-vkCmdSetRasterizationSamplesEXT-None-09423",[316],{"type":21,"tag":22,"props":317,"children":318},{},[319,321,326],{"type":26,"value":320},"At least one of the following ",{"type":21,"tag":322,"props":323,"children":325},"normative",{"type":324},"must",[],{"type":26,"value":327}," be true:",{"type":21,"tag":307,"props":329,"children":331},{"name":330},"Valid Usage (Implicit)",[332,359,384,408,437],{"type":21,"tag":312,"props":333,"children":335},{"name":334},"VUID-vkCmdSetRasterizationSamplesEXT-commandBuffer-parameter",[336],{"type":21,"tag":22,"props":337,"children":338},{},[339,344,346,349,351,357],{"type":21,"tag":38,"props":340,"children":342},{"className":341},[],[343],{"type":26,"value":100},{"type":26,"value":345}," ",{"type":21,"tag":322,"props":347,"children":348},{"type":324},[],{"type":26,"value":350}," be a valid ",{"type":21,"tag":29,"props":352,"children":354},{"href":353},"/man/VkCommandBuffer",[355],{"type":26,"value":356},"VkCommandBuffer",{"type":26,"value":358}," handle",{"type":21,"tag":312,"props":360,"children":362},{"name":361},"VUID-vkCmdSetRasterizationSamplesEXT-rasterizationSamples-parameter",[363],{"type":21,"tag":22,"props":364,"children":365},{},[366,371,372,375,376,382],{"type":21,"tag":38,"props":367,"children":369},{"className":368},[],[370],{"type":26,"value":43},{"type":26,"value":345},{"type":21,"tag":322,"props":373,"children":374},{"type":324},[],{"type":26,"value":350},{"type":21,"tag":29,"props":377,"children":379},{"href":378},"/man/VkSampleCountFlagBits",[380],{"type":26,"value":381},"VkSampleCountFlagBits",{"type":26,"value":383}," value",{"type":21,"tag":312,"props":385,"children":387},{"name":386},"VUID-vkCmdSetRasterizationSamplesEXT-commandBuffer-recording",[388],{"type":21,"tag":22,"props":389,"children":390},{},[391,396,397,400,402],{"type":21,"tag":38,"props":392,"children":394},{"className":393},[],[395],{"type":26,"value":100},{"type":26,"value":345},{"type":21,"tag":322,"props":398,"children":399},{"type":324},[],{"type":26,"value":401}," be in the ",{"type":21,"tag":29,"props":403,"children":405},{"href":404},"/chapters/commandbuffers#commandbuffers-lifecycle",[406],{"type":26,"value":407},"recording state",{"type":21,"tag":312,"props":409,"children":411},{"name":410},"VUID-vkCmdSetRasterizationSamplesEXT-commandBuffer-cmdpool",[412],{"type":21,"tag":22,"props":413,"children":414},{},[415,417,423,425,430,432,435],{"type":26,"value":416},"The ",{"type":21,"tag":38,"props":418,"children":420},{"className":419},[],[421],{"type":26,"value":422},"VkCommandPool",{"type":26,"value":424}," that ",{"type":21,"tag":38,"props":426,"children":428},{"className":427},[],[429],{"type":26,"value":100},{"type":26,"value":431}," was allocated from ",{"type":21,"tag":322,"props":433,"children":434},{"type":324},[],{"type":26,"value":436}," support graphics operations",{"type":21,"tag":312,"props":438,"children":440},{"name":439},"VUID-vkCmdSetRasterizationSamplesEXT-videocoding",[441],{"type":21,"tag":22,"props":442,"children":443},{},[444,446,449],{"type":26,"value":445},"This command ",{"type":21,"tag":322,"props":447,"children":448},{"type":324},[],{"type":26,"value":450}," only be called outside of a video coding scope",{"type":21,"tag":452,"props":453,"children":455},"validity-box",{"name":454},"Host Synchronization",[456],{"type":21,"tag":218,"props":457,"children":458},{},[459,475],{"type":21,"tag":222,"props":460,"children":461},{},[462,464,469,470,473],{"type":26,"value":463},"Host access to ",{"type":21,"tag":38,"props":465,"children":467},{"className":466},[],[468],{"type":26,"value":100},{"type":26,"value":345},{"type":21,"tag":322,"props":471,"children":472},{"type":324},[],{"type":26,"value":474}," be externally synchronized",{"type":21,"tag":222,"props":476,"children":477},{},[478,480,485,486,491,492,495],{"type":26,"value":479},"Host access to the ",{"type":21,"tag":38,"props":481,"children":483},{"className":482},[],[484],{"type":26,"value":422},{"type":26,"value":424},{"type":21,"tag":38,"props":487,"children":489},{"className":488},[],[490],{"type":26,"value":100},{"type":26,"value":431},{"type":21,"tag":322,"props":493,"children":494},{"type":324},[],{"type":26,"value":496}," be externally synchronized\n::",{"type":21,"tag":498,"props":499,"children":500},"style",{},[501],{"type":26,"value":502},"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":504},[],"markdown",1725732609747]