mirror of
https://github.com/italicsjenga/portability.git
synced 2024-11-22 15:01:31 +11:00
Add missing entry points for VK_KHR_get_physical_device_properties2 and VK_KHR_maintenance1
This commit is contained in:
parent
ad2e228947
commit
d0a798f569
22
Cargo.lock
generated
22
Cargo.lock
generated
|
@ -263,7 +263,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "gfx-auxil"
|
name = "gfx-auxil"
|
||||||
version = "0.5.0"
|
version = "0.5.0"
|
||||||
source = "git+https://github.com/gfx-rs/gfx#db7a4aa3e7aa909764a2e8bc60e252972676ea2d"
|
source = "git+https://github.com/gfx-rs/gfx#89dc302254ab68adc99a3b661e23c52b4b0d073f"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"fxhash",
|
"fxhash",
|
||||||
"gfx-hal",
|
"gfx-hal",
|
||||||
|
@ -273,7 +273,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "gfx-backend-dx11"
|
name = "gfx-backend-dx11"
|
||||||
version = "0.6.0"
|
version = "0.6.0"
|
||||||
source = "git+https://github.com/gfx-rs/gfx#db7a4aa3e7aa909764a2e8bc60e252972676ea2d"
|
source = "git+https://github.com/gfx-rs/gfx#89dc302254ab68adc99a3b661e23c52b4b0d073f"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bitflags",
|
"bitflags",
|
||||||
"gfx-auxil",
|
"gfx-auxil",
|
||||||
|
@ -292,7 +292,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "gfx-backend-dx12"
|
name = "gfx-backend-dx12"
|
||||||
version = "0.6.2"
|
version = "0.6.2"
|
||||||
source = "git+https://github.com/gfx-rs/gfx#db7a4aa3e7aa909764a2e8bc60e252972676ea2d"
|
source = "git+https://github.com/gfx-rs/gfx#89dc302254ab68adc99a3b661e23c52b4b0d073f"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bitflags",
|
"bitflags",
|
||||||
"d3d12",
|
"d3d12",
|
||||||
|
@ -309,7 +309,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "gfx-backend-empty"
|
name = "gfx-backend-empty"
|
||||||
version = "0.6.0"
|
version = "0.6.0"
|
||||||
source = "git+https://github.com/gfx-rs/gfx#db7a4aa3e7aa909764a2e8bc60e252972676ea2d"
|
source = "git+https://github.com/gfx-rs/gfx#89dc302254ab68adc99a3b661e23c52b4b0d073f"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"gfx-hal",
|
"gfx-hal",
|
||||||
"log",
|
"log",
|
||||||
|
@ -319,7 +319,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "gfx-backend-metal"
|
name = "gfx-backend-metal"
|
||||||
version = "0.6.0"
|
version = "0.6.0"
|
||||||
source = "git+https://github.com/gfx-rs/gfx#db7a4aa3e7aa909764a2e8bc60e252972676ea2d"
|
source = "git+https://github.com/gfx-rs/gfx#89dc302254ab68adc99a3b661e23c52b4b0d073f"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"arrayvec",
|
"arrayvec",
|
||||||
"bitflags",
|
"bitflags",
|
||||||
|
@ -336,7 +336,6 @@ dependencies = [
|
||||||
"parking_lot",
|
"parking_lot",
|
||||||
"range-alloc",
|
"range-alloc",
|
||||||
"raw-window-handle",
|
"raw-window-handle",
|
||||||
"smallvec",
|
|
||||||
"spirv_cross",
|
"spirv_cross",
|
||||||
"storage-map",
|
"storage-map",
|
||||||
]
|
]
|
||||||
|
@ -344,7 +343,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "gfx-backend-vulkan"
|
name = "gfx-backend-vulkan"
|
||||||
version = "0.6.1"
|
version = "0.6.1"
|
||||||
source = "git+https://github.com/gfx-rs/gfx#db7a4aa3e7aa909764a2e8bc60e252972676ea2d"
|
source = "git+https://github.com/gfx-rs/gfx#89dc302254ab68adc99a3b661e23c52b4b0d073f"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"arrayvec",
|
"arrayvec",
|
||||||
"ash",
|
"ash",
|
||||||
|
@ -365,7 +364,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "gfx-hal"
|
name = "gfx-hal"
|
||||||
version = "0.6.0"
|
version = "0.6.0"
|
||||||
source = "git+https://github.com/gfx-rs/gfx#db7a4aa3e7aa909764a2e8bc60e252972676ea2d"
|
source = "git+https://github.com/gfx-rs/gfx#89dc302254ab68adc99a3b661e23c52b4b0d073f"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bitflags",
|
"bitflags",
|
||||||
"raw-window-handle",
|
"raw-window-handle",
|
||||||
|
@ -427,9 +426,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "hermit-abi"
|
name = "hermit-abi"
|
||||||
version = "0.1.15"
|
version = "0.1.16"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "3deed196b6e7f9e44a2ae8d94225d80302d81208b1bb673fd21fe634645c85a9"
|
checksum = "4c30f6d0bc6b00693347368a67d41b58f2fb851215ff1da49e90fe2c5c667151"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"libc",
|
"libc",
|
||||||
]
|
]
|
||||||
|
@ -669,6 +668,7 @@ dependencies = [
|
||||||
"log",
|
"log",
|
||||||
"parking_lot",
|
"parking_lot",
|
||||||
"renderdoc",
|
"renderdoc",
|
||||||
|
"smallvec",
|
||||||
"typed-arena",
|
"typed-arena",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -753,7 +753,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "range-alloc"
|
name = "range-alloc"
|
||||||
version = "0.1.1"
|
version = "0.1.1"
|
||||||
source = "git+https://github.com/gfx-rs/gfx#db7a4aa3e7aa909764a2e8bc60e252972676ea2d"
|
source = "git+https://github.com/gfx-rs/gfx#89dc302254ab68adc99a3b661e23c52b4b0d073f"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "raw-window-handle"
|
name = "raw-window-handle"
|
||||||
|
|
|
@ -6,4 +6,5 @@ members = [
|
||||||
]
|
]
|
||||||
|
|
||||||
[profile.release]
|
[profile.release]
|
||||||
|
debug = true
|
||||||
panic = "abort"
|
panic = "abort"
|
||||||
|
|
|
@ -24,6 +24,7 @@ env_logger = { version = "0.7", optional = true }
|
||||||
lazy_static = "1"
|
lazy_static = "1"
|
||||||
log = { version = "0.4", features = ["release_max_level_error"] }
|
log = { version = "0.4", features = ["release_max_level_error"] }
|
||||||
parking_lot = "0.11"
|
parking_lot = "0.11"
|
||||||
|
smallvec = "1"
|
||||||
renderdoc = { version = "0.3", optional = true }
|
renderdoc = { version = "0.3", optional = true }
|
||||||
typed-arena = "2"
|
typed-arena = "2"
|
||||||
|
|
||||||
|
|
|
@ -13,6 +13,7 @@ use hal::{
|
||||||
};
|
};
|
||||||
|
|
||||||
use parking_lot::Mutex;
|
use parking_lot::Mutex;
|
||||||
|
use smallvec::SmallVec;
|
||||||
use typed_arena::Arena;
|
use typed_arena::Arena;
|
||||||
|
|
||||||
#[cfg(feature = "gfx-backend-metal")]
|
#[cfg(feature = "gfx-backend-metal")]
|
||||||
|
@ -229,6 +230,22 @@ pub unsafe extern "C" fn gfxGetPhysicalDeviceQueueFamilyProperties(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#[inline]
|
||||||
|
pub unsafe extern "C" fn gfxGetPhysicalDeviceQueueFamilyProperties2KHR(
|
||||||
|
adapter: VkPhysicalDevice,
|
||||||
|
pQueueFamilyPropertyCount: *mut u32,
|
||||||
|
pQueueFamilyProperties: *mut VkQueueFamilyProperties2KHR,
|
||||||
|
) {
|
||||||
|
gfxGetPhysicalDeviceQueueFamilyProperties(
|
||||||
|
adapter,
|
||||||
|
pQueueFamilyPropertyCount,
|
||||||
|
if pQueueFamilyProperties.is_null() {
|
||||||
|
ptr::null_mut()
|
||||||
|
} else {
|
||||||
|
&mut (*pQueueFamilyProperties).queueFamilyProperties
|
||||||
|
},
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
pub unsafe extern "C" fn gfxGetPhysicalDeviceFeatures(
|
pub unsafe extern "C" fn gfxGetPhysicalDeviceFeatures(
|
||||||
|
@ -298,6 +315,19 @@ pub unsafe extern "C" fn gfxGetPhysicalDeviceFormatProperties(
|
||||||
*pFormatProperties = conv::format_properties_from_hal(properties);
|
*pFormatProperties = conv::format_properties_from_hal(properties);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
|
pub unsafe extern "C" fn gfxGetPhysicalDeviceFormatProperties2KHR(
|
||||||
|
adapter: VkPhysicalDevice,
|
||||||
|
format: VkFormat,
|
||||||
|
pFormatProperties: *mut VkFormatProperties2KHR,
|
||||||
|
) {
|
||||||
|
gfxGetPhysicalDeviceFormatProperties(
|
||||||
|
adapter,
|
||||||
|
format,
|
||||||
|
&mut (*pFormatProperties).formatProperties,
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
fn get_physical_device_image_format_properties(
|
fn get_physical_device_image_format_properties(
|
||||||
adapter: VkPhysicalDevice,
|
adapter: VkPhysicalDevice,
|
||||||
info: &VkPhysicalDeviceImageFormatInfo2KHR,
|
info: &VkPhysicalDeviceImageFormatInfo2KHR,
|
||||||
|
@ -477,6 +507,13 @@ pub unsafe extern "C" fn gfxGetPhysicalDeviceMemoryProperties(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#[inline]
|
#[inline]
|
||||||
|
pub unsafe extern "C" fn gfxGetPhysicalDeviceMemoryProperties2KHR(
|
||||||
|
adapter: VkPhysicalDevice,
|
||||||
|
pMemoryProperties: *mut VkPhysicalDeviceMemoryProperties2KHR,
|
||||||
|
) {
|
||||||
|
gfxGetPhysicalDeviceMemoryProperties(adapter, &mut (*pMemoryProperties).memoryProperties);
|
||||||
|
}
|
||||||
|
#[inline]
|
||||||
pub unsafe extern "C" fn gfxGetInstanceProcAddr(
|
pub unsafe extern "C" fn gfxGetInstanceProcAddr(
|
||||||
_instance: VkInstance,
|
_instance: VkInstance,
|
||||||
pName: *const ::std::os::raw::c_char,
|
pName: *const ::std::os::raw::c_char,
|
||||||
|
@ -509,11 +546,15 @@ pub unsafe extern "C" fn gfxGetInstanceProcAddr(
|
||||||
vkGetPhysicalDeviceProperties, PFN_vkGetPhysicalDeviceProperties => gfxGetPhysicalDeviceProperties,
|
vkGetPhysicalDeviceProperties, PFN_vkGetPhysicalDeviceProperties => gfxGetPhysicalDeviceProperties,
|
||||||
vkGetPhysicalDeviceProperties2KHR, PFN_vkGetPhysicalDeviceProperties2KHR => gfxGetPhysicalDeviceProperties2KHR,
|
vkGetPhysicalDeviceProperties2KHR, PFN_vkGetPhysicalDeviceProperties2KHR => gfxGetPhysicalDeviceProperties2KHR,
|
||||||
vkGetPhysicalDeviceFormatProperties, PFN_vkGetPhysicalDeviceFormatProperties => gfxGetPhysicalDeviceFormatProperties,
|
vkGetPhysicalDeviceFormatProperties, PFN_vkGetPhysicalDeviceFormatProperties => gfxGetPhysicalDeviceFormatProperties,
|
||||||
|
vkGetPhysicalDeviceFormatProperties2KHR, PFN_vkGetPhysicalDeviceFormatProperties2KHR => gfxGetPhysicalDeviceFormatProperties2KHR,
|
||||||
vkGetPhysicalDeviceImageFormatProperties, PFN_vkGetPhysicalDeviceImageFormatProperties => gfxGetPhysicalDeviceImageFormatProperties,
|
vkGetPhysicalDeviceImageFormatProperties, PFN_vkGetPhysicalDeviceImageFormatProperties => gfxGetPhysicalDeviceImageFormatProperties,
|
||||||
vkGetPhysicalDeviceImageFormatProperties2KHR, PFN_vkGetPhysicalDeviceImageFormatProperties2KHR => gfxGetPhysicalDeviceImageFormatProperties2KHR,
|
vkGetPhysicalDeviceImageFormatProperties2KHR, PFN_vkGetPhysicalDeviceImageFormatProperties2KHR => gfxGetPhysicalDeviceImageFormatProperties2KHR,
|
||||||
vkGetPhysicalDeviceMemoryProperties, PFN_vkGetPhysicalDeviceMemoryProperties => gfxGetPhysicalDeviceMemoryProperties,
|
vkGetPhysicalDeviceMemoryProperties, PFN_vkGetPhysicalDeviceMemoryProperties => gfxGetPhysicalDeviceMemoryProperties,
|
||||||
|
vkGetPhysicalDeviceMemoryProperties2KHR, PFN_vkGetPhysicalDeviceMemoryProperties2KHR => gfxGetPhysicalDeviceMemoryProperties2KHR,
|
||||||
vkGetPhysicalDeviceQueueFamilyProperties, PFN_vkGetPhysicalDeviceQueueFamilyProperties => gfxGetPhysicalDeviceQueueFamilyProperties,
|
vkGetPhysicalDeviceQueueFamilyProperties, PFN_vkGetPhysicalDeviceQueueFamilyProperties => gfxGetPhysicalDeviceQueueFamilyProperties,
|
||||||
|
vkGetPhysicalDeviceQueueFamilyProperties2KHR, PFN_vkGetPhysicalDeviceQueueFamilyProperties2KHR => gfxGetPhysicalDeviceQueueFamilyProperties2KHR,
|
||||||
vkGetPhysicalDeviceSparseImageFormatProperties, PFN_vkGetPhysicalDeviceSparseImageFormatProperties => gfxGetPhysicalDeviceSparseImageFormatProperties,
|
vkGetPhysicalDeviceSparseImageFormatProperties, PFN_vkGetPhysicalDeviceSparseImageFormatProperties => gfxGetPhysicalDeviceSparseImageFormatProperties,
|
||||||
|
vkGetPhysicalDeviceSparseImageFormatProperties2KHR, PFN_vkGetPhysicalDeviceSparseImageFormatProperties2KHR => gfxGetPhysicalDeviceSparseImageFormatProperties2KHR,
|
||||||
|
|
||||||
vkGetPhysicalDeviceSurfaceSupportKHR, PFN_vkGetPhysicalDeviceSurfaceSupportKHR => gfxGetPhysicalDeviceSurfaceSupportKHR,
|
vkGetPhysicalDeviceSurfaceSupportKHR, PFN_vkGetPhysicalDeviceSurfaceSupportKHR => gfxGetPhysicalDeviceSurfaceSupportKHR,
|
||||||
vkGetPhysicalDeviceSurfaceCapabilitiesKHR, PFN_vkGetPhysicalDeviceSurfaceCapabilitiesKHR => gfxGetPhysicalDeviceSurfaceCapabilitiesKHR,
|
vkGetPhysicalDeviceSurfaceCapabilitiesKHR, PFN_vkGetPhysicalDeviceSurfaceCapabilitiesKHR => gfxGetPhysicalDeviceSurfaceCapabilitiesKHR,
|
||||||
|
@ -627,6 +668,7 @@ pub unsafe extern "C" fn gfxGetDeviceProcAddr(
|
||||||
vkCreateCommandPool, PFN_vkCreateCommandPool => gfxCreateCommandPool,
|
vkCreateCommandPool, PFN_vkCreateCommandPool => gfxCreateCommandPool,
|
||||||
vkDestroyCommandPool, PFN_vkDestroyCommandPool => gfxDestroyCommandPool,
|
vkDestroyCommandPool, PFN_vkDestroyCommandPool => gfxDestroyCommandPool,
|
||||||
vkResetCommandPool, PFN_vkResetCommandPool => gfxResetCommandPool,
|
vkResetCommandPool, PFN_vkResetCommandPool => gfxResetCommandPool,
|
||||||
|
vkTrimCommandPoolKHR, PFN_vkTrimCommandPoolKHR => gfxTrimCommandPoolKHR,
|
||||||
vkAllocateCommandBuffers, PFN_vkAllocateCommandBuffers => gfxAllocateCommandBuffers,
|
vkAllocateCommandBuffers, PFN_vkAllocateCommandBuffers => gfxAllocateCommandBuffers,
|
||||||
vkFreeCommandBuffers, PFN_vkFreeCommandBuffers => gfxFreeCommandBuffers,
|
vkFreeCommandBuffers, PFN_vkFreeCommandBuffers => gfxFreeCommandBuffers,
|
||||||
vkBeginCommandBuffer, PFN_vkBeginCommandBuffer => gfxBeginCommandBuffer,
|
vkBeginCommandBuffer, PFN_vkBeginCommandBuffer => gfxBeginCommandBuffer,
|
||||||
|
@ -1365,8 +1407,8 @@ pub unsafe extern "C" fn gfxGetImageMemoryRequirements(
|
||||||
memoryTypeBits: req.type_mask,
|
memoryTypeBits: req.type_mask,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
/*
|
|
||||||
#[inline]
|
/*#[inline]
|
||||||
pub unsafe extern "C" fn gfxGetImageMemoryRequirements2KHR(
|
pub unsafe extern "C" fn gfxGetImageMemoryRequirements2KHR(
|
||||||
gpu: VkDevice,
|
gpu: VkDevice,
|
||||||
image: VkImage,
|
image: VkImage,
|
||||||
|
@ -1416,6 +1458,15 @@ pub unsafe extern "C" fn gfxGetPhysicalDeviceSparseImageFormatProperties(
|
||||||
*pPropertyCount = 0;
|
*pPropertyCount = 0;
|
||||||
}
|
}
|
||||||
#[inline]
|
#[inline]
|
||||||
|
pub unsafe extern "C" fn gfxGetPhysicalDeviceSparseImageFormatProperties2KHR(
|
||||||
|
_physicalDevice: VkPhysicalDevice,
|
||||||
|
_pFormatInfo: *const VkPhysicalDeviceSparseImageFormatInfo2KHR,
|
||||||
|
pPropertyCount: *mut u32,
|
||||||
|
_pProperties: *mut VkSparseImageFormatProperties2KHR,
|
||||||
|
) {
|
||||||
|
*pPropertyCount = 0;
|
||||||
|
}
|
||||||
|
#[inline]
|
||||||
pub unsafe extern "C" fn gfxQueueBindSparse(
|
pub unsafe extern "C" fn gfxQueueBindSparse(
|
||||||
_queue: VkQueue,
|
_queue: VkQueue,
|
||||||
_bindInfoCount: u32,
|
_bindInfoCount: u32,
|
||||||
|
@ -3251,6 +3302,14 @@ pub unsafe extern "C" fn gfxResetCommandPool(
|
||||||
VkResult::VK_SUCCESS
|
VkResult::VK_SUCCESS
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[no_mangle]
|
||||||
|
pub unsafe extern "C" fn gfxTrimCommandPoolKHR(
|
||||||
|
_gpu: VkDevice,
|
||||||
|
_commandPool: VkCommandPool,
|
||||||
|
_flags: VkCommandPoolTrimFlagsKHR,
|
||||||
|
) {
|
||||||
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
pub unsafe extern "C" fn gfxAllocateCommandBuffers(
|
pub unsafe extern "C" fn gfxAllocateCommandBuffers(
|
||||||
_gpu: VkDevice,
|
_gpu: VkDevice,
|
||||||
|
@ -4110,7 +4169,7 @@ pub unsafe extern "C" fn gfxCmdBeginRenderPass(
|
||||||
None
|
None
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.collect::<Vec<_>>();
|
.collect::<SmallVec<[_; 5]>>();
|
||||||
let contents = conv::map_subpass_contents(contents);
|
let contents = conv::map_subpass_contents(contents);
|
||||||
let framebuffer = info.framebuffer.resolve(info.renderPass);
|
let framebuffer = info.framebuffer.resolve(info.renderPass);
|
||||||
|
|
||||||
|
|
|
@ -42,11 +42,17 @@ pub unsafe extern "C" fn vk_icdGetPhysicalDeviceProcAddr(
|
||||||
vkGetPhysicalDeviceFeatures, PFN_vkGetPhysicalDeviceFeatures => gfxGetPhysicalDeviceFeatures,
|
vkGetPhysicalDeviceFeatures, PFN_vkGetPhysicalDeviceFeatures => gfxGetPhysicalDeviceFeatures,
|
||||||
vkGetPhysicalDeviceFeatures2KHR, PFN_vkGetPhysicalDeviceFeatures2KHR => gfxGetPhysicalDeviceFeatures2KHR,
|
vkGetPhysicalDeviceFeatures2KHR, PFN_vkGetPhysicalDeviceFeatures2KHR => gfxGetPhysicalDeviceFeatures2KHR,
|
||||||
vkGetPhysicalDeviceProperties, PFN_vkGetPhysicalDeviceProperties => gfxGetPhysicalDeviceProperties,
|
vkGetPhysicalDeviceProperties, PFN_vkGetPhysicalDeviceProperties => gfxGetPhysicalDeviceProperties,
|
||||||
|
vkGetPhysicalDeviceProperties2KHR, PFN_vkGetPhysicalDeviceProperties2KHR => gfxGetPhysicalDeviceProperties2KHR,
|
||||||
vkGetPhysicalDeviceFormatProperties, PFN_vkGetPhysicalDeviceFormatProperties => gfxGetPhysicalDeviceFormatProperties,
|
vkGetPhysicalDeviceFormatProperties, PFN_vkGetPhysicalDeviceFormatProperties => gfxGetPhysicalDeviceFormatProperties,
|
||||||
|
vkGetPhysicalDeviceFormatProperties2KHR, PFN_vkGetPhysicalDeviceFormatProperties2KHR => gfxGetPhysicalDeviceFormatProperties2KHR,
|
||||||
vkGetPhysicalDeviceImageFormatProperties, PFN_vkGetPhysicalDeviceImageFormatProperties => gfxGetPhysicalDeviceImageFormatProperties,
|
vkGetPhysicalDeviceImageFormatProperties, PFN_vkGetPhysicalDeviceImageFormatProperties => gfxGetPhysicalDeviceImageFormatProperties,
|
||||||
|
vkGetPhysicalDeviceImageFormatProperties2KHR, PFN_vkGetPhysicalDeviceImageFormatProperties2KHR => gfxGetPhysicalDeviceImageFormatProperties2KHR,
|
||||||
vkGetPhysicalDeviceMemoryProperties, PFN_vkGetPhysicalDeviceMemoryProperties => gfxGetPhysicalDeviceMemoryProperties,
|
vkGetPhysicalDeviceMemoryProperties, PFN_vkGetPhysicalDeviceMemoryProperties => gfxGetPhysicalDeviceMemoryProperties,
|
||||||
|
vkGetPhysicalDeviceMemoryProperties2KHR, PFN_vkGetPhysicalDeviceMemoryProperties2KHR => gfxGetPhysicalDeviceMemoryProperties2KHR,
|
||||||
vkGetPhysicalDeviceQueueFamilyProperties, PFN_vkGetPhysicalDeviceQueueFamilyProperties => gfxGetPhysicalDeviceQueueFamilyProperties,
|
vkGetPhysicalDeviceQueueFamilyProperties, PFN_vkGetPhysicalDeviceQueueFamilyProperties => gfxGetPhysicalDeviceQueueFamilyProperties,
|
||||||
|
vkGetPhysicalDeviceQueueFamilyProperties2KHR, PFN_vkGetPhysicalDeviceQueueFamilyProperties2KHR => gfxGetPhysicalDeviceQueueFamilyProperties2KHR,
|
||||||
vkGetPhysicalDeviceSparseImageFormatProperties, PFN_vkGetPhysicalDeviceSparseImageFormatProperties => gfxGetPhysicalDeviceSparseImageFormatProperties,
|
vkGetPhysicalDeviceSparseImageFormatProperties, PFN_vkGetPhysicalDeviceSparseImageFormatProperties => gfxGetPhysicalDeviceSparseImageFormatProperties,
|
||||||
|
vkGetPhysicalDeviceSparseImageFormatProperties2KHR, PFN_vkGetPhysicalDeviceSparseImageFormatProperties2KHR => gfxGetPhysicalDeviceSparseImageFormatProperties2KHR,
|
||||||
|
|
||||||
vkGetPhysicalDeviceSurfaceSupportKHR, PFN_vkGetPhysicalDeviceSurfaceSupportKHR => gfxGetPhysicalDeviceSurfaceSupportKHR,
|
vkGetPhysicalDeviceSurfaceSupportKHR, PFN_vkGetPhysicalDeviceSurfaceSupportKHR => gfxGetPhysicalDeviceSurfaceSupportKHR,
|
||||||
vkGetPhysicalDeviceSurfaceCapabilitiesKHR, PFN_vkGetPhysicalDeviceSurfaceCapabilitiesKHR => gfxGetPhysicalDeviceSurfaceCapabilitiesKHR,
|
vkGetPhysicalDeviceSurfaceCapabilitiesKHR, PFN_vkGetPhysicalDeviceSurfaceCapabilitiesKHR => gfxGetPhysicalDeviceSurfaceCapabilitiesKHR,
|
||||||
|
|
|
@ -45,6 +45,18 @@ pub unsafe extern "C" fn vkGetPhysicalDeviceQueueFamilyProperties(
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
|
pub unsafe extern "C" fn vkGetPhysicalDeviceQueueFamilyProperties2KHR(
|
||||||
|
adapter: VkPhysicalDevice,
|
||||||
|
pQueueFamilyPropertyCount: *mut u32,
|
||||||
|
pQueueFamilyProperties: *mut VkQueueFamilyProperties2KHR,
|
||||||
|
) {
|
||||||
|
gfxGetPhysicalDeviceQueueFamilyProperties2KHR(
|
||||||
|
adapter,
|
||||||
|
pQueueFamilyPropertyCount,
|
||||||
|
pQueueFamilyProperties,
|
||||||
|
)
|
||||||
|
}
|
||||||
|
#[no_mangle]
|
||||||
pub unsafe extern "C" fn vkGetPhysicalDeviceMemoryProperties(
|
pub unsafe extern "C" fn vkGetPhysicalDeviceMemoryProperties(
|
||||||
physicalDevice: VkPhysicalDevice,
|
physicalDevice: VkPhysicalDevice,
|
||||||
pMemoryProperties: *mut VkPhysicalDeviceMemoryProperties,
|
pMemoryProperties: *mut VkPhysicalDeviceMemoryProperties,
|
||||||
|
@ -52,6 +64,13 @@ pub unsafe extern "C" fn vkGetPhysicalDeviceMemoryProperties(
|
||||||
gfxGetPhysicalDeviceMemoryProperties(physicalDevice, pMemoryProperties)
|
gfxGetPhysicalDeviceMemoryProperties(physicalDevice, pMemoryProperties)
|
||||||
}
|
}
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
|
pub unsafe extern "C" fn vkGetPhysicalDeviceMemoryProperties2KHR(
|
||||||
|
physicalDevice: VkPhysicalDevice,
|
||||||
|
pMemoryProperties: *mut VkPhysicalDeviceMemoryProperties2KHR,
|
||||||
|
) {
|
||||||
|
gfxGetPhysicalDeviceMemoryProperties2KHR(physicalDevice, pMemoryProperties)
|
||||||
|
}
|
||||||
|
#[no_mangle]
|
||||||
pub unsafe extern "C" fn vkCreateDevice(
|
pub unsafe extern "C" fn vkCreateDevice(
|
||||||
adapter: VkPhysicalDevice,
|
adapter: VkPhysicalDevice,
|
||||||
pCreateInfo: *const VkDeviceCreateInfo,
|
pCreateInfo: *const VkDeviceCreateInfo,
|
||||||
|
@ -144,6 +163,14 @@ pub unsafe extern "C" fn vkGetPhysicalDeviceFormatProperties(
|
||||||
) {
|
) {
|
||||||
gfxGetPhysicalDeviceFormatProperties(adapter, format, pFormatProperties)
|
gfxGetPhysicalDeviceFormatProperties(adapter, format, pFormatProperties)
|
||||||
}
|
}
|
||||||
|
#[no_mangle]
|
||||||
|
pub unsafe extern "C" fn vkGetPhysicalDeviceFormatProperties2KHR(
|
||||||
|
adapter: VkPhysicalDevice,
|
||||||
|
format: VkFormat,
|
||||||
|
pFormatProperties: *mut VkFormatProperties2KHR,
|
||||||
|
) {
|
||||||
|
gfxGetPhysicalDeviceFormatProperties2KHR(adapter, format, pFormatProperties)
|
||||||
|
}
|
||||||
|
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
pub unsafe extern "C" fn vkCreateCommandPool(
|
pub unsafe extern "C" fn vkCreateCommandPool(
|
||||||
|
@ -173,6 +200,15 @@ pub unsafe extern "C" fn vkResetCommandPool(
|
||||||
gfxResetCommandPool(device, commandPool, flags)
|
gfxResetCommandPool(device, commandPool, flags)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[no_mangle]
|
||||||
|
pub unsafe extern "C" fn vkTrimCommandPoolKHR(
|
||||||
|
device: VkDevice,
|
||||||
|
commandPool: VkCommandPool,
|
||||||
|
flags: VkCommandPoolTrimFlagsKHR,
|
||||||
|
) {
|
||||||
|
gfxTrimCommandPoolKHR(device, commandPool, flags)
|
||||||
|
}
|
||||||
|
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
pub unsafe extern "C" fn vkAllocateCommandBuffers(
|
pub unsafe extern "C" fn vkAllocateCommandBuffers(
|
||||||
device: VkDevice,
|
device: VkDevice,
|
||||||
|
@ -417,6 +453,18 @@ pub unsafe extern "C" fn vkGetPhysicalDeviceImageFormatProperties(
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
|
pub unsafe extern "C" fn vkGetPhysicalDeviceImageFormatProperties2KHR(
|
||||||
|
physicalDevice: VkPhysicalDevice,
|
||||||
|
pImageFormatInfo: *const VkPhysicalDeviceImageFormatInfo2KHR,
|
||||||
|
pImageFormatProperties: *mut VkImageFormatProperties2KHR,
|
||||||
|
) -> VkResult {
|
||||||
|
gfxGetPhysicalDeviceImageFormatProperties2KHR(
|
||||||
|
physicalDevice,
|
||||||
|
pImageFormatInfo,
|
||||||
|
pImageFormatProperties,
|
||||||
|
)
|
||||||
|
}
|
||||||
|
#[no_mangle]
|
||||||
pub unsafe extern "C" fn vkGetPhysicalDeviceProperties(
|
pub unsafe extern "C" fn vkGetPhysicalDeviceProperties(
|
||||||
physicalDevice: VkPhysicalDevice,
|
physicalDevice: VkPhysicalDevice,
|
||||||
pProperties: *mut VkPhysicalDeviceProperties,
|
pProperties: *mut VkPhysicalDeviceProperties,
|
||||||
|
@ -541,6 +589,20 @@ pub unsafe extern "C" fn vkGetPhysicalDeviceSparseImageFormatProperties(
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
|
pub unsafe extern "C" fn vkGetPhysicalDeviceSparseImageFormatProperties2KHR(
|
||||||
|
physicalDevice: VkPhysicalDevice,
|
||||||
|
pFormatInfo: *const VkPhysicalDeviceSparseImageFormatInfo2KHR,
|
||||||
|
pPropertyCount: *mut u32,
|
||||||
|
pProperties: *mut VkSparseImageFormatProperties2KHR,
|
||||||
|
) {
|
||||||
|
gfxGetPhysicalDeviceSparseImageFormatProperties2KHR(
|
||||||
|
physicalDevice,
|
||||||
|
pFormatInfo,
|
||||||
|
pPropertyCount,
|
||||||
|
pProperties,
|
||||||
|
)
|
||||||
|
}
|
||||||
|
#[no_mangle]
|
||||||
pub unsafe extern "C" fn vkQueueBindSparse(
|
pub unsafe extern "C" fn vkQueueBindSparse(
|
||||||
queue: VkQueue,
|
queue: VkQueue,
|
||||||
bindInfoCount: u32,
|
bindInfoCount: u32,
|
||||||
|
|
Loading…
Reference in a new issue