Files
vulkan/vulkan/wayland.sakura
T
2026-11-14 15:38:59 -06:00

35 lines
1.6 KiB
Plaintext

#! Contains the part of `malunal::vulkan` only Linux has, of wayland's
#! extensions: `VK_KHR_wayland_surface`.
#!
#! Written by `malunal.vulkan.bindings` from the registry of Vulkan 1.4.328: run
#! it again, rather than editing this.
extern import "libvulkan.so.1" when os == linux;
extern module malunal::vulkan when os == linux;
# VK_KHR_wayland_surface
pub const VK_KHR_WAYLAND_SURFACE_SPEC_VERSION: u32 = 6;
pub const VK_KHR_WAYLAND_SURFACE_EXTENSION_NAME: strview = "VK_KHR_wayland_surface";
# VkStructureType
pub const VK_STRUCTURE_TYPE_WAYLAND_SURFACE_CREATE_INFO_KHR: u32 = 1000006000;
#! `VkWaylandSurfaceCreateInfoKHR`.
pub struct wayland_surface_create_info_khr {
pub var s_type: u32 = VK_STRUCTURE_TYPE_WAYLAND_SURFACE_CREATE_INFO_KHR; #! VkStructureType
pub var next: *u8;
pub var flags: u32; #! VkWaylandSurfaceCreateFlagsKHR
pub var display: *mut u8; #! wl_display
pub var surface: *mut u8; #! wl_surface
}
# The functions the loader exports.
pub def vkCreateWaylandSurfaceKHR(instance: u64, create_info: &wayland_surface_create_info_khr, allocator: *allocation_callbacks, surface: &mut u64): i32;
pub def vkGetPhysicalDeviceWaylandPresentationSupportKHR(physical_device: u64, queue_family_index: u32, display: *mut u8): u32;
# Each command's type, as `vkGetInstanceProcAddr` and `vkGetDeviceProcAddr` give
# it, to be cast to.
pub type PFN_vkCreateWaylandSurfaceKHR = cfn<def(u64, &wayland_surface_create_info_khr, *allocation_callbacks, &mut u64): i32>;
pub type PFN_vkGetPhysicalDeviceWaylandPresentationSupportKHR = cfn<def(u64, u32, *mut u8): u32>;