[{"data":1,"prerenderedAt":353},["ShallowReactive",2],{"7apIRXLZc6":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":352,"_id":4},"VkCoarseSampleLocationNV","Structure specifying parameters controlling shading rate image usage","VK_NV_shading_rate_image","structs",[],{"type":10,"children":11,"toc":350},"root",[12,37,229,281,344],{"type":13,"tag":14,"props":15,"children":16},"element","p",{},[17,20,26,28,35],{"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 identifies a specific pixel and\n",{"type":13,"tag":29,"props":30,"children":32},"a",{"href":31},"/chapters/primsrast#primsrast-multisampling-coverage-mask",[33],{"type":18,"value":34},"sample index",{"type":18,"value":36}," for one of the\ncoverage samples in a fragment that is larger than one pixel.\nThis structure is defined as:",{"type":13,"tag":38,"props":39,"children":40},"code-group",{},[41,125],{"type":13,"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","typedef struct VkCoarseSampleLocationNV {\n uint32_t pixelX;\n uint32_t pixelY;\n uint32_t sample;\n} VkCoarseSampleLocationNV;\n","C","c","",[50],{"type":13,"tag":21,"props":51,"children":52},{"__ignoreMap":48},[53,76,90,103,116],{"type":13,"tag":54,"props":55,"children":58},"span",{"class":56,"line":57},"line",1,[59,65,70],{"type":13,"tag":54,"props":60,"children":62},{"style":61},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[63],{"type":18,"value":64},"typedef",{"type":13,"tag":54,"props":66,"children":67},{"style":61},[68],{"type":18,"value":69}," struct",{"type":13,"tag":54,"props":71,"children":73},{"style":72},"--shiki-default:#1F2328;--shiki-dark:#E6EDF3",[74],{"type":18,"value":75}," VkCoarseSampleLocationNV {\n",{"type":13,"tag":54,"props":77,"children":79},{"class":56,"line":78},2,[80,85],{"type":13,"tag":54,"props":81,"children":82},{"style":61},[83],{"type":18,"value":84}," uint32_t",{"type":13,"tag":54,"props":86,"children":87},{"style":72},[88],{"type":18,"value":89}," pixelX;\n",{"type":13,"tag":54,"props":91,"children":93},{"class":56,"line":92},3,[94,98],{"type":13,"tag":54,"props":95,"children":96},{"style":61},[97],{"type":18,"value":84},{"type":13,"tag":54,"props":99,"children":100},{"style":72},[101],{"type":18,"value":102}," pixelY;\n",{"type":13,"tag":54,"props":104,"children":106},{"class":56,"line":105},4,[107,111],{"type":13,"tag":54,"props":108,"children":109},{"style":61},[110],{"type":18,"value":84},{"type":13,"tag":54,"props":112,"children":113},{"style":72},[114],{"type":18,"value":115}," sample;\n",{"type":13,"tag":54,"props":117,"children":119},{"class":56,"line":118},5,[120],{"type":13,"tag":54,"props":121,"children":122},{"style":72},[123],{"type":18,"value":124},"} VkCoarseSampleLocationNV;\n",{"type":13,"tag":42,"props":126,"children":131},{"className":127,"code":128,"filename":129,"language":130,"meta":48,"style":48},"language-rs shiki shiki-themes github-light-default github-dark-default","pub struct CoarseSampleLocationNV {\n pixel_x: u32,\n pixel_y: u32,\n sample: u32,\n}\n","Rust","rs",[132],{"type":13,"tag":21,"props":133,"children":134},{"__ignoreMap":48},[135,158,181,201,221],{"type":13,"tag":54,"props":136,"children":137},{"class":56,"line":57},[138,143,147,153],{"type":13,"tag":54,"props":139,"children":140},{"style":61},[141],{"type":18,"value":142},"pub",{"type":13,"tag":54,"props":144,"children":145},{"style":61},[146],{"type":18,"value":69},{"type":13,"tag":54,"props":148,"children":150},{"style":149},"--shiki-default:#953800;--shiki-dark:#FFA657",[151],{"type":18,"value":152}," CoarseSampleLocationNV",{"type":13,"tag":54,"props":154,"children":155},{"style":72},[156],{"type":18,"value":157}," {\n",{"type":13,"tag":54,"props":159,"children":160},{"class":56,"line":78},[161,166,171,176],{"type":13,"tag":54,"props":162,"children":163},{"style":72},[164],{"type":18,"value":165}," pixel_x",{"type":13,"tag":54,"props":167,"children":168},{"style":61},[169],{"type":18,"value":170},":",{"type":13,"tag":54,"props":172,"children":173},{"style":149},[174],{"type":18,"value":175}," u32",{"type":13,"tag":54,"props":177,"children":178},{"style":72},[179],{"type":18,"value":180},",\n",{"type":13,"tag":54,"props":182,"children":183},{"class":56,"line":92},[184,189,193,197],{"type":13,"tag":54,"props":185,"children":186},{"style":72},[187],{"type":18,"value":188}," pixel_y",{"type":13,"tag":54,"props":190,"children":191},{"style":61},[192],{"type":18,"value":170},{"type":13,"tag":54,"props":194,"children":195},{"style":149},[196],{"type":18,"value":175},{"type":13,"tag":54,"props":198,"children":199},{"style":72},[200],{"type":18,"value":180},{"type":13,"tag":54,"props":202,"children":203},{"class":56,"line":105},[204,209,213,217],{"type":13,"tag":54,"props":205,"children":206},{"style":72},[207],{"type":18,"value":208}," sample",{"type":13,"tag":54,"props":210,"children":211},{"style":61},[212],{"type":18,"value":170},{"type":13,"tag":54,"props":214,"children":215},{"style":149},[216],{"type":18,"value":175},{"type":13,"tag":54,"props":218,"children":219},{"style":72},[220],{"type":18,"value":180},{"type":13,"tag":54,"props":222,"children":223},{"class":56,"line":118},[224],{"type":13,"tag":54,"props":225,"children":226},{"style":72},[227],{"type":18,"value":228},"}\n",{"type":13,"tag":230,"props":231,"children":232},"ul",{},[233,245,256],{"type":13,"tag":234,"props":235,"children":236},"li",{},[237,243],{"type":13,"tag":21,"props":238,"children":240},{"className":239},[],[241],{"type":18,"value":242},"pixelX",{"type":18,"value":244}," is added to the x coordinate of the upper-leftmost pixel of\neach fragment to identify the pixel containing the coverage sample.",{"type":13,"tag":234,"props":246,"children":247},{},[248,254],{"type":13,"tag":21,"props":249,"children":251},{"className":250},[],[252],{"type":18,"value":253},"pixelY",{"type":18,"value":255}," is added to the y coordinate of the upper-leftmost pixel of\neach fragment to identify the pixel containing the coverage sample.",{"type":13,"tag":234,"props":257,"children":258},{},[259,265,267,272,274,279],{"type":13,"tag":21,"props":260,"children":262},{"className":261},[],[263],{"type":18,"value":264},"sample",{"type":18,"value":266}," is the number of the coverage sample in the pixel\nidentified by ",{"type":13,"tag":21,"props":268,"children":270},{"className":269},[],[271],{"type":18,"value":242},{"type":18,"value":273}," and ",{"type":13,"tag":21,"props":275,"children":277},{"className":276},[],[278],{"type":18,"value":253},{"type":18,"value":280},".",{"type":13,"tag":282,"props":283,"children":285},"validity-group",{"name":284},"Valid Usage",[286,308,326],{"type":13,"tag":287,"props":288,"children":290},"validity-field",{"name":289},"VUID-VkCoarseSampleLocationNV-pixelX-02078",[291],{"type":13,"tag":14,"props":292,"children":293},{},[294,299,301,306],{"type":13,"tag":21,"props":295,"children":297},{"className":296},[],[298],{"type":18,"value":242},{"type":18,"value":300}," ",{"type":13,"tag":302,"props":303,"children":305},"normative",{"type":304},"must",[],{"type":18,"value":307}," be less than the width (in pixels) of the fragment",{"type":13,"tag":287,"props":309,"children":311},{"name":310},"VUID-VkCoarseSampleLocationNV-pixelY-02079",[312],{"type":13,"tag":14,"props":313,"children":314},{},[315,320,321,324],{"type":13,"tag":21,"props":316,"children":318},{"className":317},[],[319],{"type":18,"value":253},{"type":18,"value":300},{"type":13,"tag":302,"props":322,"children":323},{"type":304},[],{"type":18,"value":325}," be less than the height (in pixels) of the fragment",{"type":13,"tag":287,"props":327,"children":329},{"name":328},"VUID-VkCoarseSampleLocationNV-sample-02080",[330],{"type":13,"tag":14,"props":331,"children":332},{},[333,338,339,342],{"type":13,"tag":21,"props":334,"children":336},{"className":335},[],[337],{"type":18,"value":264},{"type":18,"value":300},{"type":13,"tag":302,"props":340,"children":341},{"type":304},[],{"type":18,"value":343}," be less than the number of coverage samples in each\npixel belonging to the fragment",{"type":13,"tag":345,"props":346,"children":347},"style",{},[348],{"type":18,"value":349},"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":78,"depth":78,"links":351},[],"markdown",1725732542291]