[{"data":1,"prerenderedAt":725},["ShallowReactive",2],{"jC5HK1FjzU":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":724,"_id":4},"VkSampleLocationsInfoEXT","Structure specifying a set of sample locations","VK_EXT_sample_locations","structs",[],{"type":10,"children":11,"toc":722},"root",[12,28,359,476,495,543,560,641,716],{"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 as:",{"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 VkSampleLocationsInfoEXT {\n VkStructureType sType;\n const void* pNext;\n VkSampleCountFlagBits sampleLocationsPerPixel;\n VkExtent2D sampleLocationGridSize;\n uint32_t sampleLocationsCount;\n const VkSampleLocationEXT* pSampleLocations;\n} VkSampleLocationsInfoEXT;\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}," VkSampleLocationsInfoEXT {\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}," VkSampleCountFlagBits sampleLocationsPerPixel;\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}," VkExtent2D sampleLocationGridSize;\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}," sampleLocationsCount;\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}," VkSampleLocationEXT",{"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}," pSampleLocations;\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},"} VkSampleLocationsInfoEXT;\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 SampleLocationsInfoEXT {\n s_type: vk::StructureType,\n p_next: *const c_void,\n sample_locations_per_pixel: SampleCountFlags,\n sample_location_grid_size: vk::Extent2D,\n sample_locations_count: u32,\n p_sample_locations: *const vk::SampleLocationEXT,\n}\n","Rust","rs",[166],{"type":13,"tag":21,"props":167,"children":168},{"__ignoreMap":39},[169,192,225,247,268,297,318,351],{"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}," SampleLocationsInfoEXT",{"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,264],{"type":13,"tag":45,"props":251,"children":252},{"style":63},[253],{"type":18,"value":254}," sample_locations_per_pixel",{"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":263}," SampleCountFlags",{"type":13,"tag":45,"props":265,"children":266},{"style":63},[267],{"type":18,"value":224},{"type":13,"tag":45,"props":269,"children":270},{"class":47,"line":106},[271,276,280,284,288,293],{"type":13,"tag":45,"props":272,"children":273},{"style":63},[274],{"type":18,"value":275}," sample_location_grid_size",{"type":13,"tag":45,"props":277,"children":278},{"style":52},[279],{"type":18,"value":204},{"type":13,"tag":45,"props":281,"children":282},{"style":183},[283],{"type":18,"value":209},{"type":13,"tag":45,"props":285,"children":286},{"style":52},[287],{"type":18,"value":214},{"type":13,"tag":45,"props":289,"children":290},{"style":183},[291],{"type":18,"value":292},"Extent2D",{"type":13,"tag":45,"props":294,"children":295},{"style":63},[296],{"type":18,"value":224},{"type":13,"tag":45,"props":298,"children":299},{"class":47,"line":115},[300,305,309,314],{"type":13,"tag":45,"props":301,"children":302},{"style":63},[303],{"type":18,"value":304}," sample_locations_count",{"type":13,"tag":45,"props":306,"children":307},{"style":52},[308],{"type":18,"value":204},{"type":13,"tag":45,"props":310,"children":311},{"style":183},[312],{"type":18,"value":313}," u32",{"type":13,"tag":45,"props":315,"children":316},{"style":63},[317],{"type":18,"value":224},{"type":13,"tag":45,"props":319,"children":320},{"class":47,"line":129},[321,326,330,334,338,342,347],{"type":13,"tag":45,"props":322,"children":323},{"style":63},[324],{"type":18,"value":325}," p_sample_locations",{"type":13,"tag":45,"props":327,"children":328},{"style":52},[329],{"type":18,"value":204},{"type":13,"tag":45,"props":331,"children":332},{"style":52},[333],{"type":18,"value":241},{"type":13,"tag":45,"props":335,"children":336},{"style":183},[337],{"type":18,"value":209},{"type":13,"tag":45,"props":339,"children":340},{"style":52},[341],{"type":18,"value":214},{"type":13,"tag":45,"props":343,"children":344},{"style":183},[345],{"type":18,"value":346},"SampleLocationEXT",{"type":13,"tag":45,"props":348,"children":349},{"style":63},[350],{"type":18,"value":224},{"type":13,"tag":45,"props":352,"children":353},{"class":47,"line":152},[354],{"type":13,"tag":45,"props":355,"children":356},{"style":63},[357],{"type":18,"value":358},"}\n",{"type":13,"tag":360,"props":361,"children":362},"ul",{},[363,384,403,421,432,451],{"type":13,"tag":364,"props":365,"children":366},"li",{},[367,373,375,382],{"type":13,"tag":21,"props":368,"children":370},{"className":369},[],[371],{"type":18,"value":372},"sType",{"type":18,"value":374}," is a ",{"type":13,"tag":376,"props":377,"children":379},"a",{"href":378},"/man/VkStructureType",[380],{"type":18,"value":381},"VkStructureType",{"type":18,"value":383}," value identifying this structure.",{"type":13,"tag":364,"props":385,"children":386},{},[387,393,395,401],{"type":13,"tag":21,"props":388,"children":390},{"className":389},[],[391],{"type":18,"value":392},"pNext",{"type":18,"value":394}," is ",{"type":13,"tag":21,"props":396,"children":398},{"className":397},[],[399],{"type":18,"value":400},"NULL",{"type":18,"value":402}," or a pointer to a structure extending this\nstructure.",{"type":13,"tag":364,"props":404,"children":405},{},[406,412,413,419],{"type":13,"tag":21,"props":407,"children":409},{"className":408},[],[410],{"type":18,"value":411},"sampleLocationsPerPixel",{"type":18,"value":374},{"type":13,"tag":376,"props":414,"children":416},{"href":415},"/man/VkSampleCountFlagBits",[417],{"type":18,"value":418},"VkSampleCountFlagBits",{"type":18,"value":420}," value\nspecifying the number of sample locations per pixel.",{"type":13,"tag":364,"props":422,"children":423},{},[424,430],{"type":13,"tag":21,"props":425,"children":427},{"className":426},[],[428],{"type":18,"value":429},"sampleLocationGridSize",{"type":18,"value":431}," is the size of the sample location grid to\nselect custom sample locations for.",{"type":13,"tag":364,"props":433,"children":434},{},[435,441,443,449],{"type":13,"tag":21,"props":436,"children":438},{"className":437},[],[439],{"type":18,"value":440},"sampleLocationsCount",{"type":18,"value":442}," is the number of sample locations in\n",{"type":13,"tag":21,"props":444,"children":446},{"className":445},[],[447],{"type":18,"value":448},"pSampleLocations",{"type":18,"value":450},".",{"type":13,"tag":364,"props":452,"children":453},{},[454,459,461,466,468,474],{"type":13,"tag":21,"props":455,"children":457},{"className":456},[],[458],{"type":18,"value":448},{"type":18,"value":460}," is a pointer to an array of\n",{"type":13,"tag":21,"props":462,"children":464},{"className":463},[],[465],{"type":18,"value":440},{"type":18,"value":467}," ",{"type":13,"tag":376,"props":469,"children":471},{"href":470},"/man/VkSampleLocationEXT",[472],{"type":18,"value":473},"VkSampleLocationEXT",{"type":18,"value":475}," structures.",{"type":13,"tag":14,"props":477,"children":478},{},[479,481,486,488,494],{"type":18,"value":480},"This structure ",{"type":13,"tag":482,"props":483,"children":485},"normative",{"type":484},"can",[],{"type":18,"value":487}," be used either to specify the sample locations to be\nused for rendering or to specify the set of sample locations an image\nsubresource has been last rendered with for the purposes of layout\ntransitions of depth/stencil images created with\n",{"type":13,"tag":21,"props":489,"children":491},{"className":490},[],[492],{"type":18,"value":493},"VK_IMAGE_CREATE_SAMPLE_LOCATIONS_COMPATIBLE_DEPTH_BIT_EXT",{"type":18,"value":450},{"type":13,"tag":14,"props":496,"children":497},{},[498,500,505,507,512,514,519,521,526,528,534,536,541],{"type":18,"value":499},"The sample locations in ",{"type":13,"tag":21,"props":501,"children":503},{"className":502},[],[504],{"type":18,"value":448},{"type":18,"value":506}," specify\n",{"type":13,"tag":21,"props":508,"children":510},{"className":509},[],[511],{"type":18,"value":411},{"type":18,"value":513}," number of sample locations for each pixel in\nthe grid of the size specified in ",{"type":13,"tag":21,"props":515,"children":517},{"className":516},[],[518],{"type":18,"value":429},{"type":18,"value":520},".\nThe sample location for sample i at the pixel grid location\n(x,y) is taken from ",{"type":13,"tag":21,"props":522,"children":524},{"className":523},[],[525],{"type":18,"value":448},{"type":18,"value":527},"[(x + y ×\n",{"type":13,"tag":21,"props":529,"children":531},{"className":530},[],[532],{"type":18,"value":533},"sampleLocationGridSize.width",{"type":18,"value":535},") × ",{"type":13,"tag":21,"props":537,"children":539},{"className":538},[],[540],{"type":18,"value":411},{"type":18,"value":542},"\n+ i].",{"type":13,"tag":14,"props":544,"children":545},{},[546,548,553,554,558],{"type":18,"value":547},"If the render pass has a fragment density map, the implementation will\nchoose the sample locations for the fragment and the contents of\n",{"type":13,"tag":21,"props":549,"children":551},{"className":550},[],[552],{"type":18,"value":448},{"type":18,"value":467},{"type":13,"tag":482,"props":555,"children":557},{"type":556},"may",[],{"type":18,"value":559}," be ignored.",{"type":13,"tag":561,"props":562,"children":564},"validity-group",{"name":563},"Valid Usage",[565,604],{"type":13,"tag":566,"props":567,"children":569},"validity-field",{"name":568},"VUID-VkSampleLocationsInfoEXT-sampleLocationsPerPixel-01526",[570],{"type":13,"tag":14,"props":571,"children":572},{},[573,578,579,583,585,589,591,597,598],{"type":13,"tag":21,"props":574,"children":576},{"className":575},[],[577],{"type":18,"value":411},{"type":18,"value":467},{"type":13,"tag":482,"props":580,"children":582},{"type":581},"must",[],{"type":18,"value":584}," be a valid\n",{"type":13,"tag":376,"props":586,"children":587},{"href":415},[588],{"type":18,"value":418},{"type":18,"value":590}," value that is set in\n",{"type":13,"tag":376,"props":592,"children":594},{"href":593},"/man/VkPhysicalDeviceSampleLocationsPropertiesEXT",[595],{"type":18,"value":596},"VkPhysicalDeviceSampleLocationsPropertiesEXT",{"type":18,"value":214},{"type":13,"tag":21,"props":599,"children":601},{"className":600},[],[602],{"type":18,"value":603},"sampleLocationSampleCounts",{"type":13,"tag":566,"props":605,"children":607},{"name":606},"VUID-VkSampleLocationsInfoEXT-sampleLocationsCount-01527",[608],{"type":13,"tag":14,"props":609,"children":610},{},[611,616,617,620,622,627,629,634,635],{"type":13,"tag":21,"props":612,"children":614},{"className":613},[],[615],{"type":18,"value":440},{"type":18,"value":467},{"type":13,"tag":482,"props":618,"children":619},{"type":581},[],{"type":18,"value":621}," equal\n",{"type":13,"tag":21,"props":623,"children":625},{"className":624},[],[626],{"type":18,"value":411},{"type":18,"value":628}," ×\n",{"type":13,"tag":21,"props":630,"children":632},{"className":631},[],[633],{"type":18,"value":533},{"type":18,"value":628},{"type":13,"tag":21,"props":636,"children":638},{"className":637},[],[639],{"type":18,"value":640},"sampleLocationGridSize.height",{"type":13,"tag":561,"props":642,"children":644},{"name":643},"Valid Usage (Implicit)",[645,669],{"type":13,"tag":566,"props":646,"children":648},{"name":647},"VUID-VkSampleLocationsInfoEXT-sType-sType",[649],{"type":13,"tag":14,"props":650,"children":651},{},[652,657,658,661,663],{"type":13,"tag":21,"props":653,"children":655},{"className":654},[],[656],{"type":18,"value":372},{"type":18,"value":467},{"type":13,"tag":482,"props":659,"children":660},{"type":581},[],{"type":18,"value":662}," be ",{"type":13,"tag":21,"props":664,"children":666},{"className":665},[],[667],{"type":18,"value":668},"VK_STRUCTURE_TYPE_SAMPLE_LOCATIONS_INFO_EXT",{"type":13,"tag":566,"props":670,"children":672},{"name":671},"VUID-VkSampleLocationsInfoEXT-pSampleLocations-parameter",[673],{"type":13,"tag":14,"props":674,"children":675},{},[676,678,683,685,691,693,698,699,702,704,709,710,714],{"type":18,"value":677},"If ",{"type":13,"tag":21,"props":679,"children":681},{"className":680},[],[682],{"type":18,"value":440},{"type":18,"value":684}," is not ",{"type":13,"tag":21,"props":686,"children":688},{"className":687},[],[689],{"type":18,"value":690},"0",{"type":18,"value":692},", ",{"type":13,"tag":21,"props":694,"children":696},{"className":695},[],[697],{"type":18,"value":448},{"type":18,"value":467},{"type":13,"tag":482,"props":700,"children":701},{"type":581},[],{"type":18,"value":703}," be a valid pointer to an array of ",{"type":13,"tag":21,"props":705,"children":707},{"className":706},[],[708],{"type":18,"value":440},{"type":18,"value":467},{"type":13,"tag":376,"props":711,"children":712},{"href":470},[713],{"type":18,"value":473},{"type":18,"value":715}," structures",{"type":13,"tag":717,"props":718,"children":719},"style",{},[720],{"type":18,"value":721},"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":723},[],"markdown",1725732584085]