[{"data":1,"prerenderedAt":818},["ShallowReactive",2],{"A4LY86NQ2C":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":817,"_id":4},"VkDeviceQueueInfo2","Structure specifying the parameters used for device queue creation","VK_VERSION_1_1","structs",[],{"type":10,"children":11,"toc":815},"root",[12,28,306,419,451,596,733,809],{"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,140],{"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 VkDeviceQueueInfo2 {\n VkStructureType sType;\n const void* pNext;\n VkDeviceQueueCreateFlags flags;\n uint32_t queueFamilyIndex;\n uint32_t queueIndex;\n} VkDeviceQueueInfo2;\n","C","c","",[41],{"type":13,"tag":21,"props":42,"children":43},{"__ignoreMap":39},[44,67,76,95,104,118,131],{"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}," VkDeviceQueueInfo2 {\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}," VkDeviceQueueCreateFlags flags;\n",{"type":13,"tag":45,"props":105,"children":107},{"class":47,"line":106},5,[108,113],{"type":13,"tag":45,"props":109,"children":110},{"style":52},[111],{"type":18,"value":112}," uint32_t",{"type":13,"tag":45,"props":114,"children":115},{"style":63},[116],{"type":18,"value":117}," queueFamilyIndex;\n",{"type":13,"tag":45,"props":119,"children":121},{"class":47,"line":120},6,[122,126],{"type":13,"tag":45,"props":123,"children":124},{"style":52},[125],{"type":18,"value":112},{"type":13,"tag":45,"props":127,"children":128},{"style":63},[129],{"type":18,"value":130}," queueIndex;\n",{"type":13,"tag":45,"props":132,"children":134},{"class":47,"line":133},7,[135],{"type":13,"tag":45,"props":136,"children":137},{"style":63},[138],{"type":18,"value":139},"} VkDeviceQueueInfo2;\n",{"type":13,"tag":33,"props":141,"children":146},{"className":142,"code":143,"filename":144,"language":145,"meta":39,"style":39},"language-rs shiki shiki-themes github-light-default github-dark-default","pub struct DeviceQueueInfo2 {\n s_type: vk::StructureType,\n p_next: *const c_void,\n flags: vk::DeviceQueueCreateFlags,\n queue_family_index: u32,\n queue_index: u32,\n}\n","Rust","rs",[147],{"type":13,"tag":21,"props":148,"children":149},{"__ignoreMap":39},[150,173,206,228,257,278,298],{"type":13,"tag":45,"props":151,"children":152},{"class":47,"line":48},[153,158,162,168],{"type":13,"tag":45,"props":154,"children":155},{"style":52},[156],{"type":18,"value":157},"pub",{"type":13,"tag":45,"props":159,"children":160},{"style":52},[161],{"type":18,"value":60},{"type":13,"tag":45,"props":163,"children":165},{"style":164},"--shiki-default:#953800;--shiki-dark:#FFA657",[166],{"type":18,"value":167}," DeviceQueueInfo2",{"type":13,"tag":45,"props":169,"children":170},{"style":63},[171],{"type":18,"value":172}," {\n",{"type":13,"tag":45,"props":174,"children":175},{"class":47,"line":69},[176,181,186,191,196,201],{"type":13,"tag":45,"props":177,"children":178},{"style":63},[179],{"type":18,"value":180}," s_type",{"type":13,"tag":45,"props":182,"children":183},{"style":52},[184],{"type":18,"value":185},":",{"type":13,"tag":45,"props":187,"children":188},{"style":164},[189],{"type":18,"value":190}," vk",{"type":13,"tag":45,"props":192,"children":193},{"style":52},[194],{"type":18,"value":195},"::",{"type":13,"tag":45,"props":197,"children":198},{"style":164},[199],{"type":18,"value":200},"StructureType",{"type":13,"tag":45,"props":202,"children":203},{"style":63},[204],{"type":18,"value":205},",\n",{"type":13,"tag":45,"props":207,"children":208},{"class":47,"line":78},[209,214,218,223],{"type":13,"tag":45,"props":210,"children":211},{"style":63},[212],{"type":18,"value":213}," p_next",{"type":13,"tag":45,"props":215,"children":216},{"style":52},[217],{"type":18,"value":185},{"type":13,"tag":45,"props":219,"children":220},{"style":52},[221],{"type":18,"value":222}," *const",{"type":13,"tag":45,"props":224,"children":225},{"style":63},[226],{"type":18,"value":227}," c_void,\n",{"type":13,"tag":45,"props":229,"children":230},{"class":47,"line":97},[231,236,240,244,248,253],{"type":13,"tag":45,"props":232,"children":233},{"style":63},[234],{"type":18,"value":235}," flags",{"type":13,"tag":45,"props":237,"children":238},{"style":52},[239],{"type":18,"value":185},{"type":13,"tag":45,"props":241,"children":242},{"style":164},[243],{"type":18,"value":190},{"type":13,"tag":45,"props":245,"children":246},{"style":52},[247],{"type":18,"value":195},{"type":13,"tag":45,"props":249,"children":250},{"style":164},[251],{"type":18,"value":252},"DeviceQueueCreateFlags",{"type":13,"tag":45,"props":254,"children":255},{"style":63},[256],{"type":18,"value":205},{"type":13,"tag":45,"props":258,"children":259},{"class":47,"line":106},[260,265,269,274],{"type":13,"tag":45,"props":261,"children":262},{"style":63},[263],{"type":18,"value":264}," queue_family_index",{"type":13,"tag":45,"props":266,"children":267},{"style":52},[268],{"type":18,"value":185},{"type":13,"tag":45,"props":270,"children":271},{"style":164},[272],{"type":18,"value":273}," u32",{"type":13,"tag":45,"props":275,"children":276},{"style":63},[277],{"type":18,"value":205},{"type":13,"tag":45,"props":279,"children":280},{"class":47,"line":120},[281,286,290,294],{"type":13,"tag":45,"props":282,"children":283},{"style":63},[284],{"type":18,"value":285}," queue_index",{"type":13,"tag":45,"props":287,"children":288},{"style":52},[289],{"type":18,"value":185},{"type":13,"tag":45,"props":291,"children":292},{"style":164},[293],{"type":18,"value":273},{"type":13,"tag":45,"props":295,"children":296},{"style":63},[297],{"type":18,"value":205},{"type":13,"tag":45,"props":299,"children":300},{"class":47,"line":133},[301],{"type":13,"tag":45,"props":302,"children":303},{"style":63},[304],{"type":18,"value":305},"}\n",{"type":13,"tag":307,"props":308,"children":309},"ul",{},[310,331,379,397,408],{"type":13,"tag":311,"props":312,"children":313},"li",{},[314,320,322,329],{"type":13,"tag":21,"props":315,"children":317},{"className":316},[],[318],{"type":18,"value":319},"sType",{"type":18,"value":321}," is a ",{"type":13,"tag":323,"props":324,"children":326},"a",{"href":325},"/man/VkStructureType",[327],{"type":18,"value":328},"VkStructureType",{"type":18,"value":330}," value identifying this structure.",{"type":13,"tag":311,"props":332,"children":333},{},[334,340,342,348,350,355,357,362,364,369,371,377],{"type":13,"tag":21,"props":335,"children":337},{"className":336},[],[338],{"type":18,"value":339},"pNext",{"type":18,"value":341}," is ",{"type":13,"tag":21,"props":343,"children":345},{"className":344},[],[346],{"type":18,"value":347},"NULL",{"type":18,"value":349}," or a pointer to a structure extending this\nstructure.\nThe ",{"type":13,"tag":21,"props":351,"children":353},{"className":352},[],[354],{"type":18,"value":339},{"type":18,"value":356}," chain of ",{"type":13,"tag":21,"props":358,"children":360},{"className":359},[],[361],{"type":18,"value":4},{"type":18,"value":363}," ",{"type":13,"tag":365,"props":366,"children":368},"normative",{"type":367},"can",[],{"type":18,"value":370}," be used to\nprovide additional device queue parameters to ",{"type":13,"tag":21,"props":372,"children":374},{"className":373},[],[375],{"type":18,"value":376},"vkGetDeviceQueue2",{"type":18,"value":378},".",{"type":13,"tag":311,"props":380,"children":381},{},[382,388,389,395],{"type":13,"tag":21,"props":383,"children":385},{"className":384},[],[386],{"type":18,"value":387},"flags",{"type":18,"value":321},{"type":13,"tag":323,"props":390,"children":392},{"href":391},"/man/VkDeviceQueueCreateFlags",[393],{"type":18,"value":394},"VkDeviceQueueCreateFlags",{"type":18,"value":396}," value indicating the\nflags used to create the device queue.",{"type":13,"tag":311,"props":398,"children":399},{},[400,406],{"type":13,"tag":21,"props":401,"children":403},{"className":402},[],[404],{"type":18,"value":405},"queueFamilyIndex",{"type":18,"value":407}," is the index of the queue family to which the\nqueue belongs.",{"type":13,"tag":311,"props":409,"children":410},{},[411,417],{"type":13,"tag":21,"props":412,"children":414},{"className":413},[],[415],{"type":18,"value":416},"queueIndex",{"type":18,"value":418}," is the index of the queue to retrieve from within the\nset of queues that share both the queue family and flags specified.",{"type":13,"tag":14,"props":420,"children":421},{},[422,424,429,430,434,436,441,443,449],{"type":18,"value":423},"The queue returned by ",{"type":13,"tag":21,"props":425,"children":427},{"className":426},[],[428],{"type":18,"value":376},{"type":18,"value":363},{"type":13,"tag":365,"props":431,"children":433},{"type":432},"must",[],{"type":18,"value":435}," have the same\n",{"type":13,"tag":21,"props":437,"children":439},{"className":438},[],[440],{"type":18,"value":387},{"type":18,"value":442}," value from this structure as that used at device creation time\nin a ",{"type":13,"tag":323,"props":444,"children":446},{"href":445},"/man/VkDeviceQueueCreateInfo",[447],{"type":18,"value":448},"VkDeviceQueueCreateInfo",{"type":18,"value":450}," structure.",{"type":13,"tag":452,"props":453,"children":454},"note",{},[455,495,532,577],{"type":13,"tag":14,"props":456,"children":457},{},[458,460,465,467,472,474,479,481,486,488,493],{"type":18,"value":459},"Normally, if you create both protected-capable and non-protected-capable\nqueues with the same family, they are treated as separate lists of queues\nand ",{"type":13,"tag":21,"props":461,"children":463},{"className":462},[],[464],{"type":18,"value":416},{"type":18,"value":466}," is relative to the start of the list of queues\nspecified by both ",{"type":13,"tag":21,"props":468,"children":470},{"className":469},[],[471],{"type":18,"value":405},{"type":18,"value":473}," and ",{"type":13,"tag":21,"props":475,"children":477},{"className":476},[],[478],{"type":18,"value":387},{"type":18,"value":480},".\nHowever, for historical reasons, some implementations may exhibit different\nbehavior.\nThese divergent implementations instead concatenate the lists of queues and\ntreat ",{"type":13,"tag":21,"props":482,"children":484},{"className":483},[],[485],{"type":18,"value":416},{"type":18,"value":487}," as relative to the start of the first list of queues\nwith the given ",{"type":13,"tag":21,"props":489,"children":491},{"className":490},[],[492],{"type":18,"value":405},{"type":18,"value":494},".\nThis only matters in cases where an application has created both\nprotected-capable and non-protected-capable queues from the same queue\nfamily.",{"type":13,"tag":14,"props":496,"children":497},{},[498,500,505,507,511,512,518,520,524,526,531],{"type":18,"value":499},"For such divergent implementations, the maximum value of ",{"type":13,"tag":21,"props":501,"children":503},{"className":502},[],[504],{"type":18,"value":416},{"type":18,"value":506}," is\nequal to the sum of ",{"type":13,"tag":323,"props":508,"children":509},{"href":445},[510],{"type":18,"value":448},{"type":18,"value":195},{"type":13,"tag":21,"props":513,"children":515},{"className":514},[],[516],{"type":18,"value":517},"queueCount",{"type":18,"value":519}," minus\none, for all ",{"type":13,"tag":323,"props":521,"children":522},{"href":445},[523],{"type":18,"value":448},{"type":18,"value":525}," structures that share a common\n",{"type":13,"tag":21,"props":527,"children":529},{"className":528},[],[530],{"type":18,"value":405},{"type":18,"value":378},{"type":13,"tag":14,"props":533,"children":534},{},[535,537,542,544,549,551,556,558,562,563,568,570,575],{"type":18,"value":536},"Such implementations will return ",{"type":13,"tag":21,"props":538,"children":540},{"className":539},[],[541],{"type":18,"value":347},{"type":18,"value":543}," for either the protected or\nunprotected queues when calling ",{"type":13,"tag":21,"props":545,"children":547},{"className":546},[],[548],{"type":18,"value":376},{"type":18,"value":550}," with ",{"type":13,"tag":21,"props":552,"children":554},{"className":553},[],[555],{"type":18,"value":416},{"type":18,"value":557}," in\nthe range zero to ",{"type":13,"tag":323,"props":559,"children":560},{"href":445},[561],{"type":18,"value":448},{"type":18,"value":195},{"type":13,"tag":21,"props":564,"children":566},{"className":565},[],[567],{"type":18,"value":517},{"type":18,"value":569}," minus one.\nIn cases where these implementations returned ",{"type":13,"tag":21,"props":571,"children":573},{"className":572},[],[574],{"type":18,"value":347},{"type":18,"value":576},", the corresponding\nqueues are instead located in the extended range described in the preceding\ntwo paragraphs.",{"type":13,"tag":14,"props":578,"children":579},{},[580,582,588,589,595],{"type":18,"value":581},"This behavior will not be observed on any driver that has passed Vulkan\nconformance test suite version 1.3.3.0, or any subsequent version.\nThis information can be found by querying\n",{"type":13,"tag":21,"props":583,"children":585},{"className":584},[],[586],{"type":18,"value":587},"VkPhysicalDeviceDriverProperties",{"type":18,"value":195},{"type":13,"tag":21,"props":590,"children":592},{"className":591},[],[593],{"type":18,"value":594},"conformanceVersion",{"type":18,"value":378},{"type":13,"tag":597,"props":598,"children":600},"validity-group",{"name":599},"Valid Usage",[601,634,684],{"type":13,"tag":602,"props":603,"children":605},"validity-field",{"name":604},"VUID-VkDeviceQueueInfo2-queueFamilyIndex-01842",[606],{"type":13,"tag":14,"props":607,"children":608},{},[609,614,615,618,620,626,628,632],{"type":13,"tag":21,"props":610,"children":612},{"className":611},[],[613],{"type":18,"value":405},{"type":18,"value":363},{"type":13,"tag":365,"props":616,"children":617},{"type":432},[],{"type":18,"value":619}," be one of the queue family indices\nspecified when ",{"type":13,"tag":21,"props":621,"children":623},{"className":622},[],[624],{"type":18,"value":625},"device",{"type":18,"value":627}," was created, via the\n",{"type":13,"tag":323,"props":629,"children":630},{"href":445},[631],{"type":18,"value":448},{"type":18,"value":633}," structure",{"type":13,"tag":602,"props":635,"children":637},{"name":636},"VUID-VkDeviceQueueInfo2-flags-06225",[638],{"type":13,"tag":14,"props":639,"children":640},{},[641,646,647,650,652,656,657,662,664,668,670,675,677,682],{"type":13,"tag":21,"props":642,"children":644},{"className":643},[],[645],{"type":18,"value":387},{"type":18,"value":363},{"type":13,"tag":365,"props":648,"children":649},{"type":432},[],{"type":18,"value":651}," be equal to ",{"type":13,"tag":323,"props":653,"children":654},{"href":445},[655],{"type":18,"value":448},{"type":18,"value":195},{"type":13,"tag":21,"props":658,"children":660},{"className":659},[],[661],{"type":18,"value":387},{"type":18,"value":663},"\nfor a ",{"type":13,"tag":323,"props":665,"children":666},{"href":445},[667],{"type":18,"value":448},{"type":18,"value":669}," structure for the queue family\nindicated by ",{"type":13,"tag":21,"props":671,"children":673},{"className":672},[],[674],{"type":18,"value":405},{"type":18,"value":676}," when ",{"type":13,"tag":21,"props":678,"children":680},{"className":679},[],[681],{"type":18,"value":625},{"type":18,"value":683}," was created",{"type":13,"tag":602,"props":685,"children":687},{"name":686},"VUID-VkDeviceQueueInfo2-queueIndex-01843",[688],{"type":13,"tag":14,"props":689,"children":690},{},[691,696,697,700,702,706,707,712,714,719,721,726,727,732],{"type":13,"tag":21,"props":692,"children":694},{"className":693},[],[695],{"type":18,"value":416},{"type":18,"value":363},{"type":13,"tag":365,"props":698,"children":699},{"type":432},[],{"type":18,"value":701}," be less than\n",{"type":13,"tag":323,"props":703,"children":704},{"href":445},[705],{"type":18,"value":448},{"type":18,"value":195},{"type":13,"tag":21,"props":708,"children":710},{"className":709},[],[711],{"type":18,"value":517},{"type":18,"value":713}," for the corresponding\nqueue family and flags indicated by ",{"type":13,"tag":21,"props":715,"children":717},{"className":716},[],[718],{"type":18,"value":405},{"type":18,"value":720}," and\n",{"type":13,"tag":21,"props":722,"children":724},{"className":723},[],[725],{"type":18,"value":387},{"type":18,"value":676},{"type":13,"tag":21,"props":728,"children":730},{"className":729},[],[731],{"type":18,"value":625},{"type":18,"value":683},{"type":13,"tag":597,"props":734,"children":736},{"name":735},"Valid Usage (Implicit)",[737,761,783],{"type":13,"tag":602,"props":738,"children":740},{"name":739},"VUID-VkDeviceQueueInfo2-sType-sType",[741],{"type":13,"tag":14,"props":742,"children":743},{},[744,749,750,753,755],{"type":13,"tag":21,"props":745,"children":747},{"className":746},[],[748],{"type":18,"value":319},{"type":18,"value":363},{"type":13,"tag":365,"props":751,"children":752},{"type":432},[],{"type":18,"value":754}," be ",{"type":13,"tag":21,"props":756,"children":758},{"className":757},[],[759],{"type":18,"value":760},"VK_STRUCTURE_TYPE_DEVICE_QUEUE_INFO_2",{"type":13,"tag":602,"props":762,"children":764},{"name":763},"VUID-VkDeviceQueueInfo2-pNext-pNext",[765],{"type":13,"tag":14,"props":766,"children":767},{},[768,773,774,777,778],{"type":13,"tag":21,"props":769,"children":771},{"className":770},[],[772],{"type":18,"value":339},{"type":18,"value":363},{"type":13,"tag":365,"props":775,"children":776},{"type":432},[],{"type":18,"value":754},{"type":13,"tag":21,"props":779,"children":781},{"className":780},[],[782],{"type":18,"value":347},{"type":13,"tag":602,"props":784,"children":786},{"name":785},"VUID-VkDeviceQueueInfo2-flags-parameter",[787],{"type":13,"tag":14,"props":788,"children":789},{},[790,795,796,799,801,807],{"type":13,"tag":21,"props":791,"children":793},{"className":792},[],[794],{"type":18,"value":387},{"type":18,"value":363},{"type":13,"tag":365,"props":797,"children":798},{"type":432},[],{"type":18,"value":800}," be a valid combination of ",{"type":13,"tag":323,"props":802,"children":804},{"href":803},"/man/VkDeviceQueueCreateFlagBits",[805],{"type":18,"value":806},"VkDeviceQueueCreateFlagBits",{"type":18,"value":808}," values",{"type":13,"tag":810,"props":811,"children":812},"style",{},[813],{"type":18,"value":814},"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":816},[],"markdown",1725732549396]