Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 15 additions & 18 deletions vulkan.v
Original file line number Diff line number Diff line change
Expand Up @@ -14447,9 +14447,6 @@ $if vulkan_win32 ? {
pub const khr_external_memory_fd_spec_version = 1
pub const khr_external_memory_fd_extension_name = c'VK_KHR_external_memory_fd'

@[typedef]
pub struct C.int {}

// ImportMemoryFdInfoKHR extends VkMemoryAllocateInfo
pub type ImportMemoryFdInfoKHR = C.VkImportMemoryFdInfoKHR

Expand All @@ -14459,7 +14456,7 @@ pub mut:
sType StructureType = StructureType.import_memory_fd_info_khr
pNext voidptr = unsafe { nil }
handleType ExternalMemoryHandleTypeFlagBits
fd int
fd i32
}

pub type MemoryFdPropertiesKHR = C.VkMemoryFdPropertiesKHR
Expand All @@ -14485,29 +14482,29 @@ pub mut:

@[keep_args_alive]
fn C.vkGetMemoryFdKHR(
device Device, const_pGetFdInfo &MemoryGetFdInfoKHR, pFd &int) Result
device Device, const_pGetFdInfo &MemoryGetFdInfoKHR, pFd &i32) Result

pub type PFN_vkGetMemoryFdKHR = fn (device Device, const_pGetFdInfo &MemoryGetFdInfoKHR, pFd &int) Result
pub type PFN_vkGetMemoryFdKHR = fn (device Device, const_pGetFdInfo &MemoryGetFdInfoKHR, pFd &i32) Result

@[inline]
pub fn get_memory_fd_khr(
device Device,
const_pGetFdInfo &MemoryGetFdInfoKHR,
pFd &int) Result {
pFd &i32) Result {
return C.vkGetMemoryFdKHR(device, const_pGetFdInfo, pFd)
}

@[keep_args_alive]
fn C.vkGetMemoryFdPropertiesKHR(
device Device, handleType ExternalMemoryHandleTypeFlagBits, fd int, mut_pMemoryFdProperties &MemoryFdPropertiesKHR) Result
device Device, handleType ExternalMemoryHandleTypeFlagBits, fd i32, mut_pMemoryFdProperties &MemoryFdPropertiesKHR) Result

pub type PFN_vkGetMemoryFdPropertiesKHR = fn (device Device, handleType ExternalMemoryHandleTypeFlagBits, fd int, mut_pMemoryFdProperties &MemoryFdPropertiesKHR) Result
pub type PFN_vkGetMemoryFdPropertiesKHR = fn (device Device, handleType ExternalMemoryHandleTypeFlagBits, fd i32, mut_pMemoryFdProperties &MemoryFdPropertiesKHR) Result

@[inline]
pub fn get_memory_fd_properties_khr(
device Device,
handleType ExternalMemoryHandleTypeFlagBits,
fd int,
fd i32,
mut mut_pMemoryFdProperties MemoryFdPropertiesKHR) Result {
return C.vkGetMemoryFdPropertiesKHR(device, handleType, fd, mut_pMemoryFdProperties)
}
Expand Down Expand Up @@ -14667,7 +14664,7 @@ pub mut:
semaphore Semaphore
flags SemaphoreImportFlags
handleType ExternalSemaphoreHandleTypeFlagBits
fd int
fd i32
}

pub type SemaphoreGetFdInfoKHR = C.VkSemaphoreGetFdInfoKHR
Expand Down Expand Up @@ -14696,15 +14693,15 @@ pub fn import_semaphore_fd_khr(

@[keep_args_alive]
fn C.vkGetSemaphoreFdKHR(
device Device, const_pGetFdInfo &SemaphoreGetFdInfoKHR, pFd &int) Result
device Device, const_pGetFdInfo &SemaphoreGetFdInfoKHR, pFd &i32) Result

pub type PFN_vkGetSemaphoreFdKHR = fn (device Device, const_pGetFdInfo &SemaphoreGetFdInfoKHR, pFd &int) Result
pub type PFN_vkGetSemaphoreFdKHR = fn (device Device, const_pGetFdInfo &SemaphoreGetFdInfoKHR, pFd &i32) Result

@[inline]
pub fn get_semaphore_fd_khr(
device Device,
const_pGetFdInfo &SemaphoreGetFdInfoKHR,
pFd &int) Result {
pFd &i32) Result {
return C.vkGetSemaphoreFdKHR(device, const_pGetFdInfo, pFd)
}

Expand Down Expand Up @@ -15087,7 +15084,7 @@ pub mut:
fence Fence
flags FenceImportFlags
handleType ExternalFenceHandleTypeFlagBits
fd int
fd i32
}

pub type FenceGetFdInfoKHR = C.VkFenceGetFdInfoKHR
Expand Down Expand Up @@ -15116,15 +15113,15 @@ pub fn import_fence_fd_khr(

@[keep_args_alive]
fn C.vkGetFenceFdKHR(
device Device, const_pGetFdInfo &FenceGetFdInfoKHR, pFd &int) Result
device Device, const_pGetFdInfo &FenceGetFdInfoKHR, pFd &i32) Result

pub type PFN_vkGetFenceFdKHR = fn (device Device, const_pGetFdInfo &FenceGetFdInfoKHR, pFd &int) Result
pub type PFN_vkGetFenceFdKHR = fn (device Device, const_pGetFdInfo &FenceGetFdInfoKHR, pFd &i32) Result

@[inline]
pub fn get_fence_fd_khr(
device Device,
const_pGetFdInfo &FenceGetFdInfoKHR,
pFd &int) Result {
pFd &i32) Result {
return C.vkGetFenceFdKHR(device, const_pGetFdInfo, pFd)
}

Expand Down
Loading