[{"data":1,"prerenderedAt":575},["ShallowReactive",2],{"3qNJDUcYs1":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":574,"_id":4},"VkSamplerYcbcrConversionInfo","Structure specifying {YCbCr} conversion to a sampler or image view","VK_VERSION_1_1","structs",[],{"type":10,"children":11,"toc":572},"root",[12,103,154,166,375,380,445,512,566],{"type":13,"tag":14,"props":15,"children":16},"element","p",{},[17,20,26,28,33,35,41,43,50,52,58,60,64,65,69,71,81,83,88,90,93,95,101],{"type":18,"value":19},"text","To create a sampler with Y′C",{"type":13,"tag":21,"props":22,"children":23},"sub",{},[24],{"type":18,"value":25},"B",{"type":18,"value":27},"C",{"type":13,"tag":21,"props":29,"children":30},{},[31],{"type":18,"value":32},"R",{"type":18,"value":34}," conversion enabled, add a\n",{"type":13,"tag":36,"props":37,"children":39},"a",{"href":38},"/man/VkSamplerYcbcrConversionInfo",[40],{"type":18,"value":4},{"type":18,"value":42}," structure to the ",{"type":13,"tag":44,"props":45,"children":47},"code",{"className":46},[],[48],{"type":18,"value":49},"pNext",{"type":18,"value":51}," chain of the\n",{"type":13,"tag":36,"props":53,"children":55},{"href":54},"/man/VkSamplerCreateInfo",[56],{"type":18,"value":57},"VkSamplerCreateInfo",{"type":18,"value":59}," structure.\nTo create a sampler Y′C",{"type":13,"tag":21,"props":61,"children":62},{},[63],{"type":18,"value":25},{"type":18,"value":27},{"type":13,"tag":21,"props":66,"children":67},{},[68],{"type":18,"value":32},{"type":18,"value":70}," conversion, the\n",{"type":13,"tag":36,"props":72,"children":74},{"href":73},"/man/VkPhysicalDeviceSamplerYcbcrConversionFeatures#features-samplerYcbcrConversion",[75],{"type":13,"tag":44,"props":76,"children":78},{"className":77},[],[79],{"type":18,"value":80},"samplerYcbcrConversion",{"type":18,"value":82}," feature\n",{"type":13,"tag":84,"props":85,"children":87},"normative",{"type":86},"must",[],{"type":18,"value":89}," be enabled.\nConversion ",{"type":13,"tag":84,"props":91,"children":92},{"type":86},[],{"type":18,"value":94}," be fixed at pipeline creation time, through use of a\ncombined image sampler with an immutable sampler in\n",{"type":13,"tag":44,"props":96,"children":98},{"className":97},[],[99],{"type":18,"value":100},"VkDescriptorSetLayoutBinding",{"type":18,"value":102},".",{"type":13,"tag":14,"props":104,"children":105},{},[106,108,112,114,117,119,125,127,144,146,152],{"type":18,"value":107},"A ",{"type":13,"tag":36,"props":109,"children":110},{"href":38},[111],{"type":18,"value":4},{"type":18,"value":113}," ",{"type":13,"tag":84,"props":115,"children":116},{"type":86},[],{"type":18,"value":118}," be provided for samplers to be\nused with image views that access ",{"type":13,"tag":44,"props":120,"children":122},{"className":121},[],[123],{"type":18,"value":124},"VK_IMAGE_ASPECT_COLOR_BIT",{"type":18,"value":126}," if the\nformat is one of the ",{"type":13,"tag":36,"props":128,"children":130},{"href":129},"/chapters/formats#formats-requiring-sampler-ycbcr-conversion",[131,133,137,138,142],{"type":18,"value":132},"formats\nthat require a sampler Y′C",{"type":13,"tag":21,"props":134,"children":135},{},[136],{"type":18,"value":25},{"type":18,"value":27},{"type":13,"tag":21,"props":139,"children":140},{},[141],{"type":18,"value":32},{"type":18,"value":143}," conversion",{"type":18,"value":145},"\n, or if the image view has an\n",{"type":13,"tag":36,"props":147,"children":149},{"href":148},"/chapters/memory#memory-external-android-hardware-buffer-external-formats",[150],{"type":18,"value":151},"external format",{"type":18,"value":153},"\n.",{"type":13,"tag":14,"props":155,"children":156},{},[157,159,164],{"type":18,"value":158},"The ",{"type":13,"tag":44,"props":160,"children":162},{"className":161},[],[163],{"type":18,"value":4},{"type":18,"value":165}," structure is defined as:",{"type":13,"tag":167,"props":168,"children":169},"code-group",{},[170,250],{"type":13,"tag":171,"props":172,"children":177},"pre",{"className":173,"code":174,"filename":27,"language":175,"meta":176,"style":176},"language-c shiki shiki-themes github-light-default github-dark-default","typedef struct VkSamplerYcbcrConversionInfo {\n VkStructureType sType;\n const void* pNext;\n VkSamplerYcbcrConversion conversion;\n} VkSamplerYcbcrConversionInfo;\n","c","",[178],{"type":13,"tag":44,"props":179,"children":180},{"__ignoreMap":176},[181,204,213,232,241],{"type":13,"tag":182,"props":183,"children":186},"span",{"class":184,"line":185},"line",1,[187,193,198],{"type":13,"tag":182,"props":188,"children":190},{"style":189},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[191],{"type":18,"value":192},"typedef",{"type":13,"tag":182,"props":194,"children":195},{"style":189},[196],{"type":18,"value":197}," struct",{"type":13,"tag":182,"props":199,"children":201},{"style":200},"--shiki-default:#1F2328;--shiki-dark:#E6EDF3",[202],{"type":18,"value":203}," VkSamplerYcbcrConversionInfo {\n",{"type":13,"tag":182,"props":205,"children":207},{"class":184,"line":206},2,[208],{"type":13,"tag":182,"props":209,"children":210},{"style":200},[211],{"type":18,"value":212}," VkStructureType sType;\n",{"type":13,"tag":182,"props":214,"children":216},{"class":184,"line":215},3,[217,222,227],{"type":13,"tag":182,"props":218,"children":219},{"style":189},[220],{"type":18,"value":221}," const",{"type":13,"tag":182,"props":223,"children":224},{"style":189},[225],{"type":18,"value":226}," void*",{"type":13,"tag":182,"props":228,"children":229},{"style":200},[230],{"type":18,"value":231}," pNext;\n",{"type":13,"tag":182,"props":233,"children":235},{"class":184,"line":234},4,[236],{"type":13,"tag":182,"props":237,"children":238},{"style":200},[239],{"type":18,"value":240}," VkSamplerYcbcrConversion conversion;\n",{"type":13,"tag":182,"props":242,"children":244},{"class":184,"line":243},5,[245],{"type":13,"tag":182,"props":246,"children":247},{"style":200},[248],{"type":18,"value":249},"} VkSamplerYcbcrConversionInfo;\n",{"type":13,"tag":171,"props":251,"children":256},{"className":252,"code":253,"filename":254,"language":255,"meta":176,"style":176},"language-rs shiki shiki-themes github-light-default github-dark-default","pub struct SamplerYcbcrConversionInfo {\n s_type: vk::StructureType,\n p_next: *const c_void,\n conversion: vk::SamplerYcbcrConversion,\n}\n","Rust","rs",[257],{"type":13,"tag":44,"props":258,"children":259},{"__ignoreMap":176},[260,283,316,338,367],{"type":13,"tag":182,"props":261,"children":262},{"class":184,"line":185},[263,268,272,278],{"type":13,"tag":182,"props":264,"children":265},{"style":189},[266],{"type":18,"value":267},"pub",{"type":13,"tag":182,"props":269,"children":270},{"style":189},[271],{"type":18,"value":197},{"type":13,"tag":182,"props":273,"children":275},{"style":274},"--shiki-default:#953800;--shiki-dark:#FFA657",[276],{"type":18,"value":277}," SamplerYcbcrConversionInfo",{"type":13,"tag":182,"props":279,"children":280},{"style":200},[281],{"type":18,"value":282}," {\n",{"type":13,"tag":182,"props":284,"children":285},{"class":184,"line":206},[286,291,296,301,306,311],{"type":13,"tag":182,"props":287,"children":288},{"style":200},[289],{"type":18,"value":290}," s_type",{"type":13,"tag":182,"props":292,"children":293},{"style":189},[294],{"type":18,"value":295},":",{"type":13,"tag":182,"props":297,"children":298},{"style":274},[299],{"type":18,"value":300}," vk",{"type":13,"tag":182,"props":302,"children":303},{"style":189},[304],{"type":18,"value":305},"::",{"type":13,"tag":182,"props":307,"children":308},{"style":274},[309],{"type":18,"value":310},"StructureType",{"type":13,"tag":182,"props":312,"children":313},{"style":200},[314],{"type":18,"value":315},",\n",{"type":13,"tag":182,"props":317,"children":318},{"class":184,"line":215},[319,324,328,333],{"type":13,"tag":182,"props":320,"children":321},{"style":200},[322],{"type":18,"value":323}," p_next",{"type":13,"tag":182,"props":325,"children":326},{"style":189},[327],{"type":18,"value":295},{"type":13,"tag":182,"props":329,"children":330},{"style":189},[331],{"type":18,"value":332}," *const",{"type":13,"tag":182,"props":334,"children":335},{"style":200},[336],{"type":18,"value":337}," c_void,\n",{"type":13,"tag":182,"props":339,"children":340},{"class":184,"line":234},[341,346,350,354,358,363],{"type":13,"tag":182,"props":342,"children":343},{"style":200},[344],{"type":18,"value":345}," conversion",{"type":13,"tag":182,"props":347,"children":348},{"style":189},[349],{"type":18,"value":295},{"type":13,"tag":182,"props":351,"children":352},{"style":274},[353],{"type":18,"value":300},{"type":13,"tag":182,"props":355,"children":356},{"style":189},[357],{"type":18,"value":305},{"type":13,"tag":182,"props":359,"children":360},{"style":274},[361],{"type":18,"value":362},"SamplerYcbcrConversion",{"type":13,"tag":182,"props":364,"children":365},{"style":200},[366],{"type":18,"value":315},{"type":13,"tag":182,"props":368,"children":369},{"class":184,"line":243},[370],{"type":13,"tag":182,"props":371,"children":372},{"style":200},[373],{"type":18,"value":374},"}\n",{"type":13,"tag":14,"props":376,"children":377},{},[378],{"type":18,"value":379},"or the equivalent",{"type":13,"tag":167,"props":381,"children":382},{},[383,402],{"type":13,"tag":171,"props":384,"children":386},{"className":173,"code":385,"filename":27,"language":175,"meta":176,"style":176},"typedef VkSamplerYcbcrConversionInfo VkSamplerYcbcrConversionInfoKHR;\n",[387],{"type":13,"tag":44,"props":388,"children":389},{"__ignoreMap":176},[390],{"type":13,"tag":182,"props":391,"children":392},{"class":184,"line":185},[393,397],{"type":13,"tag":182,"props":394,"children":395},{"style":189},[396],{"type":18,"value":192},{"type":13,"tag":182,"props":398,"children":399},{"style":200},[400],{"type":18,"value":401}," VkSamplerYcbcrConversionInfo VkSamplerYcbcrConversionInfoKHR;\n",{"type":13,"tag":171,"props":403,"children":405},{"className":252,"code":404,"filename":254,"language":255,"meta":176,"style":176},"type SamplerYcbcrConversionInfoKHR = vk::SamplerYcbcrConversionInfo;\n",[406],{"type":13,"tag":44,"props":407,"children":408},{"__ignoreMap":176},[409],{"type":13,"tag":182,"props":410,"children":411},{"class":184,"line":185},[412,417,422,427,431,435,440],{"type":13,"tag":182,"props":413,"children":414},{"style":189},[415],{"type":18,"value":416},"type",{"type":13,"tag":182,"props":418,"children":419},{"style":274},[420],{"type":18,"value":421}," SamplerYcbcrConversionInfoKHR",{"type":13,"tag":182,"props":423,"children":424},{"style":189},[425],{"type":18,"value":426}," =",{"type":13,"tag":182,"props":428,"children":429},{"style":274},[430],{"type":18,"value":300},{"type":13,"tag":182,"props":432,"children":433},{"style":189},[434],{"type":18,"value":305},{"type":13,"tag":182,"props":436,"children":437},{"style":274},[438],{"type":18,"value":439},"SamplerYcbcrConversionInfo",{"type":13,"tag":182,"props":441,"children":442},{"style":200},[443],{"type":18,"value":444},";\n",{"type":13,"tag":446,"props":447,"children":448},"ul",{},[449,469,487],{"type":13,"tag":450,"props":451,"children":452},"li",{},[453,459,461,467],{"type":13,"tag":44,"props":454,"children":456},{"className":455},[],[457],{"type":18,"value":458},"sType",{"type":18,"value":460}," is a ",{"type":13,"tag":36,"props":462,"children":464},{"href":463},"/man/VkStructureType",[465],{"type":18,"value":466},"VkStructureType",{"type":18,"value":468}," value identifying this structure.",{"type":13,"tag":450,"props":470,"children":471},{},[472,477,479,485],{"type":13,"tag":44,"props":473,"children":475},{"className":474},[],[476],{"type":18,"value":49},{"type":18,"value":478}," is ",{"type":13,"tag":44,"props":480,"children":482},{"className":481},[],[483],{"type":18,"value":484},"NULL",{"type":18,"value":486}," or a pointer to a structure extending this\nstructure.",{"type":13,"tag":450,"props":488,"children":489},{},[490,496,497,503,505,511],{"type":13,"tag":44,"props":491,"children":493},{"className":492},[],[494],{"type":18,"value":495},"conversion",{"type":18,"value":460},{"type":13,"tag":36,"props":498,"children":500},{"href":499},"/man/VkSamplerYcbcrConversion",[501],{"type":18,"value":502},"VkSamplerYcbcrConversion",{"type":18,"value":504}," handle created with\n",{"type":13,"tag":36,"props":506,"children":508},{"href":507},"/man/vkCreateSamplerYcbcrConversion",[509],{"type":18,"value":510},"vkCreateSamplerYcbcrConversion",{"type":18,"value":102},{"type":13,"tag":513,"props":514,"children":516},"validity-group",{"name":515},"Valid Usage (Implicit)",[517,542],{"type":13,"tag":518,"props":519,"children":521},"validity-field",{"name":520},"VUID-VkSamplerYcbcrConversionInfo-sType-sType",[522],{"type":13,"tag":14,"props":523,"children":524},{},[525,530,531,534,536],{"type":13,"tag":44,"props":526,"children":528},{"className":527},[],[529],{"type":18,"value":458},{"type":18,"value":113},{"type":13,"tag":84,"props":532,"children":533},{"type":86},[],{"type":18,"value":535}," be ",{"type":13,"tag":44,"props":537,"children":539},{"className":538},[],[540],{"type":18,"value":541},"VK_STRUCTURE_TYPE_SAMPLER_YCBCR_CONVERSION_INFO",{"type":13,"tag":518,"props":543,"children":545},{"name":544},"VUID-VkSamplerYcbcrConversionInfo-conversion-parameter",[546],{"type":13,"tag":14,"props":547,"children":548},{},[549,554,555,558,560,564],{"type":13,"tag":44,"props":550,"children":552},{"className":551},[],[553],{"type":18,"value":495},{"type":18,"value":113},{"type":13,"tag":84,"props":556,"children":557},{"type":86},[],{"type":18,"value":559}," be a valid ",{"type":13,"tag":36,"props":561,"children":562},{"href":499},[563],{"type":18,"value":502},{"type":18,"value":565}," handle",{"type":13,"tag":567,"props":568,"children":569},"style",{},[570],{"type":18,"value":571},"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":176,"searchDepth":206,"depth":206,"links":573},[],"markdown",1725732584854]