[{"data":1,"prerenderedAt":741},["ShallowReactive",2],{"jYmIZ0KJjw":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":740,"_id":4},"VkVideoPictureResourceInfoKHR","Structure specifying the parameters of a video picture resource","VK_KHR_video_queue","structs",[],{"type":10,"children":11,"toc":738},"root",[12,28,371,466,471,490,517,521,539,585,589,608,656,732],{"type":13,"tag":14,"props":15,"children":16},"element","p",{},[17,20,26],{"type":18,"value":19},"text","The ",{"type":13,"tag":21,"props":22,"children":24},"code",{"className":23},[],[25],{"type":18,"value":4},{"type":18,"value":27}," structure is defined as:",{"type":13,"tag":29,"props":30,"children":31},"code-group",{},[32,145],{"type":13,"tag":33,"props":34,"children":40},"pre",{"className":35,"code":36,"filename":37,"language":38,"meta":39,"style":39},"language-c shiki shiki-themes github-light-default github-dark-default","typedef struct VkVideoPictureResourceInfoKHR {\n VkStructureType sType;\n const void* pNext;\n VkOffset2D codedOffset;\n VkExtent2D codedExtent;\n uint32_t baseArrayLayer;\n VkImageView imageViewBinding;\n} VkVideoPictureResourceInfoKHR;\n","C","c","",[41],{"type":13,"tag":21,"props":42,"children":43},{"__ignoreMap":39},[44,67,76,95,104,113,127,136],{"type":13,"tag":45,"props":46,"children":49},"span",{"class":47,"line":48},"line",1,[50,56,61],{"type":13,"tag":45,"props":51,"children":53},{"style":52},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[54],{"type":18,"value":55},"typedef",{"type":13,"tag":45,"props":57,"children":58},{"style":52},[59],{"type":18,"value":60}," struct",{"type":13,"tag":45,"props":62,"children":64},{"style":63},"--shiki-default:#1F2328;--shiki-dark:#E6EDF3",[65],{"type":18,"value":66}," VkVideoPictureResourceInfoKHR {\n",{"type":13,"tag":45,"props":68,"children":70},{"class":47,"line":69},2,[71],{"type":13,"tag":45,"props":72,"children":73},{"style":63},[74],{"type":18,"value":75}," VkStructureType sType;\n",{"type":13,"tag":45,"props":77,"children":79},{"class":47,"line":78},3,[80,85,90],{"type":13,"tag":45,"props":81,"children":82},{"style":52},[83],{"type":18,"value":84}," const",{"type":13,"tag":45,"props":86,"children":87},{"style":52},[88],{"type":18,"value":89}," void*",{"type":13,"tag":45,"props":91,"children":92},{"style":63},[93],{"type":18,"value":94}," pNext;\n",{"type":13,"tag":45,"props":96,"children":98},{"class":47,"line":97},4,[99],{"type":13,"tag":45,"props":100,"children":101},{"style":63},[102],{"type":18,"value":103}," VkOffset2D codedOffset;\n",{"type":13,"tag":45,"props":105,"children":107},{"class":47,"line":106},5,[108],{"type":13,"tag":45,"props":109,"children":110},{"style":63},[111],{"type":18,"value":112}," VkExtent2D codedExtent;\n",{"type":13,"tag":45,"props":114,"children":116},{"class":47,"line":115},6,[117,122],{"type":13,"tag":45,"props":118,"children":119},{"style":52},[120],{"type":18,"value":121}," uint32_t",{"type":13,"tag":45,"props":123,"children":124},{"style":63},[125],{"type":18,"value":126}," baseArrayLayer;\n",{"type":13,"tag":45,"props":128,"children":130},{"class":47,"line":129},7,[131],{"type":13,"tag":45,"props":132,"children":133},{"style":63},[134],{"type":18,"value":135}," VkImageView imageViewBinding;\n",{"type":13,"tag":45,"props":137,"children":139},{"class":47,"line":138},8,[140],{"type":13,"tag":45,"props":141,"children":142},{"style":63},[143],{"type":18,"value":144},"} VkVideoPictureResourceInfoKHR;\n",{"type":13,"tag":33,"props":146,"children":151},{"className":147,"code":148,"filename":149,"language":150,"meta":39,"style":39},"language-rs shiki shiki-themes github-light-default github-dark-default","pub struct VideoPictureResourceInfoKHR {\n s_type: vk::StructureType,\n p_next: *const c_void,\n coded_offset: vk::Offset2D, // The offset to be used for the picture resource, currently only used in field mode\n coded_extent: vk::Extent2D, // The extent to be used for the picture resource\n base_array_layer: u32, // The first array layer to be accessed for the Decode or Encode Operations\n image_view_binding: vk::ImageView, // The ImageView binding of the resource\n}\n","Rust","rs",[152],{"type":13,"tag":21,"props":153,"children":154},{"__ignoreMap":39},[155,178,211,233,269,303,329,363],{"type":13,"tag":45,"props":156,"children":157},{"class":47,"line":48},[158,163,167,173],{"type":13,"tag":45,"props":159,"children":160},{"style":52},[161],{"type":18,"value":162},"pub",{"type":13,"tag":45,"props":164,"children":165},{"style":52},[166],{"type":18,"value":60},{"type":13,"tag":45,"props":168,"children":170},{"style":169},"--shiki-default:#953800;--shiki-dark:#FFA657",[171],{"type":18,"value":172}," VideoPictureResourceInfoKHR",{"type":13,"tag":45,"props":174,"children":175},{"style":63},[176],{"type":18,"value":177}," {\n",{"type":13,"tag":45,"props":179,"children":180},{"class":47,"line":69},[181,186,191,196,201,206],{"type":13,"tag":45,"props":182,"children":183},{"style":63},[184],{"type":18,"value":185}," s_type",{"type":13,"tag":45,"props":187,"children":188},{"style":52},[189],{"type":18,"value":190},":",{"type":13,"tag":45,"props":192,"children":193},{"style":169},[194],{"type":18,"value":195}," vk",{"type":13,"tag":45,"props":197,"children":198},{"style":52},[199],{"type":18,"value":200},"::",{"type":13,"tag":45,"props":202,"children":203},{"style":169},[204],{"type":18,"value":205},"StructureType",{"type":13,"tag":45,"props":207,"children":208},{"style":63},[209],{"type":18,"value":210},",\n",{"type":13,"tag":45,"props":212,"children":213},{"class":47,"line":78},[214,219,223,228],{"type":13,"tag":45,"props":215,"children":216},{"style":63},[217],{"type":18,"value":218}," p_next",{"type":13,"tag":45,"props":220,"children":221},{"style":52},[222],{"type":18,"value":190},{"type":13,"tag":45,"props":224,"children":225},{"style":52},[226],{"type":18,"value":227}," *const",{"type":13,"tag":45,"props":229,"children":230},{"style":63},[231],{"type":18,"value":232}," c_void,\n",{"type":13,"tag":45,"props":234,"children":235},{"class":47,"line":97},[236,241,245,249,253,258,263],{"type":13,"tag":45,"props":237,"children":238},{"style":63},[239],{"type":18,"value":240}," coded_offset",{"type":13,"tag":45,"props":242,"children":243},{"style":52},[244],{"type":18,"value":190},{"type":13,"tag":45,"props":246,"children":247},{"style":169},[248],{"type":18,"value":195},{"type":13,"tag":45,"props":250,"children":251},{"style":52},[252],{"type":18,"value":200},{"type":13,"tag":45,"props":254,"children":255},{"style":169},[256],{"type":18,"value":257},"Offset2D",{"type":13,"tag":45,"props":259,"children":260},{"style":63},[261],{"type":18,"value":262},", ",{"type":13,"tag":45,"props":264,"children":266},{"style":265},"--shiki-default:#6E7781;--shiki-dark:#8B949E",[267],{"type":18,"value":268},"// The offset to be used for the picture resource, currently only used in field mode\n",{"type":13,"tag":45,"props":270,"children":271},{"class":47,"line":106},[272,277,281,285,289,294,298],{"type":13,"tag":45,"props":273,"children":274},{"style":63},[275],{"type":18,"value":276}," coded_extent",{"type":13,"tag":45,"props":278,"children":279},{"style":52},[280],{"type":18,"value":190},{"type":13,"tag":45,"props":282,"children":283},{"style":169},[284],{"type":18,"value":195},{"type":13,"tag":45,"props":286,"children":287},{"style":52},[288],{"type":18,"value":200},{"type":13,"tag":45,"props":290,"children":291},{"style":169},[292],{"type":18,"value":293},"Extent2D",{"type":13,"tag":45,"props":295,"children":296},{"style":63},[297],{"type":18,"value":262},{"type":13,"tag":45,"props":299,"children":300},{"style":265},[301],{"type":18,"value":302},"// The extent to be used for the picture resource\n",{"type":13,"tag":45,"props":304,"children":305},{"class":47,"line":115},[306,311,315,320,324],{"type":13,"tag":45,"props":307,"children":308},{"style":63},[309],{"type":18,"value":310}," base_array_layer",{"type":13,"tag":45,"props":312,"children":313},{"style":52},[314],{"type":18,"value":190},{"type":13,"tag":45,"props":316,"children":317},{"style":169},[318],{"type":18,"value":319}," u32",{"type":13,"tag":45,"props":321,"children":322},{"style":63},[323],{"type":18,"value":262},{"type":13,"tag":45,"props":325,"children":326},{"style":265},[327],{"type":18,"value":328},"// The first array layer to be accessed for the Decode or Encode Operations\n",{"type":13,"tag":45,"props":330,"children":331},{"class":47,"line":129},[332,337,341,345,349,354,358],{"type":13,"tag":45,"props":333,"children":334},{"style":63},[335],{"type":18,"value":336}," image_view_binding",{"type":13,"tag":45,"props":338,"children":339},{"style":52},[340],{"type":18,"value":190},{"type":13,"tag":45,"props":342,"children":343},{"style":169},[344],{"type":18,"value":195},{"type":13,"tag":45,"props":346,"children":347},{"style":52},[348],{"type":18,"value":200},{"type":13,"tag":45,"props":350,"children":351},{"style":169},[352],{"type":18,"value":353},"ImageView",{"type":13,"tag":45,"props":355,"children":356},{"style":63},[357],{"type":18,"value":262},{"type":13,"tag":45,"props":359,"children":360},{"style":265},[361],{"type":18,"value":362},"// The ImageView binding of the resource\n",{"type":13,"tag":45,"props":364,"children":365},{"class":47,"line":138},[366],{"type":13,"tag":45,"props":367,"children":368},{"style":63},[369],{"type":18,"value":370},"}\n",{"type":13,"tag":372,"props":373,"children":374},"ul",{},[375,396,415,426,437,456],{"type":13,"tag":376,"props":377,"children":378},"li",{},[379,385,387,394],{"type":13,"tag":21,"props":380,"children":382},{"className":381},[],[383],{"type":18,"value":384},"sType",{"type":18,"value":386}," is a ",{"type":13,"tag":388,"props":389,"children":391},"a",{"href":390},"/man/VkStructureType",[392],{"type":18,"value":393},"VkStructureType",{"type":18,"value":395}," value identifying this structure.",{"type":13,"tag":376,"props":397,"children":398},{},[399,405,407,413],{"type":13,"tag":21,"props":400,"children":402},{"className":401},[],[403],{"type":18,"value":404},"pNext",{"type":18,"value":406}," is ",{"type":13,"tag":21,"props":408,"children":410},{"className":409},[],[411],{"type":18,"value":412},"NULL",{"type":18,"value":414}," or a pointer to a structure extending this\nstructure.",{"type":13,"tag":376,"props":416,"children":417},{},[418,424],{"type":13,"tag":21,"props":419,"children":421},{"className":420},[],[422],{"type":18,"value":423},"codedOffset",{"type":18,"value":425}," is the offset in texels of the image subregion to use.",{"type":13,"tag":376,"props":427,"children":428},{},[429,435],{"type":13,"tag":21,"props":430,"children":432},{"className":431},[],[433],{"type":18,"value":434},"codedExtent",{"type":18,"value":436}," is the size in pixels of the coded image data.",{"type":13,"tag":376,"props":438,"children":439},{},[440,446,448,454],{"type":13,"tag":21,"props":441,"children":443},{"className":442},[],[444],{"type":18,"value":445},"baseArrayLayer",{"type":18,"value":447}," is the array layer of the image view specified in\n",{"type":13,"tag":21,"props":449,"children":451},{"className":450},[],[452],{"type":18,"value":453},"imageViewBinding",{"type":18,"value":455}," to use as the video picture resource.",{"type":13,"tag":376,"props":457,"children":458},{},[459,464],{"type":13,"tag":21,"props":460,"children":462},{"className":461},[],[463],{"type":18,"value":453},{"type":18,"value":465}," is an image view representing the video picture\nresource.",{"type":13,"tag":467,"props":468,"children":470},"anchor",{"id":469},"video-image-subresource-reference",[],{"type":13,"tag":14,"props":472,"children":473},{},[474,476,481,483,488],{"type":18,"value":475},"The image subresource referred to by such a structure is defined as the\nimage array layer index specified in ",{"type":13,"tag":21,"props":477,"children":479},{"className":478},[],[480],{"type":18,"value":445},{"type":18,"value":482}," relative to the\nimage subresource range the image view specified in ",{"type":13,"tag":21,"props":484,"children":486},{"className":485},[],[487],{"type":18,"value":453},{"type":18,"value":489},"\nwas created with.",{"type":13,"tag":14,"props":491,"children":492},{},[493,495,500,502,507,509,515],{"type":18,"value":494},"The meaning of the ",{"type":13,"tag":21,"props":496,"children":498},{"className":497},[],[499],{"type":18,"value":423},{"type":18,"value":501}," and ",{"type":13,"tag":21,"props":503,"children":505},{"className":504},[],[506],{"type":18,"value":434},{"type":18,"value":508}," depends on the\ncommand and context the video picture resource is used in, as well as on the\nused ",{"type":13,"tag":388,"props":510,"children":512},{"href":511},"/chapters/video-coding#video-profiles",[513],{"type":18,"value":514},"video profile",{"type":18,"value":516}," and corresponding codec-specific\nsemantics, as described later.",{"type":13,"tag":467,"props":518,"children":520},{"id":519},"video-picture-resource-uniqueness",[],{"type":13,"tag":14,"props":522,"children":523},{},[524,526,531,532,537],{"type":18,"value":525},"A video picture resource is uniquely defined by the image subresource\nreferred to by an instance of this structure, together with the\n",{"type":13,"tag":21,"props":527,"children":529},{"className":528},[],[530],{"type":18,"value":423},{"type":18,"value":501},{"type":13,"tag":21,"props":533,"children":535},{"className":534},[],[536],{"type":18,"value":434},{"type":18,"value":538}," members that identify the image\nsubregion within the image subresource referenced corresponding to the video\npicture resource according to the particular codec-specific semantics.",{"type":13,"tag":14,"props":540,"children":541},{},[542,544,550,551,557,559,565,567,571,573,578,580,583],{"type":18,"value":543},"Accesses to image data within a video picture resource happen at the\ngranularity indicated by\n",{"type":13,"tag":388,"props":545,"children":547},{"href":546},"/man/VkVideoCapabilitiesKHR",[548],{"type":18,"value":549},"VkVideoCapabilitiesKHR",{"type":18,"value":200},{"type":13,"tag":21,"props":552,"children":554},{"className":553},[],[555],{"type":18,"value":556},"pictureAccessGranularity",{"type":18,"value":558},", as returned by\n",{"type":13,"tag":388,"props":560,"children":562},{"href":561},"/man/vkGetPhysicalDeviceVideoCapabilitiesKHR",[563],{"type":18,"value":564},"vkGetPhysicalDeviceVideoCapabilitiesKHR",{"type":18,"value":566}," for the used ",{"type":13,"tag":388,"props":568,"children":569},{"href":511},[570],{"type":18,"value":514},{"type":18,"value":572},".\nAs a result, given an effective image subregion corresponding to a video\npicture resource, the actual image subregion accessed ",{"type":13,"tag":574,"props":575,"children":577},"normative",{"type":576},"may",[],{"type":18,"value":579}," be larger than\nthat as it ",{"type":13,"tag":574,"props":581,"children":582},{"type":576},[],{"type":18,"value":584}," include additional padding texels due to the picture access\ngranularity.\nAny writes performed by video coding operations to such padding texels will\nresult in undefined: texel values.",{"type":13,"tag":467,"props":586,"children":588},{"id":587},"video-picture-resource-matching",[],{"type":13,"tag":14,"props":590,"children":591},{},[592,594,599,601,606],{"type":18,"value":593},"Two video picture resources match if they refer to the same image\nsubresource and they specify identical ",{"type":13,"tag":21,"props":595,"children":597},{"className":596},[],[598],{"type":18,"value":423},{"type":18,"value":600}," and\n",{"type":13,"tag":21,"props":602,"children":604},{"className":603},[],[605],{"type":18,"value":434},{"type":18,"value":607}," values.",{"type":13,"tag":609,"props":610,"children":612},"validity-group",{"name":611},"Valid Usage",[613],{"type":13,"tag":614,"props":615,"children":617},"validity-field",{"name":616},"VUID-VkVideoPictureResourceInfoKHR-baseArrayLayer-07175",[618],{"type":13,"tag":14,"props":619,"children":620},{},[621,626,628,632,634,640,641,647,649,654],{"type":13,"tag":21,"props":622,"children":624},{"className":623},[],[625],{"type":18,"value":445},{"type":18,"value":627}," ",{"type":13,"tag":574,"props":629,"children":631},{"type":630},"must",[],{"type":18,"value":633}," be less than the\n",{"type":13,"tag":388,"props":635,"children":637},{"href":636},"/man/VkImageViewCreateInfo",[638],{"type":18,"value":639},"VkImageViewCreateInfo",{"type":18,"value":200},{"type":13,"tag":21,"props":642,"children":644},{"className":643},[],[645],{"type":18,"value":646},"subresourceRange.layerCount",{"type":18,"value":648}," specified\nwhen the image view ",{"type":13,"tag":21,"props":650,"children":652},{"className":651},[],[653],{"type":18,"value":453},{"type":18,"value":655}," was created",{"type":13,"tag":609,"props":657,"children":659},{"name":658},"Valid Usage (Implicit)",[660,684,706],{"type":13,"tag":614,"props":661,"children":663},{"name":662},"VUID-VkVideoPictureResourceInfoKHR-sType-sType",[664],{"type":13,"tag":14,"props":665,"children":666},{},[667,672,673,676,678],{"type":13,"tag":21,"props":668,"children":670},{"className":669},[],[671],{"type":18,"value":384},{"type":18,"value":627},{"type":13,"tag":574,"props":674,"children":675},{"type":630},[],{"type":18,"value":677}," be ",{"type":13,"tag":21,"props":679,"children":681},{"className":680},[],[682],{"type":18,"value":683},"VK_STRUCTURE_TYPE_VIDEO_PICTURE_RESOURCE_INFO_KHR",{"type":13,"tag":614,"props":685,"children":687},{"name":686},"VUID-VkVideoPictureResourceInfoKHR-pNext-pNext",[688],{"type":13,"tag":14,"props":689,"children":690},{},[691,696,697,700,701],{"type":13,"tag":21,"props":692,"children":694},{"className":693},[],[695],{"type":18,"value":404},{"type":18,"value":627},{"type":13,"tag":574,"props":698,"children":699},{"type":630},[],{"type":18,"value":677},{"type":13,"tag":21,"props":702,"children":704},{"className":703},[],[705],{"type":18,"value":412},{"type":13,"tag":614,"props":707,"children":709},{"name":708},"VUID-VkVideoPictureResourceInfoKHR-imageViewBinding-parameter",[710],{"type":13,"tag":14,"props":711,"children":712},{},[713,718,719,722,724,730],{"type":13,"tag":21,"props":714,"children":716},{"className":715},[],[717],{"type":18,"value":453},{"type":18,"value":627},{"type":13,"tag":574,"props":720,"children":721},{"type":630},[],{"type":18,"value":723}," be a valid ",{"type":13,"tag":388,"props":725,"children":727},{"href":726},"/man/VkImageView",[728],{"type":18,"value":729},"VkImageView",{"type":18,"value":731}," handle",{"type":13,"tag":733,"props":734,"children":735},"style",{},[736],{"type":18,"value":737},"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":39,"searchDepth":69,"depth":69,"links":739},[],"markdown",1725732595066]