[{"data":1,"prerenderedAt":789},["ShallowReactive",2],{"k6rAl6ky9e":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":788,"_id":4},"VkAndroidHardwareBufferFormatProperties2ANDROID","Structure describing the image format properties of an Android hardware buffer","VK_ANDROID_external_memory_android_hardware_buffer","structs",[],{"type":10,"children":11,"toc":786},"root",[12,60,527,720,750,780],{"type":13,"tag":14,"props":15,"children":16},"element","p",{},[17,20,25,27,33,35,41,43,50,52,58],{"type":18,"value":19},"text","The format properties of an Android hardware buffer ",{"type":13,"tag":21,"props":22,"children":24},"normative",{"type":23},"can",[],{"type":18,"value":26}," be obtained by\nincluding a ",{"type":13,"tag":28,"props":29,"children":31},"code",{"className":30},[],[32],{"type":18,"value":4},{"type":18,"value":34}," structure\nin the ",{"type":13,"tag":28,"props":36,"children":38},{"className":37},[],[39],{"type":18,"value":40},"pNext",{"type":18,"value":42}," chain of the\n",{"type":13,"tag":44,"props":45,"children":47},"a",{"href":46},"/man/VkAndroidHardwareBufferPropertiesANDROID",[48],{"type":18,"value":49},"VkAndroidHardwareBufferPropertiesANDROID",{"type":18,"value":51}," structure passed to\n",{"type":13,"tag":44,"props":53,"children":55},{"href":54},"/man/vkGetAndroidHardwareBufferPropertiesANDROID",[56],{"type":18,"value":57},"vkGetAndroidHardwareBufferPropertiesANDROID",{"type":18,"value":59},".\nThis structure is defined as:",{"type":13,"tag":61,"props":62,"children":63},"code-group",{},[64,208],{"type":13,"tag":65,"props":66,"children":72},"pre",{"className":67,"code":68,"filename":69,"language":70,"meta":71,"style":71},"language-c shiki shiki-themes github-light-default github-dark-default","typedef struct VkAndroidHardwareBufferFormatProperties2ANDROID {\n VkStructureType sType;\n void* pNext;\n VkFormat format;\n uint64_t externalFormat;\n VkFormatFeatureFlags2 formatFeatures;\n VkComponentMapping samplerYcbcrConversionComponents;\n VkSamplerYcbcrModelConversion suggestedYcbcrModel;\n VkSamplerYcbcrRange suggestedYcbcrRange;\n VkChromaLocation suggestedXChromaOffset;\n VkChromaLocation suggestedYChromaOffset;\n} VkAndroidHardwareBufferFormatProperties2ANDROID;\n","C","c","",[73],{"type":13,"tag":28,"props":74,"children":75},{"__ignoreMap":71},[76,99,108,122,131,145,154,163,172,181,190,199],{"type":13,"tag":77,"props":78,"children":81},"span",{"class":79,"line":80},"line",1,[82,88,93],{"type":13,"tag":77,"props":83,"children":85},{"style":84},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[86],{"type":18,"value":87},"typedef",{"type":13,"tag":77,"props":89,"children":90},{"style":84},[91],{"type":18,"value":92}," struct",{"type":13,"tag":77,"props":94,"children":96},{"style":95},"--shiki-default:#1F2328;--shiki-dark:#E6EDF3",[97],{"type":18,"value":98}," VkAndroidHardwareBufferFormatProperties2ANDROID {\n",{"type":13,"tag":77,"props":100,"children":102},{"class":79,"line":101},2,[103],{"type":13,"tag":77,"props":104,"children":105},{"style":95},[106],{"type":18,"value":107}," VkStructureType sType;\n",{"type":13,"tag":77,"props":109,"children":111},{"class":79,"line":110},3,[112,117],{"type":13,"tag":77,"props":113,"children":114},{"style":84},[115],{"type":18,"value":116}," void*",{"type":13,"tag":77,"props":118,"children":119},{"style":95},[120],{"type":18,"value":121}," pNext;\n",{"type":13,"tag":77,"props":123,"children":125},{"class":79,"line":124},4,[126],{"type":13,"tag":77,"props":127,"children":128},{"style":95},[129],{"type":18,"value":130}," VkFormat format;\n",{"type":13,"tag":77,"props":132,"children":134},{"class":79,"line":133},5,[135,140],{"type":13,"tag":77,"props":136,"children":137},{"style":84},[138],{"type":18,"value":139}," uint64_t",{"type":13,"tag":77,"props":141,"children":142},{"style":95},[143],{"type":18,"value":144}," externalFormat;\n",{"type":13,"tag":77,"props":146,"children":148},{"class":79,"line":147},6,[149],{"type":13,"tag":77,"props":150,"children":151},{"style":95},[152],{"type":18,"value":153}," VkFormatFeatureFlags2 formatFeatures;\n",{"type":13,"tag":77,"props":155,"children":157},{"class":79,"line":156},7,[158],{"type":13,"tag":77,"props":159,"children":160},{"style":95},[161],{"type":18,"value":162}," VkComponentMapping samplerYcbcrConversionComponents;\n",{"type":13,"tag":77,"props":164,"children":166},{"class":79,"line":165},8,[167],{"type":13,"tag":77,"props":168,"children":169},{"style":95},[170],{"type":18,"value":171}," VkSamplerYcbcrModelConversion suggestedYcbcrModel;\n",{"type":13,"tag":77,"props":173,"children":175},{"class":79,"line":174},9,[176],{"type":13,"tag":77,"props":177,"children":178},{"style":95},[179],{"type":18,"value":180}," VkSamplerYcbcrRange suggestedYcbcrRange;\n",{"type":13,"tag":77,"props":182,"children":184},{"class":79,"line":183},10,[185],{"type":13,"tag":77,"props":186,"children":187},{"style":95},[188],{"type":18,"value":189}," VkChromaLocation suggestedXChromaOffset;\n",{"type":13,"tag":77,"props":191,"children":193},{"class":79,"line":192},11,[194],{"type":13,"tag":77,"props":195,"children":196},{"style":95},[197],{"type":18,"value":198}," VkChromaLocation suggestedYChromaOffset;\n",{"type":13,"tag":77,"props":200,"children":202},{"class":79,"line":201},12,[203],{"type":13,"tag":77,"props":204,"children":205},{"style":95},[206],{"type":18,"value":207},"} VkAndroidHardwareBufferFormatProperties2ANDROID;\n",{"type":13,"tag":65,"props":209,"children":214},{"className":210,"code":211,"filename":212,"language":213,"meta":71,"style":71},"language-rs shiki shiki-themes github-light-default github-dark-default","pub struct AndroidHardwareBufferFormatProperties2ANDROID {\n s_type: vk::StructureType,\n p_next: *mut c_void,\n format: vk::Format,\n external_format: u64,\n format_features: vk::FormatFeatureFlags2,\n sampler_ycbcr_conversion_components: vk::ComponentMapping,\n suggested_ycbcr_model: vk::SamplerYcbcrModelConversion,\n suggested_ycbcr_range: vk::SamplerYcbcrRange,\n suggested_x_chroma_offset: vk::ChromaLocation,\n suggested_y_chroma_offset: vk::ChromaLocation,\n}\n","Rust","rs",[215],{"type":13,"tag":28,"props":216,"children":217},{"__ignoreMap":71},[218,241,274,296,325,346,375,404,433,462,491,519],{"type":13,"tag":77,"props":219,"children":220},{"class":79,"line":80},[221,226,230,236],{"type":13,"tag":77,"props":222,"children":223},{"style":84},[224],{"type":18,"value":225},"pub",{"type":13,"tag":77,"props":227,"children":228},{"style":84},[229],{"type":18,"value":92},{"type":13,"tag":77,"props":231,"children":233},{"style":232},"--shiki-default:#953800;--shiki-dark:#FFA657",[234],{"type":18,"value":235}," AndroidHardwareBufferFormatProperties2ANDROID",{"type":13,"tag":77,"props":237,"children":238},{"style":95},[239],{"type":18,"value":240}," {\n",{"type":13,"tag":77,"props":242,"children":243},{"class":79,"line":101},[244,249,254,259,264,269],{"type":13,"tag":77,"props":245,"children":246},{"style":95},[247],{"type":18,"value":248}," s_type",{"type":13,"tag":77,"props":250,"children":251},{"style":84},[252],{"type":18,"value":253},":",{"type":13,"tag":77,"props":255,"children":256},{"style":232},[257],{"type":18,"value":258}," vk",{"type":13,"tag":77,"props":260,"children":261},{"style":84},[262],{"type":18,"value":263},"::",{"type":13,"tag":77,"props":265,"children":266},{"style":232},[267],{"type":18,"value":268},"StructureType",{"type":13,"tag":77,"props":270,"children":271},{"style":95},[272],{"type":18,"value":273},",\n",{"type":13,"tag":77,"props":275,"children":276},{"class":79,"line":110},[277,282,286,291],{"type":13,"tag":77,"props":278,"children":279},{"style":95},[280],{"type":18,"value":281}," p_next",{"type":13,"tag":77,"props":283,"children":284},{"style":84},[285],{"type":18,"value":253},{"type":13,"tag":77,"props":287,"children":288},{"style":84},[289],{"type":18,"value":290}," *mut",{"type":13,"tag":77,"props":292,"children":293},{"style":95},[294],{"type":18,"value":295}," c_void,\n",{"type":13,"tag":77,"props":297,"children":298},{"class":79,"line":124},[299,304,308,312,316,321],{"type":13,"tag":77,"props":300,"children":301},{"style":95},[302],{"type":18,"value":303}," format",{"type":13,"tag":77,"props":305,"children":306},{"style":84},[307],{"type":18,"value":253},{"type":13,"tag":77,"props":309,"children":310},{"style":232},[311],{"type":18,"value":258},{"type":13,"tag":77,"props":313,"children":314},{"style":84},[315],{"type":18,"value":263},{"type":13,"tag":77,"props":317,"children":318},{"style":232},[319],{"type":18,"value":320},"Format",{"type":13,"tag":77,"props":322,"children":323},{"style":95},[324],{"type":18,"value":273},{"type":13,"tag":77,"props":326,"children":327},{"class":79,"line":133},[328,333,337,342],{"type":13,"tag":77,"props":329,"children":330},{"style":95},[331],{"type":18,"value":332}," external_format",{"type":13,"tag":77,"props":334,"children":335},{"style":84},[336],{"type":18,"value":253},{"type":13,"tag":77,"props":338,"children":339},{"style":232},[340],{"type":18,"value":341}," u64",{"type":13,"tag":77,"props":343,"children":344},{"style":95},[345],{"type":18,"value":273},{"type":13,"tag":77,"props":347,"children":348},{"class":79,"line":147},[349,354,358,362,366,371],{"type":13,"tag":77,"props":350,"children":351},{"style":95},[352],{"type":18,"value":353}," format_features",{"type":13,"tag":77,"props":355,"children":356},{"style":84},[357],{"type":18,"value":253},{"type":13,"tag":77,"props":359,"children":360},{"style":232},[361],{"type":18,"value":258},{"type":13,"tag":77,"props":363,"children":364},{"style":84},[365],{"type":18,"value":263},{"type":13,"tag":77,"props":367,"children":368},{"style":232},[369],{"type":18,"value":370},"FormatFeatureFlags2",{"type":13,"tag":77,"props":372,"children":373},{"style":95},[374],{"type":18,"value":273},{"type":13,"tag":77,"props":376,"children":377},{"class":79,"line":156},[378,383,387,391,395,400],{"type":13,"tag":77,"props":379,"children":380},{"style":95},[381],{"type":18,"value":382}," sampler_ycbcr_conversion_components",{"type":13,"tag":77,"props":384,"children":385},{"style":84},[386],{"type":18,"value":253},{"type":13,"tag":77,"props":388,"children":389},{"style":232},[390],{"type":18,"value":258},{"type":13,"tag":77,"props":392,"children":393},{"style":84},[394],{"type":18,"value":263},{"type":13,"tag":77,"props":396,"children":397},{"style":232},[398],{"type":18,"value":399},"ComponentMapping",{"type":13,"tag":77,"props":401,"children":402},{"style":95},[403],{"type":18,"value":273},{"type":13,"tag":77,"props":405,"children":406},{"class":79,"line":165},[407,412,416,420,424,429],{"type":13,"tag":77,"props":408,"children":409},{"style":95},[410],{"type":18,"value":411}," suggested_ycbcr_model",{"type":13,"tag":77,"props":413,"children":414},{"style":84},[415],{"type":18,"value":253},{"type":13,"tag":77,"props":417,"children":418},{"style":232},[419],{"type":18,"value":258},{"type":13,"tag":77,"props":421,"children":422},{"style":84},[423],{"type":18,"value":263},{"type":13,"tag":77,"props":425,"children":426},{"style":232},[427],{"type":18,"value":428},"SamplerYcbcrModelConversion",{"type":13,"tag":77,"props":430,"children":431},{"style":95},[432],{"type":18,"value":273},{"type":13,"tag":77,"props":434,"children":435},{"class":79,"line":174},[436,441,445,449,453,458],{"type":13,"tag":77,"props":437,"children":438},{"style":95},[439],{"type":18,"value":440}," suggested_ycbcr_range",{"type":13,"tag":77,"props":442,"children":443},{"style":84},[444],{"type":18,"value":253},{"type":13,"tag":77,"props":446,"children":447},{"style":232},[448],{"type":18,"value":258},{"type":13,"tag":77,"props":450,"children":451},{"style":84},[452],{"type":18,"value":263},{"type":13,"tag":77,"props":454,"children":455},{"style":232},[456],{"type":18,"value":457},"SamplerYcbcrRange",{"type":13,"tag":77,"props":459,"children":460},{"style":95},[461],{"type":18,"value":273},{"type":13,"tag":77,"props":463,"children":464},{"class":79,"line":183},[465,470,474,478,482,487],{"type":13,"tag":77,"props":466,"children":467},{"style":95},[468],{"type":18,"value":469}," suggested_x_chroma_offset",{"type":13,"tag":77,"props":471,"children":472},{"style":84},[473],{"type":18,"value":253},{"type":13,"tag":77,"props":475,"children":476},{"style":232},[477],{"type":18,"value":258},{"type":13,"tag":77,"props":479,"children":480},{"style":84},[481],{"type":18,"value":263},{"type":13,"tag":77,"props":483,"children":484},{"style":232},[485],{"type":18,"value":486},"ChromaLocation",{"type":13,"tag":77,"props":488,"children":489},{"style":95},[490],{"type":18,"value":273},{"type":13,"tag":77,"props":492,"children":493},{"class":79,"line":192},[494,499,503,507,511,515],{"type":13,"tag":77,"props":495,"children":496},{"style":95},[497],{"type":18,"value":498}," suggested_y_chroma_offset",{"type":13,"tag":77,"props":500,"children":501},{"style":84},[502],{"type":18,"value":253},{"type":13,"tag":77,"props":504,"children":505},{"style":232},[506],{"type":18,"value":258},{"type":13,"tag":77,"props":508,"children":509},{"style":84},[510],{"type":18,"value":263},{"type":13,"tag":77,"props":512,"children":513},{"style":232},[514],{"type":18,"value":486},{"type":13,"tag":77,"props":516,"children":517},{"style":95},[518],{"type":18,"value":273},{"type":13,"tag":77,"props":520,"children":521},{"class":79,"line":201},[522],{"type":13,"tag":77,"props":523,"children":524},{"style":95},[525],{"type":18,"value":526},"}\n",{"type":13,"tag":528,"props":529,"children":530},"ul",{},[531,551,569,588,613,632,656,672,688,704],{"type":13,"tag":532,"props":533,"children":534},"li",{},[535,541,543,549],{"type":13,"tag":28,"props":536,"children":538},{"className":537},[],[539],{"type":18,"value":540},"sType",{"type":18,"value":542}," is a ",{"type":13,"tag":44,"props":544,"children":546},{"href":545},"/man/VkStructureType",[547],{"type":18,"value":548},"VkStructureType",{"type":18,"value":550}," value identifying this structure.",{"type":13,"tag":532,"props":552,"children":553},{},[554,559,561,567],{"type":13,"tag":28,"props":555,"children":557},{"className":556},[],[558],{"type":18,"value":40},{"type":18,"value":560}," is ",{"type":13,"tag":28,"props":562,"children":564},{"className":563},[],[565],{"type":18,"value":566},"NULL",{"type":18,"value":568}," or a pointer to a structure extending this\nstructure.",{"type":13,"tag":532,"props":570,"children":571},{},[572,578,580,586],{"type":13,"tag":28,"props":573,"children":575},{"className":574},[],[576],{"type":18,"value":577},"format",{"type":18,"value":579}," is the Vulkan format corresponding to the Android hardware\nbuffer’s format, or ",{"type":13,"tag":28,"props":581,"children":583},{"className":582},[],[584],{"type":18,"value":585},"VK_FORMAT_UNDEFINED",{"type":18,"value":587}," if there is not an\nequivalent Vulkan format.",{"type":13,"tag":532,"props":589,"children":590},{},[591,597,599,605,607,611],{"type":13,"tag":28,"props":592,"children":594},{"className":593},[],[595],{"type":18,"value":596},"externalFormat",{"type":18,"value":598}," is an implementation-defined external format\nidentifier for use with ",{"type":13,"tag":44,"props":600,"children":602},{"href":601},"/man/VkExternalFormatANDROID",[603],{"type":18,"value":604},"VkExternalFormatANDROID",{"type":18,"value":606},".\nIt ",{"type":13,"tag":21,"props":608,"children":610},{"type":609},"must",[],{"type":18,"value":612}," not be zero.",{"type":13,"tag":532,"props":614,"children":615},{},[616,622,624,630],{"type":13,"tag":28,"props":617,"children":619},{"className":618},[],[620],{"type":18,"value":621},"formatFeatures",{"type":18,"value":623}," describes the capabilities of this external format\nwhen used with an image bound to memory imported from ",{"type":13,"tag":28,"props":625,"children":627},{"className":626},[],[628],{"type":18,"value":629},"buffer",{"type":18,"value":631},".",{"type":13,"tag":532,"props":633,"children":634},{},[635,641,643,647,649,655],{"type":13,"tag":28,"props":636,"children":638},{"className":637},[],[639],{"type":18,"value":640},"samplerYcbcrConversionComponents",{"type":18,"value":642}," is the component swizzle that\n",{"type":13,"tag":21,"props":644,"children":646},{"type":645},"should",[],{"type":18,"value":648}," be used in ",{"type":13,"tag":44,"props":650,"children":652},{"href":651},"/man/VkSamplerYcbcrConversionCreateInfo",[653],{"type":18,"value":654},"VkSamplerYcbcrConversionCreateInfo",{"type":18,"value":631},{"type":13,"tag":532,"props":657,"children":658},{},[659,665,667,671],{"type":13,"tag":28,"props":660,"children":662},{"className":661},[],[663],{"type":18,"value":664},"suggestedYcbcrModel",{"type":18,"value":666}," is a suggested color model to use in the\n",{"type":13,"tag":44,"props":668,"children":669},{"href":651},[670],{"type":18,"value":654},{"type":18,"value":631},{"type":13,"tag":532,"props":673,"children":674},{},[675,681,683,687],{"type":13,"tag":28,"props":676,"children":678},{"className":677},[],[679],{"type":18,"value":680},"suggestedYcbcrRange",{"type":18,"value":682}," is a suggested numerical value range to use in\n",{"type":13,"tag":44,"props":684,"children":685},{"href":651},[686],{"type":18,"value":654},{"type":18,"value":631},{"type":13,"tag":532,"props":689,"children":690},{},[691,697,699,703],{"type":13,"tag":28,"props":692,"children":694},{"className":693},[],[695],{"type":18,"value":696},"suggestedXChromaOffset",{"type":18,"value":698}," is a suggested X chroma offset to use in\n",{"type":13,"tag":44,"props":700,"children":701},{"href":651},[702],{"type":18,"value":654},{"type":18,"value":631},{"type":13,"tag":532,"props":705,"children":706},{},[707,713,715,719],{"type":13,"tag":28,"props":708,"children":710},{"className":709},[],[711],{"type":18,"value":712},"suggestedYChromaOffset",{"type":18,"value":714}," is a suggested Y chroma offset to use in\n",{"type":13,"tag":44,"props":716,"children":717},{"href":651},[718],{"type":18,"value":654},{"type":18,"value":631},{"type":13,"tag":14,"props":721,"children":722},{},[723,725,730,732,735,737,743,744,749],{"type":18,"value":724},"The bits reported in ",{"type":13,"tag":28,"props":726,"children":728},{"className":727},[],[729],{"type":18,"value":621},{"type":18,"value":731}," ",{"type":13,"tag":21,"props":733,"children":734},{"type":609},[],{"type":18,"value":736}," include the bits reported in\nthe corresponding fields of\n",{"type":13,"tag":28,"props":738,"children":740},{"className":739},[],[741],{"type":18,"value":742},"VkAndroidHardwareBufferFormatPropertiesANDROID",{"type":18,"value":263},{"type":13,"tag":28,"props":745,"children":747},{"className":746},[],[748],{"type":18,"value":621},{"type":18,"value":631},{"type":13,"tag":751,"props":752,"children":754},"validity-group",{"name":753},"Valid Usage (Implicit)",[755],{"type":13,"tag":756,"props":757,"children":759},"validity-field",{"name":758},"VUID-VkAndroidHardwareBufferFormatProperties2ANDROID-sType-sType",[760],{"type":13,"tag":14,"props":761,"children":762},{},[763,768,769,772,774],{"type":13,"tag":28,"props":764,"children":766},{"className":765},[],[767],{"type":18,"value":540},{"type":18,"value":731},{"type":13,"tag":21,"props":770,"children":771},{"type":609},[],{"type":18,"value":773}," be ",{"type":13,"tag":28,"props":775,"children":777},{"className":776},[],[778],{"type":18,"value":779},"VK_STRUCTURE_TYPE_ANDROID_HARDWARE_BUFFER_FORMAT_PROPERTIES_2_ANDROID",{"type":13,"tag":781,"props":782,"children":783},"style",{},[784],{"type":18,"value":785},"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":71,"searchDepth":101,"depth":101,"links":787},[],"markdown",1725732538718]