[{"data":1,"prerenderedAt":626},["ShallowReactive",2],{"ZwPhMTeVjC":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":625,"_id":4},"VkPipelineViewportShadingRateImageStateCreateInfoNV","Structure specifying parameters controlling shading rate image usage","VK_NV_shading_rate_image","structs",[],{"type":10,"children":11,"toc":623},"root",[12,45,57,358,441,461,590,617],{"type":13,"tag":14,"props":15,"children":16},"element","p",{},[17,20,27,29,36,38,43],{"type":18,"value":19},"text","If the ",{"type":13,"tag":21,"props":22,"children":24},"code",{"className":23},[],[25],{"type":18,"value":26},"pNext",{"type":18,"value":28}," chain of ",{"type":13,"tag":30,"props":31,"children":33},"a",{"href":32},"/man/VkPipelineViewportStateCreateInfo",[34],{"type":18,"value":35},"VkPipelineViewportStateCreateInfo",{"type":18,"value":37}," includes\na ",{"type":13,"tag":21,"props":39,"children":41},{"className":40},[],[42],{"type":18,"value":4},{"type":18,"value":44}," structure, then\nthat structure includes parameters controlling the shading rate.",{"type":13,"tag":14,"props":46,"children":47},{},[48,50,55],{"type":18,"value":49},"The ",{"type":13,"tag":21,"props":51,"children":53},{"className":52},[],[54],{"type":18,"value":4},{"type":18,"value":56}," structure is\ndefined as:",{"type":13,"tag":58,"props":59,"children":60},"code-group",{},[61,179],{"type":13,"tag":62,"props":63,"children":69},"pre",{"className":64,"code":65,"filename":66,"language":67,"meta":68,"style":68},"language-c shiki shiki-themes github-light-default github-dark-default","typedef struct VkPipelineViewportShadingRateImageStateCreateInfoNV {\n VkStructureType sType;\n const void* pNext;\n VkBool32 shadingRateImageEnable;\n uint32_t viewportCount;\n const VkShadingRatePaletteNV* pShadingRatePalettes;\n} VkPipelineViewportShadingRateImageStateCreateInfoNV;\n","C","c","",[70],{"type":13,"tag":21,"props":71,"children":72},{"__ignoreMap":68},[73,96,105,124,133,147,170],{"type":13,"tag":74,"props":75,"children":78},"span",{"class":76,"line":77},"line",1,[79,85,90],{"type":13,"tag":74,"props":80,"children":82},{"style":81},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[83],{"type":18,"value":84},"typedef",{"type":13,"tag":74,"props":86,"children":87},{"style":81},[88],{"type":18,"value":89}," struct",{"type":13,"tag":74,"props":91,"children":93},{"style":92},"--shiki-default:#1F2328;--shiki-dark:#E6EDF3",[94],{"type":18,"value":95}," VkPipelineViewportShadingRateImageStateCreateInfoNV {\n",{"type":13,"tag":74,"props":97,"children":99},{"class":76,"line":98},2,[100],{"type":13,"tag":74,"props":101,"children":102},{"style":92},[103],{"type":18,"value":104}," VkStructureType sType;\n",{"type":13,"tag":74,"props":106,"children":108},{"class":76,"line":107},3,[109,114,119],{"type":13,"tag":74,"props":110,"children":111},{"style":81},[112],{"type":18,"value":113}," const",{"type":13,"tag":74,"props":115,"children":116},{"style":81},[117],{"type":18,"value":118}," void*",{"type":13,"tag":74,"props":120,"children":121},{"style":92},[122],{"type":18,"value":123}," pNext;\n",{"type":13,"tag":74,"props":125,"children":127},{"class":76,"line":126},4,[128],{"type":13,"tag":74,"props":129,"children":130},{"style":92},[131],{"type":18,"value":132}," VkBool32 shadingRateImageEnable;\n",{"type":13,"tag":74,"props":134,"children":136},{"class":76,"line":135},5,[137,142],{"type":13,"tag":74,"props":138,"children":139},{"style":81},[140],{"type":18,"value":141}," uint32_t",{"type":13,"tag":74,"props":143,"children":144},{"style":92},[145],{"type":18,"value":146}," viewportCount;\n",{"type":13,"tag":74,"props":148,"children":150},{"class":76,"line":149},6,[151,155,160,165],{"type":13,"tag":74,"props":152,"children":153},{"style":81},[154],{"type":18,"value":113},{"type":13,"tag":74,"props":156,"children":157},{"style":92},[158],{"type":18,"value":159}," VkShadingRatePaletteNV",{"type":13,"tag":74,"props":161,"children":162},{"style":81},[163],{"type":18,"value":164},"*",{"type":13,"tag":74,"props":166,"children":167},{"style":92},[168],{"type":18,"value":169}," pShadingRatePalettes;\n",{"type":13,"tag":74,"props":171,"children":173},{"class":76,"line":172},7,[174],{"type":13,"tag":74,"props":175,"children":176},{"style":92},[177],{"type":18,"value":178},"} VkPipelineViewportShadingRateImageStateCreateInfoNV;\n",{"type":13,"tag":62,"props":180,"children":185},{"className":181,"code":182,"filename":183,"language":184,"meta":68,"style":68},"language-rs shiki shiki-themes github-light-default github-dark-default","pub struct PipelineViewportShadingRateImageStateCreateInfoNV {\n s_type: vk::StructureType,\n p_next: *const c_void,\n shading_rate_image_enable: vk::Bool32,\n viewport_count: u32,\n p_shading_rate_palettes: *const vk::ShadingRatePaletteNV,\n}\n","Rust","rs",[186],{"type":13,"tag":21,"props":187,"children":188},{"__ignoreMap":68},[189,212,245,267,296,317,350],{"type":13,"tag":74,"props":190,"children":191},{"class":76,"line":77},[192,197,201,207],{"type":13,"tag":74,"props":193,"children":194},{"style":81},[195],{"type":18,"value":196},"pub",{"type":13,"tag":74,"props":198,"children":199},{"style":81},[200],{"type":18,"value":89},{"type":13,"tag":74,"props":202,"children":204},{"style":203},"--shiki-default:#953800;--shiki-dark:#FFA657",[205],{"type":18,"value":206}," PipelineViewportShadingRateImageStateCreateInfoNV",{"type":13,"tag":74,"props":208,"children":209},{"style":92},[210],{"type":18,"value":211}," {\n",{"type":13,"tag":74,"props":213,"children":214},{"class":76,"line":98},[215,220,225,230,235,240],{"type":13,"tag":74,"props":216,"children":217},{"style":92},[218],{"type":18,"value":219}," s_type",{"type":13,"tag":74,"props":221,"children":222},{"style":81},[223],{"type":18,"value":224},":",{"type":13,"tag":74,"props":226,"children":227},{"style":203},[228],{"type":18,"value":229}," vk",{"type":13,"tag":74,"props":231,"children":232},{"style":81},[233],{"type":18,"value":234},"::",{"type":13,"tag":74,"props":236,"children":237},{"style":203},[238],{"type":18,"value":239},"StructureType",{"type":13,"tag":74,"props":241,"children":242},{"style":92},[243],{"type":18,"value":244},",\n",{"type":13,"tag":74,"props":246,"children":247},{"class":76,"line":107},[248,253,257,262],{"type":13,"tag":74,"props":249,"children":250},{"style":92},[251],{"type":18,"value":252}," p_next",{"type":13,"tag":74,"props":254,"children":255},{"style":81},[256],{"type":18,"value":224},{"type":13,"tag":74,"props":258,"children":259},{"style":81},[260],{"type":18,"value":261}," *const",{"type":13,"tag":74,"props":263,"children":264},{"style":92},[265],{"type":18,"value":266}," c_void,\n",{"type":13,"tag":74,"props":268,"children":269},{"class":76,"line":126},[270,275,279,283,287,292],{"type":13,"tag":74,"props":271,"children":272},{"style":92},[273],{"type":18,"value":274}," shading_rate_image_enable",{"type":13,"tag":74,"props":276,"children":277},{"style":81},[278],{"type":18,"value":224},{"type":13,"tag":74,"props":280,"children":281},{"style":203},[282],{"type":18,"value":229},{"type":13,"tag":74,"props":284,"children":285},{"style":81},[286],{"type":18,"value":234},{"type":13,"tag":74,"props":288,"children":289},{"style":203},[290],{"type":18,"value":291},"Bool32",{"type":13,"tag":74,"props":293,"children":294},{"style":92},[295],{"type":18,"value":244},{"type":13,"tag":74,"props":297,"children":298},{"class":76,"line":135},[299,304,308,313],{"type":13,"tag":74,"props":300,"children":301},{"style":92},[302],{"type":18,"value":303}," viewport_count",{"type":13,"tag":74,"props":305,"children":306},{"style":81},[307],{"type":18,"value":224},{"type":13,"tag":74,"props":309,"children":310},{"style":203},[311],{"type":18,"value":312}," u32",{"type":13,"tag":74,"props":314,"children":315},{"style":92},[316],{"type":18,"value":244},{"type":13,"tag":74,"props":318,"children":319},{"class":76,"line":149},[320,325,329,333,337,341,346],{"type":13,"tag":74,"props":321,"children":322},{"style":92},[323],{"type":18,"value":324}," p_shading_rate_palettes",{"type":13,"tag":74,"props":326,"children":327},{"style":81},[328],{"type":18,"value":224},{"type":13,"tag":74,"props":330,"children":331},{"style":81},[332],{"type":18,"value":261},{"type":13,"tag":74,"props":334,"children":335},{"style":203},[336],{"type":18,"value":229},{"type":13,"tag":74,"props":338,"children":339},{"style":81},[340],{"type":18,"value":234},{"type":13,"tag":74,"props":342,"children":343},{"style":203},[344],{"type":18,"value":345},"ShadingRatePaletteNV",{"type":13,"tag":74,"props":347,"children":348},{"style":92},[349],{"type":18,"value":244},{"type":13,"tag":74,"props":351,"children":352},{"class":76,"line":172},[353],{"type":13,"tag":74,"props":354,"children":355},{"style":92},[356],{"type":18,"value":357},"}\n",{"type":13,"tag":359,"props":360,"children":361},"ul",{},[362,382,400,411,422],{"type":13,"tag":363,"props":364,"children":365},"li",{},[366,372,374,380],{"type":13,"tag":21,"props":367,"children":369},{"className":368},[],[370],{"type":18,"value":371},"sType",{"type":18,"value":373}," is a ",{"type":13,"tag":30,"props":375,"children":377},{"href":376},"/man/VkStructureType",[378],{"type":18,"value":379},"VkStructureType",{"type":18,"value":381}," value identifying this structure.",{"type":13,"tag":363,"props":383,"children":384},{},[385,390,392,398],{"type":13,"tag":21,"props":386,"children":388},{"className":387},[],[389],{"type":18,"value":26},{"type":18,"value":391}," is ",{"type":13,"tag":21,"props":393,"children":395},{"className":394},[],[396],{"type":18,"value":397},"NULL",{"type":18,"value":399}," or a pointer to a structure extending this\nstructure.",{"type":13,"tag":363,"props":401,"children":402},{},[403,409],{"type":13,"tag":21,"props":404,"children":406},{"className":405},[],[407],{"type":18,"value":408},"shadingRateImageEnable",{"type":18,"value":410}," specifies whether shading rate image and\npalettes are used during rasterization.",{"type":13,"tag":363,"props":412,"children":413},{},[414,420],{"type":13,"tag":21,"props":415,"children":417},{"className":416},[],[418],{"type":18,"value":419},"viewportCount",{"type":18,"value":421}," specifies the number of per-viewport palettes used\nto translate values stored in shading rate images.",{"type":13,"tag":363,"props":423,"children":424},{},[425,431,433,439],{"type":13,"tag":21,"props":426,"children":428},{"className":427},[],[429],{"type":18,"value":430},"pShadingRatePalettes",{"type":18,"value":432}," is a pointer to an array of\n",{"type":13,"tag":30,"props":434,"children":436},{"href":435},"/man/VkShadingRatePaletteNV",[437],{"type":18,"value":438},"VkShadingRatePaletteNV",{"type":18,"value":440}," structures defining the palette for each\nviewport.\nIf the shading rate palette state is dynamic, this member is ignored.",{"type":13,"tag":14,"props":442,"children":443},{},[444,446,451,453,459],{"type":18,"value":445},"If this structure is not present, ",{"type":13,"tag":21,"props":447,"children":449},{"className":448},[],[450],{"type":18,"value":408},{"type":18,"value":452}," is considered\nto be ",{"type":13,"tag":21,"props":454,"children":456},{"className":455},[],[457],{"type":18,"value":458},"VK_FALSE",{"type":18,"value":460},", and the shading rate image and palettes are not used.",{"type":13,"tag":462,"props":463,"children":465},"validity-group",{"name":464},"Valid Usage",[466,515,546],{"type":13,"tag":467,"props":468,"children":470},"validity-field",{"name":469},"VUID-VkPipelineViewportShadingRateImageStateCreateInfoNV-viewportCount-02054",[471],{"type":13,"tag":14,"props":472,"children":473},{},[474,475,485,487,492,494,499,501,507,509],{"type":18,"value":19},{"type":13,"tag":30,"props":476,"children":478},{"href":477},"/man/VkPhysicalDeviceFeatures#features-multiViewport",[479],{"type":13,"tag":21,"props":480,"children":482},{"className":481},[],[483],{"type":18,"value":484},"multiViewport",{"type":18,"value":486}," feature is not\nenabled, ",{"type":13,"tag":21,"props":488,"children":490},{"className":489},[],[491],{"type":18,"value":419},{"type":18,"value":493}," ",{"type":13,"tag":495,"props":496,"children":498},"normative",{"type":497},"must",[],{"type":18,"value":500}," be ",{"type":13,"tag":21,"props":502,"children":504},{"className":503},[],[505],{"type":18,"value":506},"0",{"type":18,"value":508}," or ",{"type":13,"tag":21,"props":510,"children":512},{"className":511},[],[513],{"type":18,"value":514},"1",{"type":13,"tag":467,"props":516,"children":518},{"name":517},"VUID-VkPipelineViewportShadingRateImageStateCreateInfoNV-viewportCount-02055",[519],{"type":13,"tag":14,"props":520,"children":521},{},[522,527,528,531,533,539,540],{"type":13,"tag":21,"props":523,"children":525},{"className":524},[],[526],{"type":18,"value":419},{"type":18,"value":493},{"type":13,"tag":495,"props":529,"children":530},{"type":497},[],{"type":18,"value":532}," be less than or equal to\n",{"type":13,"tag":21,"props":534,"children":536},{"className":535},[],[537],{"type":18,"value":538},"VkPhysicalDeviceLimits",{"type":18,"value":234},{"type":13,"tag":21,"props":541,"children":543},{"className":542},[],[544],{"type":18,"value":545},"maxViewports",{"type":13,"tag":467,"props":547,"children":549},{"name":548},"VUID-VkPipelineViewportShadingRateImageStateCreateInfoNV-shadingRateImageEnable-02056",[550],{"type":13,"tag":14,"props":551,"children":552},{},[553,555,560,561,567,569,574,577,579,584,586],{"type":18,"value":554},"If ",{"type":13,"tag":21,"props":556,"children":558},{"className":557},[],[559],{"type":18,"value":408},{"type":18,"value":391},{"type":13,"tag":21,"props":562,"children":564},{"className":563},[],[565],{"type":18,"value":566},"VK_TRUE",{"type":18,"value":568},", ",{"type":13,"tag":21,"props":570,"children":572},{"className":571},[],[573],{"type":18,"value":419},{"type":13,"tag":495,"props":575,"children":576},{"type":497},[],{"type":18,"value":578}," be greater or equal to the ",{"type":13,"tag":21,"props":580,"children":582},{"className":581},[],[583],{"type":18,"value":419},{"type":18,"value":585}," member of\n",{"type":13,"tag":30,"props":587,"children":588},{"href":32},[589],{"type":18,"value":35},{"type":13,"tag":462,"props":591,"children":593},{"name":592},"Valid Usage (Implicit)",[594],{"type":13,"tag":467,"props":595,"children":597},{"name":596},"VUID-VkPipelineViewportShadingRateImageStateCreateInfoNV-sType-sType",[598],{"type":13,"tag":14,"props":599,"children":600},{},[601,606,607,610,611],{"type":13,"tag":21,"props":602,"children":604},{"className":603},[],[605],{"type":18,"value":371},{"type":18,"value":493},{"type":13,"tag":495,"props":608,"children":609},{"type":497},[],{"type":18,"value":500},{"type":13,"tag":21,"props":612,"children":614},{"className":613},[],[615],{"type":18,"value":616},"VK_STRUCTURE_TYPE_PIPELINE_VIEWPORT_SHADING_RATE_IMAGE_STATE_CREATE_INFO_NV",{"type":13,"tag":618,"props":619,"children":620},"style",{},[621],{"type":18,"value":622},"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":68,"searchDepth":98,"depth":98,"links":624},[],"markdown",1729612474458]