[{"data":1,"prerenderedAt":565},["ShallowReactive",2],{"0aQuMuB5oC":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":564,"_id":4},"vkGetDrmDisplayEXT","Query the VkDisplayKHR corresponding to a DRM connector ID","VK_EXT_acquire_drm_display","protos",[],{"type":10,"children":11,"toc":562},"root",[12,37,328,383,501,556],{"type":13,"tag":14,"props":15,"children":16},"element","p",{},[17,20,27,29,35],{"type":18,"value":19},"text","Before acquiring a display from the DRM interface, the caller may want to\nselect a specific ",{"type":13,"tag":21,"props":22,"children":24},"code",{"className":23},[],[25],{"type":18,"value":26},"VkDisplayKHR",{"type":18,"value":28}," handle by identifying it using a\n",{"type":13,"tag":21,"props":30,"children":32},{"className":31},[],[33],{"type":18,"value":34},"connectorId",{"type":18,"value":36},".\nTo do so, call:",{"type":13,"tag":38,"props":39,"children":40},"code-group",{},[41,156],{"type":13,"tag":42,"props":43,"children":49},"pre",{"className":44,"code":45,"filename":46,"language":47,"meta":48,"style":48},"language-c shiki shiki-themes github-light-default github-dark-default","VkResult vkGetDrmDisplayEXT(\n VkPhysicalDevice physicalDevice,\n int32_t drmFd,\n uint32_t connectorId,\n VkDisplayKHR* display);\n","C","c","",[50],{"type":13,"tag":21,"props":51,"children":52},{"__ignoreMap":48},[53,75,95,114,132],{"type":13,"tag":54,"props":55,"children":58},"span",{"class":56,"line":57},"line",1,[59,65,70],{"type":13,"tag":54,"props":60,"children":62},{"style":61},"--shiki-default:#1F2328;--shiki-dark:#E6EDF3",[63],{"type":18,"value":64},"VkResult ",{"type":13,"tag":54,"props":66,"children":68},{"style":67},"--shiki-default:#8250DF;--shiki-dark:#D2A8FF",[69],{"type":18,"value":4},{"type":13,"tag":54,"props":71,"children":72},{"style":61},[73],{"type":18,"value":74},"(\n",{"type":13,"tag":54,"props":76,"children":78},{"class":56,"line":77},2,[79,84,90],{"type":13,"tag":54,"props":80,"children":81},{"style":61},[82],{"type":18,"value":83}," VkPhysicalDevice ",{"type":13,"tag":54,"props":85,"children":87},{"style":86},"--shiki-default:#953800;--shiki-dark:#FFA657",[88],{"type":18,"value":89},"physicalDevice",{"type":13,"tag":54,"props":91,"children":92},{"style":61},[93],{"type":18,"value":94},",\n",{"type":13,"tag":54,"props":96,"children":98},{"class":56,"line":97},3,[99,105,110],{"type":13,"tag":54,"props":100,"children":102},{"style":101},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[103],{"type":18,"value":104}," int32_t",{"type":13,"tag":54,"props":106,"children":107},{"style":86},[108],{"type":18,"value":109}," drmFd",{"type":13,"tag":54,"props":111,"children":112},{"style":61},[113],{"type":18,"value":94},{"type":13,"tag":54,"props":115,"children":117},{"class":56,"line":116},4,[118,123,128],{"type":13,"tag":54,"props":119,"children":120},{"style":101},[121],{"type":18,"value":122}," uint32_t",{"type":13,"tag":54,"props":124,"children":125},{"style":86},[126],{"type":18,"value":127}," connectorId",{"type":13,"tag":54,"props":129,"children":130},{"style":61},[131],{"type":18,"value":94},{"type":13,"tag":54,"props":133,"children":135},{"class":56,"line":134},5,[136,141,146,151],{"type":13,"tag":54,"props":137,"children":138},{"style":61},[139],{"type":18,"value":140}," VkDisplayKHR",{"type":13,"tag":54,"props":142,"children":143},{"style":101},[144],{"type":18,"value":145},"*",{"type":13,"tag":54,"props":147,"children":148},{"style":86},[149],{"type":18,"value":150}," display",{"type":13,"tag":54,"props":152,"children":153},{"style":61},[154],{"type":18,"value":155},");\n",{"type":13,"tag":42,"props":157,"children":162},{"className":158,"code":159,"filename":160,"language":161,"meta":48,"style":48},"language-rs shiki shiki-themes github-light-default github-dark-default","pub fn get_drm_display_ext(\n physical_device: vk::PhysicalDevice,\n drm_fd: i32,\n connector_id: u32,\n display: *mut vk::DisplayKHR,\n) -> vk::Result;\n","Rust","rs",[163],{"type":13,"tag":21,"props":164,"children":165},{"__ignoreMap":48},[166,188,220,241,262,296],{"type":13,"tag":54,"props":167,"children":168},{"class":56,"line":57},[169,174,179,184],{"type":13,"tag":54,"props":170,"children":171},{"style":101},[172],{"type":18,"value":173},"pub",{"type":13,"tag":54,"props":175,"children":176},{"style":101},[177],{"type":18,"value":178}," fn",{"type":13,"tag":54,"props":180,"children":181},{"style":67},[182],{"type":18,"value":183}," get_drm_display_ext",{"type":13,"tag":54,"props":185,"children":186},{"style":61},[187],{"type":18,"value":74},{"type":13,"tag":54,"props":189,"children":190},{"class":56,"line":77},[191,196,201,206,211,216],{"type":13,"tag":54,"props":192,"children":193},{"style":61},[194],{"type":18,"value":195}," physical_device",{"type":13,"tag":54,"props":197,"children":198},{"style":101},[199],{"type":18,"value":200},":",{"type":13,"tag":54,"props":202,"children":203},{"style":86},[204],{"type":18,"value":205}," vk",{"type":13,"tag":54,"props":207,"children":208},{"style":101},[209],{"type":18,"value":210},"::",{"type":13,"tag":54,"props":212,"children":213},{"style":86},[214],{"type":18,"value":215},"PhysicalDevice",{"type":13,"tag":54,"props":217,"children":218},{"style":61},[219],{"type":18,"value":94},{"type":13,"tag":54,"props":221,"children":222},{"class":56,"line":97},[223,228,232,237],{"type":13,"tag":54,"props":224,"children":225},{"style":61},[226],{"type":18,"value":227}," drm_fd",{"type":13,"tag":54,"props":229,"children":230},{"style":101},[231],{"type":18,"value":200},{"type":13,"tag":54,"props":233,"children":234},{"style":86},[235],{"type":18,"value":236}," i32",{"type":13,"tag":54,"props":238,"children":239},{"style":61},[240],{"type":18,"value":94},{"type":13,"tag":54,"props":242,"children":243},{"class":56,"line":116},[244,249,253,258],{"type":13,"tag":54,"props":245,"children":246},{"style":61},[247],{"type":18,"value":248}," connector_id",{"type":13,"tag":54,"props":250,"children":251},{"style":101},[252],{"type":18,"value":200},{"type":13,"tag":54,"props":254,"children":255},{"style":86},[256],{"type":18,"value":257}," u32",{"type":13,"tag":54,"props":259,"children":260},{"style":61},[261],{"type":18,"value":94},{"type":13,"tag":54,"props":263,"children":264},{"class":56,"line":134},[265,270,274,279,283,287,292],{"type":13,"tag":54,"props":266,"children":267},{"style":61},[268],{"type":18,"value":269}," display",{"type":13,"tag":54,"props":271,"children":272},{"style":101},[273],{"type":18,"value":200},{"type":13,"tag":54,"props":275,"children":276},{"style":101},[277],{"type":18,"value":278}," *mut",{"type":13,"tag":54,"props":280,"children":281},{"style":86},[282],{"type":18,"value":205},{"type":13,"tag":54,"props":284,"children":285},{"style":101},[286],{"type":18,"value":210},{"type":13,"tag":54,"props":288,"children":289},{"style":86},[290],{"type":18,"value":291},"DisplayKHR",{"type":13,"tag":54,"props":293,"children":294},{"style":61},[295],{"type":18,"value":94},{"type":13,"tag":54,"props":297,"children":299},{"class":56,"line":298},6,[300,305,310,314,318,323],{"type":13,"tag":54,"props":301,"children":302},{"style":61},[303],{"type":18,"value":304},") ",{"type":13,"tag":54,"props":306,"children":307},{"style":101},[308],{"type":18,"value":309},"->",{"type":13,"tag":54,"props":311,"children":312},{"style":86},[313],{"type":18,"value":205},{"type":13,"tag":54,"props":315,"children":316},{"style":101},[317],{"type":18,"value":210},{"type":13,"tag":54,"props":319,"children":320},{"style":86},[321],{"type":18,"value":322},"Result",{"type":13,"tag":54,"props":324,"children":325},{"style":61},[326],{"type":18,"value":327},";\n",{"type":13,"tag":329,"props":330,"children":331},"ul",{},[332,343,354,364],{"type":13,"tag":333,"props":334,"children":335},"li",{},[336,341],{"type":13,"tag":21,"props":337,"children":339},{"className":338},[],[340],{"type":18,"value":89},{"type":18,"value":342}," The physical device to query the display from.",{"type":13,"tag":333,"props":344,"children":345},{},[346,352],{"type":13,"tag":21,"props":347,"children":349},{"className":348},[],[350],{"type":18,"value":351},"drmFd",{"type":18,"value":353}," DRM primary file descriptor.",{"type":13,"tag":333,"props":355,"children":356},{},[357,362],{"type":13,"tag":21,"props":358,"children":360},{"className":359},[],[361],{"type":18,"value":34},{"type":18,"value":363}," Identifier of the specified DRM connector.",{"type":13,"tag":333,"props":365,"children":366},{},[367,373,375,381],{"type":13,"tag":21,"props":368,"children":370},{"className":369},[],[371],{"type":18,"value":372},"display",{"type":18,"value":374}," The corresponding ",{"type":13,"tag":376,"props":377,"children":379},"a",{"href":378},"/man/VkDisplayKHR",[380],{"type":18,"value":26},{"type":18,"value":382}," handle will be\nreturned here.",{"type":13,"tag":14,"props":384,"children":385},{},[386,388,392,394,399,401,406,408,413,415,420,422,428,430,435,436,439,441,446,448,454,455,458,460,465,466,469,471,476,477,482,483,486,488,491,493,499],{"type":18,"value":387},"If there is no ",{"type":13,"tag":376,"props":389,"children":390},{"href":378},[391],{"type":18,"value":26},{"type":18,"value":393}," corresponding to the ",{"type":13,"tag":21,"props":395,"children":397},{"className":396},[],[398],{"type":18,"value":34},{"type":18,"value":400}," on\nthe ",{"type":13,"tag":21,"props":402,"children":404},{"className":403},[],[405],{"type":18,"value":89},{"type":18,"value":407},", the returning ",{"type":13,"tag":21,"props":409,"children":411},{"className":410},[],[412],{"type":18,"value":372},{"type":18,"value":414}," ",{"type":13,"tag":416,"props":417,"children":419},"normative",{"type":418},"must",[],{"type":18,"value":421}," be\n",{"type":13,"tag":376,"props":423,"children":425},{"href":424},"/man/VK_NULL_HANDLE",[426],{"type":18,"value":427},"VK_NULL_HANDLE",{"type":18,"value":429},".\nThe provided ",{"type":13,"tag":21,"props":431,"children":433},{"className":432},[],[434],{"type":18,"value":351},{"type":18,"value":414},{"type":13,"tag":416,"props":437,"children":438},{"type":418},[],{"type":18,"value":440}," correspond to the one owned by the\n",{"type":13,"tag":21,"props":442,"children":444},{"className":443},[],[445],{"type":18,"value":89},{"type":18,"value":447},".\nIf not, the error code ",{"type":13,"tag":21,"props":449,"children":451},{"className":450},[],[452],{"type":18,"value":453},"VK_ERROR_UNKNOWN",{"type":18,"value":414},{"type":13,"tag":416,"props":456,"children":457},{"type":418},[],{"type":18,"value":459}," be returned.\nMaster permissions are not required, because the file descriptor is just\nused for information gathering purposes.\nThe given ",{"type":13,"tag":21,"props":461,"children":463},{"className":462},[],[464],{"type":18,"value":34},{"type":18,"value":414},{"type":13,"tag":416,"props":467,"children":468},{"type":418},[],{"type":18,"value":470}," be a resource owned by the provided\n",{"type":13,"tag":21,"props":472,"children":474},{"className":473},[],[475],{"type":18,"value":351},{"type":18,"value":447},{"type":13,"tag":21,"props":478,"children":480},{"className":479},[],[481],{"type":18,"value":453},{"type":18,"value":414},{"type":13,"tag":416,"props":484,"children":485},{"type":418},[],{"type":18,"value":487}," be returned.\nIf any error is encountered during the identification of the display, the\ncall ",{"type":13,"tag":416,"props":489,"children":490},{"type":418},[],{"type":18,"value":492}," return the error code ",{"type":13,"tag":21,"props":494,"children":496},{"className":495},[],[497],{"type":18,"value":498},"VK_ERROR_INITIALIZATION_FAILED",{"type":18,"value":500},".",{"type":13,"tag":502,"props":503,"children":505},"validity-group",{"name":504},"Valid Usage (Implicit)",[506,533],{"type":13,"tag":507,"props":508,"children":510},"validity-field",{"name":509},"VUID-vkGetDrmDisplayEXT-physicalDevice-parameter",[511],{"type":13,"tag":14,"props":512,"children":513},{},[514,519,520,523,525,531],{"type":13,"tag":21,"props":515,"children":517},{"className":516},[],[518],{"type":18,"value":89},{"type":18,"value":414},{"type":13,"tag":416,"props":521,"children":522},{"type":418},[],{"type":18,"value":524}," be a valid ",{"type":13,"tag":376,"props":526,"children":528},{"href":527},"/man/VkPhysicalDevice",[529],{"type":18,"value":530},"VkPhysicalDevice",{"type":18,"value":532}," handle",{"type":13,"tag":507,"props":534,"children":536},{"name":535},"VUID-vkGetDrmDisplayEXT-display-parameter",[537],{"type":13,"tag":14,"props":538,"children":539},{},[540,545,546,549,551,555],{"type":13,"tag":21,"props":541,"children":543},{"className":542},[],[544],{"type":18,"value":372},{"type":18,"value":414},{"type":13,"tag":416,"props":547,"children":548},{"type":418},[],{"type":18,"value":550}," be a valid pointer to a ",{"type":13,"tag":376,"props":552,"children":553},{"href":378},[554],{"type":18,"value":26},{"type":18,"value":532},{"type":13,"tag":557,"props":558,"children":559},"style",{},[560],{"type":18,"value":561},"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":48,"searchDepth":77,"depth":77,"links":563},[],"markdown",1729612515046]