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