[{"data":1,"prerenderedAt":693},["ShallowReactive",2],{"CzrymXjJ8V":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":692,"_id":4},"vkCreateSamplerYcbcrConversion","Create a new {YCbCr} conversion","VK_VERSION_1_1","protos",[],{"type":10,"children":11,"toc":690},"root",[12,29,383,489,531,565,684],{"type":13,"tag":14,"props":15,"children":16},"element","p",{},[17,20,27],{"type":18,"value":19},"text","To create a ",{"type":13,"tag":21,"props":22,"children":24},"a",{"href":23},"/man/VkSamplerYcbcrConversion",[25],{"type":18,"value":26},"VkSamplerYcbcrConversion",{"type":18,"value":28},", call:",{"type":13,"tag":30,"props":31,"children":32},"code-group",{},[33,167],{"type":13,"tag":34,"props":35,"children":41},"pre",{"className":36,"code":37,"filename":38,"language":39,"meta":40,"style":40},"language-c shiki shiki-themes github-light-default github-dark-default","VkResult vkCreateSamplerYcbcrConversionKHR(\n VkDevice device,\n const VkSamplerYcbcrConversionCreateInfo* pCreateInfo,\n const VkAllocationCallbacks* pAllocator,\n VkSamplerYcbcrConversion* pYcbcrConversion);\n","C","c","",[42],{"type":13,"tag":43,"props":44,"children":45},"code",{"__ignoreMap":40},[46,69,89,118,144],{"type":13,"tag":47,"props":48,"children":51},"span",{"class":49,"line":50},"line",1,[52,58,64],{"type":13,"tag":47,"props":53,"children":55},{"style":54},"--shiki-default:#1F2328;--shiki-dark:#E6EDF3",[56],{"type":18,"value":57},"VkResult ",{"type":13,"tag":47,"props":59,"children":61},{"style":60},"--shiki-default:#8250DF;--shiki-dark:#D2A8FF",[62],{"type":18,"value":63},"vkCreateSamplerYcbcrConversionKHR",{"type":13,"tag":47,"props":65,"children":66},{"style":54},[67],{"type":18,"value":68},"(\n",{"type":13,"tag":47,"props":70,"children":72},{"class":49,"line":71},2,[73,78,84],{"type":13,"tag":47,"props":74,"children":75},{"style":54},[76],{"type":18,"value":77}," VkDevice ",{"type":13,"tag":47,"props":79,"children":81},{"style":80},"--shiki-default:#953800;--shiki-dark:#FFA657",[82],{"type":18,"value":83},"device",{"type":13,"tag":47,"props":85,"children":86},{"style":54},[87],{"type":18,"value":88},",\n",{"type":13,"tag":47,"props":90,"children":92},{"class":49,"line":91},3,[93,99,104,109,114],{"type":13,"tag":47,"props":94,"children":96},{"style":95},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[97],{"type":18,"value":98}," const",{"type":13,"tag":47,"props":100,"children":101},{"style":54},[102],{"type":18,"value":103}," VkSamplerYcbcrConversionCreateInfo",{"type":13,"tag":47,"props":105,"children":106},{"style":95},[107],{"type":18,"value":108},"*",{"type":13,"tag":47,"props":110,"children":111},{"style":80},[112],{"type":18,"value":113}," pCreateInfo",{"type":13,"tag":47,"props":115,"children":116},{"style":54},[117],{"type":18,"value":88},{"type":13,"tag":47,"props":119,"children":121},{"class":49,"line":120},4,[122,126,131,135,140],{"type":13,"tag":47,"props":123,"children":124},{"style":95},[125],{"type":18,"value":98},{"type":13,"tag":47,"props":127,"children":128},{"style":54},[129],{"type":18,"value":130}," VkAllocationCallbacks",{"type":13,"tag":47,"props":132,"children":133},{"style":95},[134],{"type":18,"value":108},{"type":13,"tag":47,"props":136,"children":137},{"style":80},[138],{"type":18,"value":139}," pAllocator",{"type":13,"tag":47,"props":141,"children":142},{"style":54},[143],{"type":18,"value":88},{"type":13,"tag":47,"props":145,"children":147},{"class":49,"line":146},5,[148,153,157,162],{"type":13,"tag":47,"props":149,"children":150},{"style":54},[151],{"type":18,"value":152}," VkSamplerYcbcrConversion",{"type":13,"tag":47,"props":154,"children":155},{"style":95},[156],{"type":18,"value":108},{"type":13,"tag":47,"props":158,"children":159},{"style":80},[160],{"type":18,"value":161}," pYcbcrConversion",{"type":13,"tag":47,"props":163,"children":164},{"style":54},[165],{"type":18,"value":166},");\n",{"type":13,"tag":34,"props":168,"children":173},{"className":169,"code":170,"filename":171,"language":172,"meta":40,"style":40},"language-rs shiki shiki-themes github-light-default github-dark-default","pub fn create_sampler_ycbcr_conversion_khr(\n device: crate :: vk :: vk::Device,\n p_create_info: *const vk::SamplerYcbcrConversionCreateInfo,\n p_allocator: *const vk::AllocationCallbacks,\n p_ycbcr_conversion: *mut vk::SamplerYcbcrConversion,\n) -> vk::Result;\n","Rust","rs",[174],{"type":13,"tag":43,"props":175,"children":176},{"__ignoreMap":40},[177,199,250,284,317,351],{"type":13,"tag":47,"props":178,"children":179},{"class":49,"line":50},[180,185,190,195],{"type":13,"tag":47,"props":181,"children":182},{"style":95},[183],{"type":18,"value":184},"pub",{"type":13,"tag":47,"props":186,"children":187},{"style":95},[188],{"type":18,"value":189}," fn",{"type":13,"tag":47,"props":191,"children":192},{"style":60},[193],{"type":18,"value":194}," create_sampler_ycbcr_conversion_khr",{"type":13,"tag":47,"props":196,"children":197},{"style":54},[198],{"type":18,"value":68},{"type":13,"tag":47,"props":200,"children":201},{"class":49,"line":71},[202,207,212,217,222,227,232,237,241,246],{"type":13,"tag":47,"props":203,"children":204},{"style":54},[205],{"type":18,"value":206}," device",{"type":13,"tag":47,"props":208,"children":209},{"style":95},[210],{"type":18,"value":211},":",{"type":13,"tag":47,"props":213,"children":214},{"style":95},[215],{"type":18,"value":216}," crate",{"type":13,"tag":47,"props":218,"children":219},{"style":95},[220],{"type":18,"value":221}," ::",{"type":13,"tag":47,"props":223,"children":224},{"style":54},[225],{"type":18,"value":226}," vk ",{"type":13,"tag":47,"props":228,"children":229},{"style":95},[230],{"type":18,"value":231},"::",{"type":13,"tag":47,"props":233,"children":234},{"style":80},[235],{"type":18,"value":236}," vk",{"type":13,"tag":47,"props":238,"children":239},{"style":95},[240],{"type":18,"value":231},{"type":13,"tag":47,"props":242,"children":243},{"style":80},[244],{"type":18,"value":245},"Device",{"type":13,"tag":47,"props":247,"children":248},{"style":54},[249],{"type":18,"value":88},{"type":13,"tag":47,"props":251,"children":252},{"class":49,"line":91},[253,258,262,267,271,275,280],{"type":13,"tag":47,"props":254,"children":255},{"style":54},[256],{"type":18,"value":257}," p_create_info",{"type":13,"tag":47,"props":259,"children":260},{"style":95},[261],{"type":18,"value":211},{"type":13,"tag":47,"props":263,"children":264},{"style":95},[265],{"type":18,"value":266}," *const",{"type":13,"tag":47,"props":268,"children":269},{"style":80},[270],{"type":18,"value":236},{"type":13,"tag":47,"props":272,"children":273},{"style":95},[274],{"type":18,"value":231},{"type":13,"tag":47,"props":276,"children":277},{"style":80},[278],{"type":18,"value":279},"SamplerYcbcrConversionCreateInfo",{"type":13,"tag":47,"props":281,"children":282},{"style":54},[283],{"type":18,"value":88},{"type":13,"tag":47,"props":285,"children":286},{"class":49,"line":120},[287,292,296,300,304,308,313],{"type":13,"tag":47,"props":288,"children":289},{"style":54},[290],{"type":18,"value":291}," p_allocator",{"type":13,"tag":47,"props":293,"children":294},{"style":95},[295],{"type":18,"value":211},{"type":13,"tag":47,"props":297,"children":298},{"style":95},[299],{"type":18,"value":266},{"type":13,"tag":47,"props":301,"children":302},{"style":80},[303],{"type":18,"value":236},{"type":13,"tag":47,"props":305,"children":306},{"style":95},[307],{"type":18,"value":231},{"type":13,"tag":47,"props":309,"children":310},{"style":80},[311],{"type":18,"value":312},"AllocationCallbacks",{"type":13,"tag":47,"props":314,"children":315},{"style":54},[316],{"type":18,"value":88},{"type":13,"tag":47,"props":318,"children":319},{"class":49,"line":146},[320,325,329,334,338,342,347],{"type":13,"tag":47,"props":321,"children":322},{"style":54},[323],{"type":18,"value":324}," p_ycbcr_conversion",{"type":13,"tag":47,"props":326,"children":327},{"style":95},[328],{"type":18,"value":211},{"type":13,"tag":47,"props":330,"children":331},{"style":95},[332],{"type":18,"value":333}," *mut",{"type":13,"tag":47,"props":335,"children":336},{"style":80},[337],{"type":18,"value":236},{"type":13,"tag":47,"props":339,"children":340},{"style":95},[341],{"type":18,"value":231},{"type":13,"tag":47,"props":343,"children":344},{"style":80},[345],{"type":18,"value":346},"SamplerYcbcrConversion",{"type":13,"tag":47,"props":348,"children":349},{"style":54},[350],{"type":18,"value":88},{"type":13,"tag":47,"props":352,"children":354},{"class":49,"line":353},6,[355,360,365,369,373,378],{"type":13,"tag":47,"props":356,"children":357},{"style":54},[358],{"type":18,"value":359},") ",{"type":13,"tag":47,"props":361,"children":362},{"style":95},[363],{"type":18,"value":364},"->",{"type":13,"tag":47,"props":366,"children":367},{"style":80},[368],{"type":18,"value":236},{"type":13,"tag":47,"props":370,"children":371},{"style":95},[372],{"type":18,"value":231},{"type":13,"tag":47,"props":374,"children":375},{"style":80},[376],{"type":18,"value":377},"Result",{"type":13,"tag":47,"props":379,"children":380},{"style":54},[381],{"type":18,"value":382},";\n",{"type":13,"tag":384,"props":385,"children":386},"ul",{},[387,412,442,461],{"type":13,"tag":388,"props":389,"children":390},"li",{},[391,396,398,404,405,410],{"type":13,"tag":43,"props":392,"children":394},{"className":393},[],[395],{"type":18,"value":83},{"type":18,"value":397}," is the logical device that creates the sampler Y′C",{"type":13,"tag":399,"props":400,"children":401},"sub",{},[402],{"type":18,"value":403},"B",{"type":18,"value":38},{"type":13,"tag":399,"props":406,"children":407},{},[408],{"type":18,"value":409},"R",{"type":18,"value":411},"\nconversion.",{"type":13,"tag":388,"props":413,"children":414},{},[415,421,423,429,431,435,436,440],{"type":13,"tag":43,"props":416,"children":418},{"className":417},[],[419],{"type":18,"value":420},"pCreateInfo",{"type":18,"value":422}," is a pointer to a\n",{"type":13,"tag":21,"props":424,"children":426},{"href":425},"/man/VkSamplerYcbcrConversionCreateInfo",[427],{"type":18,"value":428},"VkSamplerYcbcrConversionCreateInfo",{"type":18,"value":430}," structure specifying the\nrequested sampler Y′C",{"type":13,"tag":399,"props":432,"children":433},{},[434],{"type":18,"value":403},{"type":18,"value":38},{"type":13,"tag":399,"props":437,"children":438},{},[439],{"type":18,"value":409},{"type":18,"value":441}," conversion.",{"type":13,"tag":388,"props":443,"children":444},{},[445,451,453,459],{"type":13,"tag":43,"props":446,"children":448},{"className":447},[],[449],{"type":18,"value":450},"pAllocator",{"type":18,"value":452}," controls host memory allocation as described in the\n",{"type":13,"tag":21,"props":454,"children":456},{"href":455},"/chapters/memory#memory-allocation",[457],{"type":18,"value":458},"Memory Allocation",{"type":18,"value":460}," chapter.",{"type":13,"tag":388,"props":462,"children":463},{},[464,470,472,476,478,482,483,487],{"type":13,"tag":43,"props":465,"children":467},{"className":466},[],[468],{"type":18,"value":469},"pYcbcrConversion",{"type":18,"value":471}," is a pointer to a ",{"type":13,"tag":21,"props":473,"children":474},{"href":23},[475],{"type":18,"value":26},{"type":18,"value":477},"\nhandle in which the resulting sampler Y′C",{"type":13,"tag":399,"props":479,"children":480},{},[481],{"type":18,"value":403},{"type":18,"value":38},{"type":13,"tag":399,"props":484,"children":485},{},[486],{"type":18,"value":409},{"type":18,"value":488}," conversion is returned.",{"type":13,"tag":14,"props":490,"children":491},{},[492,494,498,499,503,505,522,524,530],{"type":18,"value":493},"The interpretation of the configured sampler Y′C",{"type":13,"tag":399,"props":495,"children":496},{},[497],{"type":18,"value":403},{"type":18,"value":38},{"type":13,"tag":399,"props":500,"children":501},{},[502],{"type":18,"value":409},{"type":18,"value":504}," conversion is described\nin more detail in ",{"type":13,"tag":21,"props":506,"children":508},{"href":507},"/chapters/textures#textures-sampler-YCbCr-conversion",[509,511,515,516,520],{"type":18,"value":510},"the description of\nsampler Y′C",{"type":13,"tag":399,"props":512,"children":513},{},[514],{"type":18,"value":403},{"type":18,"value":38},{"type":13,"tag":399,"props":517,"children":518},{},[519],{"type":18,"value":409},{"type":18,"value":521}," conversion",{"type":18,"value":523}," in the ",{"type":13,"tag":21,"props":525,"children":527},{"href":526},"/chapters/textures#textures",[528],{"type":18,"value":529},"Image Operations",{"type":18,"value":460},{"type":13,"tag":532,"props":533,"children":535},"validity-group",{"name":534},"Valid Usage",[536],{"type":13,"tag":537,"props":538,"children":540},"validity-field",{"name":539},"VUID-vkCreateSamplerYcbcrConversion-None-01648",[541],{"type":13,"tag":14,"props":542,"children":543},{},[544,546,556,558,563],{"type":18,"value":545},"The ",{"type":13,"tag":21,"props":547,"children":549},{"href":548},"/man/VkPhysicalDeviceSamplerYcbcrConversionFeatures#features-samplerYcbcrConversion",[550],{"type":13,"tag":43,"props":551,"children":553},{"className":552},[],[554],{"type":18,"value":555},"samplerYcbcrConversion",{"type":18,"value":557},"\nfeature ",{"type":13,"tag":559,"props":560,"children":562},"normative",{"type":561},"must",[],{"type":18,"value":564}," be enabled",{"type":13,"tag":532,"props":566,"children":568},{"name":567},"Valid Usage (Implicit)",[569,596,620,661],{"type":13,"tag":537,"props":570,"children":572},{"name":571},"VUID-vkCreateSamplerYcbcrConversion-device-parameter",[573],{"type":13,"tag":14,"props":574,"children":575},{},[576,581,583,586,588,594],{"type":13,"tag":43,"props":577,"children":579},{"className":578},[],[580],{"type":18,"value":83},{"type":18,"value":582}," ",{"type":13,"tag":559,"props":584,"children":585},{"type":561},[],{"type":18,"value":587}," be a valid ",{"type":13,"tag":21,"props":589,"children":591},{"href":590},"/man/VkDevice",[592],{"type":18,"value":593},"VkDevice",{"type":18,"value":595}," handle",{"type":13,"tag":537,"props":597,"children":599},{"name":598},"VUID-vkCreateSamplerYcbcrConversion-pCreateInfo-parameter",[600],{"type":13,"tag":14,"props":601,"children":602},{},[603,608,609,612,614,618],{"type":13,"tag":43,"props":604,"children":606},{"className":605},[],[607],{"type":18,"value":420},{"type":18,"value":582},{"type":13,"tag":559,"props":610,"children":611},{"type":561},[],{"type":18,"value":613}," be a valid pointer to a valid ",{"type":13,"tag":21,"props":615,"children":616},{"href":425},[617],{"type":18,"value":428},{"type":18,"value":619}," structure",{"type":13,"tag":537,"props":621,"children":623},{"name":622},"VUID-vkCreateSamplerYcbcrConversion-pAllocator-parameter",[624],{"type":13,"tag":14,"props":625,"children":626},{},[627,629,634,636,642,644,649,650,653,654,660],{"type":18,"value":628},"If ",{"type":13,"tag":43,"props":630,"children":632},{"className":631},[],[633],{"type":18,"value":450},{"type":18,"value":635}," is not ",{"type":13,"tag":43,"props":637,"children":639},{"className":638},[],[640],{"type":18,"value":641},"NULL",{"type":18,"value":643},", ",{"type":13,"tag":43,"props":645,"children":647},{"className":646},[],[648],{"type":18,"value":450},{"type":18,"value":582},{"type":13,"tag":559,"props":651,"children":652},{"type":561},[],{"type":18,"value":613},{"type":13,"tag":21,"props":655,"children":657},{"href":656},"/man/VkAllocationCallbacks",[658],{"type":18,"value":659},"VkAllocationCallbacks",{"type":18,"value":619},{"type":13,"tag":537,"props":662,"children":664},{"name":663},"VUID-vkCreateSamplerYcbcrConversion-pYcbcrConversion-parameter",[665],{"type":13,"tag":14,"props":666,"children":667},{},[668,673,674,677,679,683],{"type":13,"tag":43,"props":669,"children":671},{"className":670},[],[672],{"type":18,"value":469},{"type":18,"value":582},{"type":13,"tag":559,"props":675,"children":676},{"type":561},[],{"type":18,"value":678}," be a valid pointer to a ",{"type":13,"tag":21,"props":680,"children":681},{"href":23},[682],{"type":18,"value":26},{"type":18,"value":595},{"type":13,"tag":685,"props":686,"children":687},"style",{},[688],{"type":18,"value":689},"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":40,"searchDepth":71,"depth":71,"links":691},[],"markdown",1725732613707]