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