[{"data":1,"prerenderedAt":485},["ShallowReactive",2],{"foPZsewJ8E":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":484,"_id":4},"vkGetPhysicalDeviceXcbPresentationSupportKHR","Query physical device for presentation to X11 server using XCB","VK_KHR_xcb_surface","protos",[],{"type":10,"children":11,"toc":482},"root",[12,20,297,361,373,420,476],{"type":13,"tag":14,"props":15,"children":16},"element","p",{},[17],{"type":18,"value":19},"text","To determine whether a queue family of a physical device supports\npresentation to an X11 server, using the XCB client-side library, call:",{"type":13,"tag":21,"props":22,"children":23},"code-group",{},[24,141],{"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","VkBool32 vkGetPhysicalDeviceXcbPresentationSupportKHR(\n VkPhysicalDevice physicalDevice,\n uint32_t queueFamilyIndex,\n xcb_connection_t* connection,\n xcb_visualid_t visual_id);\n","C","c","",[33],{"type":13,"tag":34,"props":35,"children":36},"code",{"__ignoreMap":31},[37,59,79,98,122],{"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},"VkBool32 ",{"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}," VkPhysicalDevice ",{"type":13,"tag":38,"props":69,"children":71},{"style":70},"--shiki-default:#953800;--shiki-dark:#FFA657",[72],{"type":18,"value":73},"physicalDevice",{"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,89,94],{"type":13,"tag":38,"props":84,"children":86},{"style":85},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[87],{"type":18,"value":88}," uint32_t",{"type":13,"tag":38,"props":90,"children":91},{"style":70},[92],{"type":18,"value":93}," queueFamilyIndex",{"type":13,"tag":38,"props":95,"children":96},{"style":45},[97],{"type":18,"value":78},{"type":13,"tag":38,"props":99,"children":101},{"class":40,"line":100},4,[102,108,113,118],{"type":13,"tag":38,"props":103,"children":105},{"style":104},"--shiki-default:#0550AE;--shiki-dark:#79C0FF",[106],{"type":18,"value":107}," xcb_connection_t",{"type":13,"tag":38,"props":109,"children":110},{"style":85},[111],{"type":18,"value":112},"*",{"type":13,"tag":38,"props":114,"children":115},{"style":70},[116],{"type":18,"value":117}," connection",{"type":13,"tag":38,"props":119,"children":120},{"style":45},[121],{"type":18,"value":78},{"type":13,"tag":38,"props":123,"children":125},{"class":40,"line":124},5,[126,131,136],{"type":13,"tag":38,"props":127,"children":128},{"style":104},[129],{"type":18,"value":130}," xcb_visualid_t",{"type":13,"tag":38,"props":132,"children":133},{"style":70},[134],{"type":18,"value":135}," visual_id",{"type":13,"tag":38,"props":137,"children":138},{"style":45},[139],{"type":18,"value":140},");\n",{"type":13,"tag":25,"props":142,"children":147},{"className":143,"code":144,"filename":145,"language":146,"meta":31,"style":31},"language-rs shiki shiki-themes github-light-default github-dark-default","pub fn get_physical_device_xcb_presentation_support_khr(\n physical_device: vk::PhysicalDevice,\n queue_family_index: u32,\n connection: *mut xcb_connection_t,\n visual_id: xcb_visualid_t,\n) -> vk::Bool32;\n","Rust","rs",[148],{"type":13,"tag":34,"props":149,"children":150},{"__ignoreMap":31},[151,173,205,226,248,265],{"type":13,"tag":38,"props":152,"children":153},{"class":40,"line":41},[154,159,164,169],{"type":13,"tag":38,"props":155,"children":156},{"style":85},[157],{"type":18,"value":158},"pub",{"type":13,"tag":38,"props":160,"children":161},{"style":85},[162],{"type":18,"value":163}," fn",{"type":13,"tag":38,"props":165,"children":166},{"style":51},[167],{"type":18,"value":168}," get_physical_device_xcb_presentation_support_khr",{"type":13,"tag":38,"props":170,"children":171},{"style":45},[172],{"type":18,"value":58},{"type":13,"tag":38,"props":174,"children":175},{"class":40,"line":61},[176,181,186,191,196,201],{"type":13,"tag":38,"props":177,"children":178},{"style":45},[179],{"type":18,"value":180}," physical_device",{"type":13,"tag":38,"props":182,"children":183},{"style":85},[184],{"type":18,"value":185},":",{"type":13,"tag":38,"props":187,"children":188},{"style":70},[189],{"type":18,"value":190}," vk",{"type":13,"tag":38,"props":192,"children":193},{"style":85},[194],{"type":18,"value":195},"::",{"type":13,"tag":38,"props":197,"children":198},{"style":70},[199],{"type":18,"value":200},"PhysicalDevice",{"type":13,"tag":38,"props":202,"children":203},{"style":45},[204],{"type":18,"value":78},{"type":13,"tag":38,"props":206,"children":207},{"class":40,"line":81},[208,213,217,222],{"type":13,"tag":38,"props":209,"children":210},{"style":45},[211],{"type":18,"value":212}," queue_family_index",{"type":13,"tag":38,"props":214,"children":215},{"style":85},[216],{"type":18,"value":185},{"type":13,"tag":38,"props":218,"children":219},{"style":70},[220],{"type":18,"value":221}," u32",{"type":13,"tag":38,"props":223,"children":224},{"style":45},[225],{"type":18,"value":78},{"type":13,"tag":38,"props":227,"children":228},{"class":40,"line":100},[229,234,238,243],{"type":13,"tag":38,"props":230,"children":231},{"style":45},[232],{"type":18,"value":233}," connection",{"type":13,"tag":38,"props":235,"children":236},{"style":85},[237],{"type":18,"value":185},{"type":13,"tag":38,"props":239,"children":240},{"style":85},[241],{"type":18,"value":242}," *mut",{"type":13,"tag":38,"props":244,"children":245},{"style":45},[246],{"type":18,"value":247}," xcb_connection_t,\n",{"type":13,"tag":38,"props":249,"children":250},{"class":40,"line":124},[251,256,260],{"type":13,"tag":38,"props":252,"children":253},{"style":45},[254],{"type":18,"value":255}," visual_id",{"type":13,"tag":38,"props":257,"children":258},{"style":85},[259],{"type":18,"value":185},{"type":13,"tag":38,"props":261,"children":262},{"style":45},[263],{"type":18,"value":264}," xcb_visualid_t,\n",{"type":13,"tag":38,"props":266,"children":268},{"class":40,"line":267},6,[269,274,279,283,287,292],{"type":13,"tag":38,"props":270,"children":271},{"style":45},[272],{"type":18,"value":273},") ",{"type":13,"tag":38,"props":275,"children":276},{"style":85},[277],{"type":18,"value":278},"->",{"type":13,"tag":38,"props":280,"children":281},{"style":70},[282],{"type":18,"value":190},{"type":13,"tag":38,"props":284,"children":285},{"style":85},[286],{"type":18,"value":195},{"type":13,"tag":38,"props":288,"children":289},{"style":70},[290],{"type":18,"value":291},"Bool32",{"type":13,"tag":38,"props":293,"children":294},{"style":45},[295],{"type":18,"value":296},";\n",{"type":13,"tag":298,"props":299,"children":300},"ul",{},[301,312,323,342],{"type":13,"tag":302,"props":303,"children":304},"li",{},[305,310],{"type":13,"tag":34,"props":306,"children":308},{"className":307},[],[309],{"type":18,"value":73},{"type":18,"value":311}," is the physical device.",{"type":13,"tag":302,"props":313,"children":314},{},[315,321],{"type":13,"tag":34,"props":316,"children":318},{"className":317},[],[319],{"type":18,"value":320},"queueFamilyIndex",{"type":18,"value":322}," is the queue family index.",{"type":13,"tag":302,"props":324,"children":325},{},[326,332,334,340],{"type":13,"tag":34,"props":327,"children":329},{"className":328},[],[330],{"type":18,"value":331},"connection",{"type":18,"value":333}," is a pointer to an ",{"type":13,"tag":34,"props":335,"children":337},{"className":336},[],[338],{"type":18,"value":339},"xcb_connection_t",{"type":18,"value":341}," to the X\nserver.",{"type":13,"tag":302,"props":343,"children":344},{},[345,351,353,359],{"type":13,"tag":34,"props":346,"children":348},{"className":347},[],[349],{"type":18,"value":350},"visual_id",{"type":18,"value":352}," is an X11 visual (",{"type":13,"tag":34,"props":354,"children":356},{"className":355},[],[357],{"type":18,"value":358},"xcb_visualid_t",{"type":18,"value":360},").",{"type":13,"tag":14,"props":362,"children":363},{},[364,366,371],{"type":18,"value":365},"This platform-specific function ",{"type":13,"tag":367,"props":368,"children":370},"normative",{"type":369},"can",[],{"type":18,"value":372}," be called prior to creating a surface.",{"type":13,"tag":374,"props":375,"children":377},"validity-group",{"name":376},"Valid Usage",[378],{"type":13,"tag":379,"props":380,"children":382},"validity-field",{"name":381},"VUID-vkGetPhysicalDeviceXcbPresentationSupportKHR-queueFamilyIndex-01312",[383],{"type":13,"tag":14,"props":384,"children":385},{},[386,391,393,397,399,405,407,413,415],{"type":13,"tag":34,"props":387,"children":389},{"className":388},[],[390],{"type":18,"value":320},{"type":18,"value":392}," ",{"type":13,"tag":367,"props":394,"children":396},{"type":395},"must",[],{"type":18,"value":398}," be less than\n",{"type":13,"tag":34,"props":400,"children":402},{"className":401},[],[403],{"type":18,"value":404},"pQueueFamilyPropertyCount",{"type":18,"value":406}," returned by\n",{"type":13,"tag":34,"props":408,"children":410},{"className":409},[],[411],{"type":18,"value":412},"vkGetPhysicalDeviceQueueFamilyProperties",{"type":18,"value":414}," for the given\n",{"type":13,"tag":34,"props":416,"children":418},{"className":417},[],[419],{"type":18,"value":73},{"type":13,"tag":374,"props":421,"children":423},{"name":422},"Valid Usage (Implicit)",[424,451],{"type":13,"tag":379,"props":425,"children":427},{"name":426},"VUID-vkGetPhysicalDeviceXcbPresentationSupportKHR-physicalDevice-parameter",[428],{"type":13,"tag":14,"props":429,"children":430},{},[431,436,437,440,442,449],{"type":13,"tag":34,"props":432,"children":434},{"className":433},[],[435],{"type":18,"value":73},{"type":18,"value":392},{"type":13,"tag":367,"props":438,"children":439},{"type":395},[],{"type":18,"value":441}," be a valid ",{"type":13,"tag":443,"props":444,"children":446},"a",{"href":445},"/man/VkPhysicalDevice",[447],{"type":18,"value":448},"VkPhysicalDevice",{"type":18,"value":450}," handle",{"type":13,"tag":379,"props":452,"children":454},{"name":453},"VUID-vkGetPhysicalDeviceXcbPresentationSupportKHR-connection-parameter",[455],{"type":13,"tag":14,"props":456,"children":457},{},[458,463,464,467,469,474],{"type":13,"tag":34,"props":459,"children":461},{"className":460},[],[462],{"type":18,"value":331},{"type":18,"value":392},{"type":13,"tag":367,"props":465,"children":466},{"type":395},[],{"type":18,"value":468}," be a valid pointer to an ",{"type":13,"tag":34,"props":470,"children":472},{"className":471},[],[473],{"type":18,"value":339},{"type":18,"value":475}," value",{"type":13,"tag":477,"props":478,"children":479},"style",{},[480],{"type":18,"value":481},"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":483},[],"markdown",1725732620923]