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