[{"data":1,"prerenderedAt":723},["ShallowReactive",2],{"omj8q29FiZ":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":722,"_id":4},"VkPipelineDiscardRectangleStateCreateInfoEXT","Structure specifying discard rectangle","VK_EXT_discard_rectangles","structs",[],{"type":10,"children":11,"toc":720},"root",[12,28,367,470,556,602,640,714],{"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\nas:",{"type":13,"tag":29,"props":30,"children":31},"code-group",{},[32,159],{"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 VkPipelineDiscardRectangleStateCreateInfoEXT {\n VkStructureType sType;\n const void* pNext;\n VkPipelineDiscardRectangleStateCreateFlagsEXT flags;\n VkDiscardRectangleModeEXT discardRectangleMode;\n uint32_t discardRectangleCount;\n const VkRect2D* pDiscardRectangles;\n} VkPipelineDiscardRectangleStateCreateInfoEXT;\n","C","c","",[41],{"type":13,"tag":21,"props":42,"children":43},{"__ignoreMap":39},[44,67,76,95,104,113,127,150],{"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}," VkPipelineDiscardRectangleStateCreateInfoEXT {\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],{"type":13,"tag":45,"props":100,"children":101},{"style":63},[102],{"type":18,"value":103}," VkPipelineDiscardRectangleStateCreateFlagsEXT flags;\n",{"type":13,"tag":45,"props":105,"children":107},{"class":47,"line":106},5,[108],{"type":13,"tag":45,"props":109,"children":110},{"style":63},[111],{"type":18,"value":112}," VkDiscardRectangleModeEXT discardRectangleMode;\n",{"type":13,"tag":45,"props":114,"children":116},{"class":47,"line":115},6,[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}," discardRectangleCount;\n",{"type":13,"tag":45,"props":128,"children":130},{"class":47,"line":129},7,[131,135,140,145],{"type":13,"tag":45,"props":132,"children":133},{"style":52},[134],{"type":18,"value":84},{"type":13,"tag":45,"props":136,"children":137},{"style":63},[138],{"type":18,"value":139}," VkRect2D",{"type":13,"tag":45,"props":141,"children":142},{"style":52},[143],{"type":18,"value":144},"*",{"type":13,"tag":45,"props":146,"children":147},{"style":63},[148],{"type":18,"value":149}," pDiscardRectangles;\n",{"type":13,"tag":45,"props":151,"children":153},{"class":47,"line":152},8,[154],{"type":13,"tag":45,"props":155,"children":156},{"style":63},[157],{"type":18,"value":158},"} VkPipelineDiscardRectangleStateCreateInfoEXT;\n",{"type":13,"tag":33,"props":160,"children":165},{"className":161,"code":162,"filename":163,"language":164,"meta":39,"style":39},"language-rs shiki shiki-themes github-light-default github-dark-default","pub struct PipelineDiscardRectangleStateCreateInfoEXT {\n s_type: vk::StructureType,\n p_next: *const c_void,\n flags: vk::PipelineDiscardRectangleStateCreateFlagsEXT,\n discard_rectangle_mode: vk::DiscardRectangleModeEXT,\n discard_rectangle_count: u32,\n p_discard_rectangles: *const vk::Rect2D,\n}\n","Rust","rs",[166],{"type":13,"tag":21,"props":167,"children":168},{"__ignoreMap":39},[169,192,225,247,276,305,326,359],{"type":13,"tag":45,"props":170,"children":171},{"class":47,"line":48},[172,177,181,187],{"type":13,"tag":45,"props":173,"children":174},{"style":52},[175],{"type":18,"value":176},"pub",{"type":13,"tag":45,"props":178,"children":179},{"style":52},[180],{"type":18,"value":60},{"type":13,"tag":45,"props":182,"children":184},{"style":183},"--shiki-default:#953800;--shiki-dark:#FFA657",[185],{"type":18,"value":186}," PipelineDiscardRectangleStateCreateInfoEXT",{"type":13,"tag":45,"props":188,"children":189},{"style":63},[190],{"type":18,"value":191}," {\n",{"type":13,"tag":45,"props":193,"children":194},{"class":47,"line":69},[195,200,205,210,215,220],{"type":13,"tag":45,"props":196,"children":197},{"style":63},[198],{"type":18,"value":199}," s_type",{"type":13,"tag":45,"props":201,"children":202},{"style":52},[203],{"type":18,"value":204},":",{"type":13,"tag":45,"props":206,"children":207},{"style":183},[208],{"type":18,"value":209}," vk",{"type":13,"tag":45,"props":211,"children":212},{"style":52},[213],{"type":18,"value":214},"::",{"type":13,"tag":45,"props":216,"children":217},{"style":183},[218],{"type":18,"value":219},"StructureType",{"type":13,"tag":45,"props":221,"children":222},{"style":63},[223],{"type":18,"value":224},",\n",{"type":13,"tag":45,"props":226,"children":227},{"class":47,"line":78},[228,233,237,242],{"type":13,"tag":45,"props":229,"children":230},{"style":63},[231],{"type":18,"value":232}," p_next",{"type":13,"tag":45,"props":234,"children":235},{"style":52},[236],{"type":18,"value":204},{"type":13,"tag":45,"props":238,"children":239},{"style":52},[240],{"type":18,"value":241}," *const",{"type":13,"tag":45,"props":243,"children":244},{"style":63},[245],{"type":18,"value":246}," c_void,\n",{"type":13,"tag":45,"props":248,"children":249},{"class":47,"line":97},[250,255,259,263,267,272],{"type":13,"tag":45,"props":251,"children":252},{"style":63},[253],{"type":18,"value":254}," flags",{"type":13,"tag":45,"props":256,"children":257},{"style":52},[258],{"type":18,"value":204},{"type":13,"tag":45,"props":260,"children":261},{"style":183},[262],{"type":18,"value":209},{"type":13,"tag":45,"props":264,"children":265},{"style":52},[266],{"type":18,"value":214},{"type":13,"tag":45,"props":268,"children":269},{"style":183},[270],{"type":18,"value":271},"PipelineDiscardRectangleStateCreateFlagsEXT",{"type":13,"tag":45,"props":273,"children":274},{"style":63},[275],{"type":18,"value":224},{"type":13,"tag":45,"props":277,"children":278},{"class":47,"line":106},[279,284,288,292,296,301],{"type":13,"tag":45,"props":280,"children":281},{"style":63},[282],{"type":18,"value":283}," discard_rectangle_mode",{"type":13,"tag":45,"props":285,"children":286},{"style":52},[287],{"type":18,"value":204},{"type":13,"tag":45,"props":289,"children":290},{"style":183},[291],{"type":18,"value":209},{"type":13,"tag":45,"props":293,"children":294},{"style":52},[295],{"type":18,"value":214},{"type":13,"tag":45,"props":297,"children":298},{"style":183},[299],{"type":18,"value":300},"DiscardRectangleModeEXT",{"type":13,"tag":45,"props":302,"children":303},{"style":63},[304],{"type":18,"value":224},{"type":13,"tag":45,"props":306,"children":307},{"class":47,"line":115},[308,313,317,322],{"type":13,"tag":45,"props":309,"children":310},{"style":63},[311],{"type":18,"value":312}," discard_rectangle_count",{"type":13,"tag":45,"props":314,"children":315},{"style":52},[316],{"type":18,"value":204},{"type":13,"tag":45,"props":318,"children":319},{"style":183},[320],{"type":18,"value":321}," u32",{"type":13,"tag":45,"props":323,"children":324},{"style":63},[325],{"type":18,"value":224},{"type":13,"tag":45,"props":327,"children":328},{"class":47,"line":129},[329,334,338,342,346,350,355],{"type":13,"tag":45,"props":330,"children":331},{"style":63},[332],{"type":18,"value":333}," p_discard_rectangles",{"type":13,"tag":45,"props":335,"children":336},{"style":52},[337],{"type":18,"value":204},{"type":13,"tag":45,"props":339,"children":340},{"style":52},[341],{"type":18,"value":241},{"type":13,"tag":45,"props":343,"children":344},{"style":183},[345],{"type":18,"value":209},{"type":13,"tag":45,"props":347,"children":348},{"style":52},[349],{"type":18,"value":214},{"type":13,"tag":45,"props":351,"children":352},{"style":183},[353],{"type":18,"value":354},"Rect2D",{"type":13,"tag":45,"props":356,"children":357},{"style":63},[358],{"type":18,"value":224},{"type":13,"tag":45,"props":360,"children":361},{"class":47,"line":152},[362],{"type":13,"tag":45,"props":363,"children":364},{"style":63},[365],{"type":18,"value":366},"}\n",{"type":13,"tag":368,"props":369,"children":370},"ul",{},[371,392,411,422,440,451],{"type":13,"tag":372,"props":373,"children":374},"li",{},[375,381,383,390],{"type":13,"tag":21,"props":376,"children":378},{"className":377},[],[379],{"type":18,"value":380},"sType",{"type":18,"value":382}," is a ",{"type":13,"tag":384,"props":385,"children":387},"a",{"href":386},"/man/VkStructureType",[388],{"type":18,"value":389},"VkStructureType",{"type":18,"value":391}," value identifying this structure.",{"type":13,"tag":372,"props":393,"children":394},{},[395,401,403,409],{"type":13,"tag":21,"props":396,"children":398},{"className":397},[],[399],{"type":18,"value":400},"pNext",{"type":18,"value":402}," is ",{"type":13,"tag":21,"props":404,"children":406},{"className":405},[],[407],{"type":18,"value":408},"NULL",{"type":18,"value":410}," or a pointer to a structure extending this\nstructure.",{"type":13,"tag":372,"props":412,"children":413},{},[414,420],{"type":13,"tag":21,"props":415,"children":417},{"className":416},[],[418],{"type":18,"value":419},"flags",{"type":18,"value":421}," is reserved for future use.",{"type":13,"tag":372,"props":423,"children":424},{},[425,431,432,438],{"type":13,"tag":21,"props":426,"children":428},{"className":427},[],[429],{"type":18,"value":430},"discardRectangleMode",{"type":18,"value":382},{"type":13,"tag":384,"props":433,"children":435},{"href":434},"/man/VkDiscardRectangleModeEXT",[436],{"type":18,"value":437},"VkDiscardRectangleModeEXT",{"type":18,"value":439}," value\ndetermining whether the discard rectangle test is inclusive or\nexclusive.",{"type":13,"tag":372,"props":441,"children":442},{},[443,449],{"type":13,"tag":21,"props":444,"children":446},{"className":445},[],[447],{"type":18,"value":448},"discardRectangleCount",{"type":18,"value":450}," is the number of discard rectangles to use.",{"type":13,"tag":372,"props":452,"children":453},{},[454,460,462,468],{"type":13,"tag":21,"props":455,"children":457},{"className":456},[],[458],{"type":18,"value":459},"pDiscardRectangles",{"type":18,"value":461}," is a pointer to an array of ",{"type":13,"tag":384,"props":463,"children":465},{"href":464},"/man/VkRect2D",[466],{"type":18,"value":467},"VkRect2D",{"type":18,"value":469},"\nstructures defining discard rectangles.",{"type":13,"tag":14,"props":471,"children":472},{},[473,475,481,483,488,490,496,498,504,506,511,513,518,520,526,528,534,536,541,543,546,548,554],{"type":18,"value":474},"If the ",{"type":13,"tag":21,"props":476,"children":478},{"className":477},[],[479],{"type":18,"value":480},"VK_DYNAMIC_STATE_DISCARD_RECTANGLE_EXT",{"type":18,"value":482}," dynamic state is enabled\nfor a pipeline, the ",{"type":13,"tag":21,"props":484,"children":486},{"className":485},[],[487],{"type":18,"value":459},{"type":18,"value":489}," member is ignored.\nIf the ",{"type":13,"tag":21,"props":491,"children":493},{"className":492},[],[494],{"type":18,"value":495},"VK_DYNAMIC_STATE_DISCARD_RECTANGLE_ENABLE_EXT",{"type":18,"value":497}," dynamic state is\nnot enabled for the pipeline the presence of this structure in the\n",{"type":13,"tag":384,"props":499,"children":501},{"href":500},"/man/VkGraphicsPipelineCreateInfo",[502],{"type":18,"value":503},"VkGraphicsPipelineCreateInfo",{"type":18,"value":505}," chain, and a ",{"type":13,"tag":21,"props":507,"children":509},{"className":508},[],[510],{"type":18,"value":448},{"type":18,"value":512},"\ngreater than zero, implicitly enables discard rectangles in the pipeline,\notherwise discard rectangles ",{"type":13,"tag":514,"props":515,"children":517},"normative",{"type":516},"must",[],{"type":18,"value":519}," enabled or disabled by\n",{"type":13,"tag":384,"props":521,"children":523},{"href":522},"/man/vkCmdSetDiscardRectangleEnableEXT",[524],{"type":18,"value":525},"vkCmdSetDiscardRectangleEnableEXT",{"type":18,"value":527},".\nIf the ",{"type":13,"tag":21,"props":529,"children":531},{"className":530},[],[532],{"type":18,"value":533},"VK_DYNAMIC_STATE_DISCARD_RECTANGLE_MODE_EXT",{"type":18,"value":535}," dynamic state is\nenabled for the pipeline, the ",{"type":13,"tag":21,"props":537,"children":539},{"className":538},[],[540],{"type":18,"value":430},{"type":18,"value":542}," member is ignored,\nand the discard rectangle mode ",{"type":13,"tag":514,"props":544,"children":545},{"type":516},[],{"type":18,"value":547}," be set by\n",{"type":13,"tag":384,"props":549,"children":551},{"href":550},"/man/vkCmdSetDiscardRectangleModeEXT",[552],{"type":18,"value":553},"vkCmdSetDiscardRectangleModeEXT",{"type":18,"value":555},".",{"type":13,"tag":14,"props":557,"children":558},{},[559,561,566,568,572,574,579,581,586,588,593,595,601],{"type":18,"value":560},"When this structure is included in the ",{"type":13,"tag":21,"props":562,"children":564},{"className":563},[],[565],{"type":18,"value":400},{"type":18,"value":567}," chain of\n",{"type":13,"tag":384,"props":569,"children":570},{"href":500},[571],{"type":18,"value":503},{"type":18,"value":573},", it defines parameters of the discard\nrectangle test.\nIf the ",{"type":13,"tag":21,"props":575,"children":577},{"className":576},[],[578],{"type":18,"value":480},{"type":18,"value":580}," dynamic state is not\nenabled, and this structure is not included in the ",{"type":13,"tag":21,"props":582,"children":584},{"className":583},[],[585],{"type":18,"value":400},{"type":18,"value":587}," chain, it is\nequivalent to specifying this structure with a ",{"type":13,"tag":21,"props":589,"children":591},{"className":590},[],[592],{"type":18,"value":448},{"type":18,"value":594},"\nof ",{"type":13,"tag":21,"props":596,"children":598},{"className":597},[],[599],{"type":18,"value":600},"0",{"type":18,"value":555},{"type":13,"tag":603,"props":604,"children":606},"validity-group",{"name":605},"Valid Usage",[607],{"type":13,"tag":608,"props":609,"children":611},"validity-field",{"name":610},"VUID-VkPipelineDiscardRectangleStateCreateInfoEXT-discardRectangleCount-00582",[612],{"type":13,"tag":14,"props":613,"children":614},{},[615,620,622,625,627,633,634],{"type":13,"tag":21,"props":616,"children":618},{"className":617},[],[619],{"type":18,"value":448},{"type":18,"value":621}," ",{"type":13,"tag":514,"props":623,"children":624},{"type":516},[],{"type":18,"value":626}," be less than or equal to\n",{"type":13,"tag":21,"props":628,"children":630},{"className":629},[],[631],{"type":18,"value":632},"VkPhysicalDeviceDiscardRectanglePropertiesEXT",{"type":18,"value":214},{"type":13,"tag":21,"props":635,"children":637},{"className":636},[],[638],{"type":18,"value":639},"maxDiscardRectangles",{"type":13,"tag":603,"props":641,"children":643},{"name":642},"Valid Usage (Implicit)",[644,668,690],{"type":13,"tag":608,"props":645,"children":647},{"name":646},"VUID-VkPipelineDiscardRectangleStateCreateInfoEXT-sType-sType",[648],{"type":13,"tag":14,"props":649,"children":650},{},[651,656,657,660,662],{"type":13,"tag":21,"props":652,"children":654},{"className":653},[],[655],{"type":18,"value":380},{"type":18,"value":621},{"type":13,"tag":514,"props":658,"children":659},{"type":516},[],{"type":18,"value":661}," be ",{"type":13,"tag":21,"props":663,"children":665},{"className":664},[],[666],{"type":18,"value":667},"VK_STRUCTURE_TYPE_PIPELINE_DISCARD_RECTANGLE_STATE_CREATE_INFO_EXT",{"type":13,"tag":608,"props":669,"children":671},{"name":670},"VUID-VkPipelineDiscardRectangleStateCreateInfoEXT-flags-zerobitmask",[672],{"type":13,"tag":14,"props":673,"children":674},{},[675,680,681,684,685],{"type":13,"tag":21,"props":676,"children":678},{"className":677},[],[679],{"type":18,"value":419},{"type":18,"value":621},{"type":13,"tag":514,"props":682,"children":683},{"type":516},[],{"type":18,"value":661},{"type":13,"tag":21,"props":686,"children":688},{"className":687},[],[689],{"type":18,"value":600},{"type":13,"tag":608,"props":691,"children":693},{"name":692},"VUID-VkPipelineDiscardRectangleStateCreateInfoEXT-discardRectangleMode-parameter",[694],{"type":13,"tag":14,"props":695,"children":696},{},[697,702,703,706,708,712],{"type":13,"tag":21,"props":698,"children":700},{"className":699},[],[701],{"type":18,"value":430},{"type":18,"value":621},{"type":13,"tag":514,"props":704,"children":705},{"type":516},[],{"type":18,"value":707}," be a valid ",{"type":13,"tag":384,"props":709,"children":710},{"href":434},[711],{"type":18,"value":437},{"type":18,"value":713}," value",{"type":13,"tag":715,"props":716,"children":717},"style",{},[718],{"type":18,"value":719},"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":721},[],"markdown",1729612472447]