extensions: Inline all trivial functions (#638)
* extensions: Inline simple getter functions * extensions: Inline all `unsafe fn` helper functions * instance: Inline "skipped" `read_into_uninitialized_vector()` functions * enums: Inline `from_raw`/`as_raw` functions
This commit is contained in:
parent
ce2ee4812c
commit
79f63e1cbc
|
@ -19,6 +19,7 @@ impl BufferDeviceAddress {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetBufferDeviceAddressEXT.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetBufferDeviceAddressEXT.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_buffer_device_address(
|
pub unsafe fn get_buffer_device_address(
|
||||||
&self,
|
&self,
|
||||||
info: &vk::BufferDeviceAddressInfoEXT,
|
info: &vk::BufferDeviceAddressInfoEXT,
|
||||||
|
@ -26,14 +27,17 @@ impl BufferDeviceAddress {
|
||||||
(self.fp.get_buffer_device_address_ext)(self.handle, info)
|
(self.fp.get_buffer_device_address_ext)(self.handle, info)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub const fn name() -> &'static CStr {
|
pub const fn name() -> &'static CStr {
|
||||||
vk::ExtBufferDeviceAddressFn::name()
|
vk::ExtBufferDeviceAddressFn::name()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn fp(&self) -> &vk::ExtBufferDeviceAddressFn {
|
pub fn fp(&self) -> &vk::ExtBufferDeviceAddressFn {
|
||||||
&self.fp
|
&self.fp
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn device(&self) -> vk::Device {
|
pub fn device(&self) -> vk::Device {
|
||||||
self.handle
|
self.handle
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,6 +20,7 @@ impl CalibratedTimestamps {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetPhysicalDeviceCalibrateableTimeDomainsEXT.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetPhysicalDeviceCalibrateableTimeDomainsEXT.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_physical_device_calibrateable_time_domains(
|
pub unsafe fn get_physical_device_calibrateable_time_domains(
|
||||||
&self,
|
&self,
|
||||||
physical_device: vk::PhysicalDevice,
|
physical_device: vk::PhysicalDevice,
|
||||||
|
@ -36,6 +37,7 @@ impl CalibratedTimestamps {
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetCalibratedTimestampsEXT.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetCalibratedTimestampsEXT.html>
|
||||||
///
|
///
|
||||||
/// Returns a tuple containing `(timestamps, max_deviation)`
|
/// Returns a tuple containing `(timestamps, max_deviation)`
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_calibrated_timestamps(
|
pub unsafe fn get_calibrated_timestamps(
|
||||||
&self,
|
&self,
|
||||||
device: vk::Device,
|
device: vk::Device,
|
||||||
|
@ -53,14 +55,17 @@ impl CalibratedTimestamps {
|
||||||
.result_with_success((timestamps, max_deviation))
|
.result_with_success((timestamps, max_deviation))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub const fn name() -> &'static CStr {
|
pub const fn name() -> &'static CStr {
|
||||||
vk::ExtCalibratedTimestampsFn::name()
|
vk::ExtCalibratedTimestampsFn::name()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn fp(&self) -> &vk::ExtCalibratedTimestampsFn {
|
pub fn fp(&self) -> &vk::ExtCalibratedTimestampsFn {
|
||||||
&self.fp
|
&self.fp
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn instance(&self) -> vk::Instance {
|
pub fn instance(&self) -> vk::Instance {
|
||||||
self.handle
|
self.handle
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,6 +20,7 @@ impl DebugMarker {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkDebugMarkerSetObjectNameEXT.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkDebugMarkerSetObjectNameEXT.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn debug_marker_set_object_name(
|
pub unsafe fn debug_marker_set_object_name(
|
||||||
&self,
|
&self,
|
||||||
name_info: &vk::DebugMarkerObjectNameInfoEXT,
|
name_info: &vk::DebugMarkerObjectNameInfoEXT,
|
||||||
|
@ -28,6 +29,7 @@ impl DebugMarker {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdDebugMarkerBeginEXT.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdDebugMarkerBeginEXT.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn cmd_debug_marker_begin(
|
pub unsafe fn cmd_debug_marker_begin(
|
||||||
&self,
|
&self,
|
||||||
command_buffer: vk::CommandBuffer,
|
command_buffer: vk::CommandBuffer,
|
||||||
|
@ -37,11 +39,13 @@ impl DebugMarker {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdDebugMarkerEndEXT.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdDebugMarkerEndEXT.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn cmd_debug_marker_end(&self, command_buffer: vk::CommandBuffer) {
|
pub unsafe fn cmd_debug_marker_end(&self, command_buffer: vk::CommandBuffer) {
|
||||||
(self.fp.cmd_debug_marker_end_ext)(command_buffer);
|
(self.fp.cmd_debug_marker_end_ext)(command_buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdDebugMarkerInsertEXT.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdDebugMarkerInsertEXT.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn cmd_debug_marker_insert(
|
pub unsafe fn cmd_debug_marker_insert(
|
||||||
&self,
|
&self,
|
||||||
command_buffer: vk::CommandBuffer,
|
command_buffer: vk::CommandBuffer,
|
||||||
|
@ -50,14 +54,17 @@ impl DebugMarker {
|
||||||
(self.fp.cmd_debug_marker_insert_ext)(command_buffer, marker_info);
|
(self.fp.cmd_debug_marker_insert_ext)(command_buffer, marker_info);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub const fn name() -> &'static CStr {
|
pub const fn name() -> &'static CStr {
|
||||||
vk::ExtDebugMarkerFn::name()
|
vk::ExtDebugMarkerFn::name()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn fp(&self) -> &vk::ExtDebugMarkerFn {
|
pub fn fp(&self) -> &vk::ExtDebugMarkerFn {
|
||||||
&self.fp
|
&self.fp
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn device(&self) -> vk::Device {
|
pub fn device(&self) -> vk::Device {
|
||||||
self.handle
|
self.handle
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,6 +21,7 @@ impl DebugReport {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkDestroyDebugReportCallbackEXT.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkDestroyDebugReportCallbackEXT.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn destroy_debug_report_callback(
|
pub unsafe fn destroy_debug_report_callback(
|
||||||
&self,
|
&self,
|
||||||
debug: vk::DebugReportCallbackEXT,
|
debug: vk::DebugReportCallbackEXT,
|
||||||
|
@ -34,6 +35,7 @@ impl DebugReport {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCreateDebugReportCallbackEXT.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCreateDebugReportCallbackEXT.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn create_debug_report_callback(
|
pub unsafe fn create_debug_report_callback(
|
||||||
&self,
|
&self,
|
||||||
create_info: &vk::DebugReportCallbackCreateInfoEXT,
|
create_info: &vk::DebugReportCallbackCreateInfoEXT,
|
||||||
|
@ -49,14 +51,17 @@ impl DebugReport {
|
||||||
.result_with_success(debug_cb)
|
.result_with_success(debug_cb)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub const fn name() -> &'static CStr {
|
pub const fn name() -> &'static CStr {
|
||||||
vk::ExtDebugReportFn::name()
|
vk::ExtDebugReportFn::name()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn fp(&self) -> &vk::ExtDebugReportFn {
|
pub fn fp(&self) -> &vk::ExtDebugReportFn {
|
||||||
&self.fp
|
&self.fp
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn instance(&self) -> vk::Instance {
|
pub fn instance(&self) -> vk::Instance {
|
||||||
self.handle
|
self.handle
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,6 +20,7 @@ impl DebugUtils {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkSetDebugUtilsObjectNameEXT.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkSetDebugUtilsObjectNameEXT.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn debug_utils_set_object_name(
|
pub unsafe fn debug_utils_set_object_name(
|
||||||
&self,
|
&self,
|
||||||
device: vk::Device,
|
device: vk::Device,
|
||||||
|
@ -29,6 +30,7 @@ impl DebugUtils {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkSetDebugUtilsObjectTagEXT.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkSetDebugUtilsObjectTagEXT.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn debug_utils_set_object_tag(
|
pub unsafe fn debug_utils_set_object_tag(
|
||||||
&self,
|
&self,
|
||||||
device: vk::Device,
|
device: vk::Device,
|
||||||
|
@ -38,6 +40,7 @@ impl DebugUtils {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdBeginDebugUtilsLabelEXT.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdBeginDebugUtilsLabelEXT.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn cmd_begin_debug_utils_label(
|
pub unsafe fn cmd_begin_debug_utils_label(
|
||||||
&self,
|
&self,
|
||||||
command_buffer: vk::CommandBuffer,
|
command_buffer: vk::CommandBuffer,
|
||||||
|
@ -47,11 +50,13 @@ impl DebugUtils {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdEndDebugUtilsLabelEXT.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdEndDebugUtilsLabelEXT.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn cmd_end_debug_utils_label(&self, command_buffer: vk::CommandBuffer) {
|
pub unsafe fn cmd_end_debug_utils_label(&self, command_buffer: vk::CommandBuffer) {
|
||||||
(self.fp.cmd_end_debug_utils_label_ext)(command_buffer);
|
(self.fp.cmd_end_debug_utils_label_ext)(command_buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdInsertDebugUtilsLabelEXT.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdInsertDebugUtilsLabelEXT.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn cmd_insert_debug_utils_label(
|
pub unsafe fn cmd_insert_debug_utils_label(
|
||||||
&self,
|
&self,
|
||||||
command_buffer: vk::CommandBuffer,
|
command_buffer: vk::CommandBuffer,
|
||||||
|
@ -61,6 +66,7 @@ impl DebugUtils {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkQueueBeginDebugUtilsLabelEXT.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkQueueBeginDebugUtilsLabelEXT.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn queue_begin_debug_utils_label(
|
pub unsafe fn queue_begin_debug_utils_label(
|
||||||
&self,
|
&self,
|
||||||
queue: vk::Queue,
|
queue: vk::Queue,
|
||||||
|
@ -70,11 +76,13 @@ impl DebugUtils {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkQueueEndDebugUtilsLabelEXT.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkQueueEndDebugUtilsLabelEXT.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn queue_end_debug_utils_label(&self, queue: vk::Queue) {
|
pub unsafe fn queue_end_debug_utils_label(&self, queue: vk::Queue) {
|
||||||
(self.fp.queue_end_debug_utils_label_ext)(queue);
|
(self.fp.queue_end_debug_utils_label_ext)(queue);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkQueueInsertDebugUtilsLabelEXT.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkQueueInsertDebugUtilsLabelEXT.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn queue_insert_debug_utils_label(
|
pub unsafe fn queue_insert_debug_utils_label(
|
||||||
&self,
|
&self,
|
||||||
queue: vk::Queue,
|
queue: vk::Queue,
|
||||||
|
@ -84,6 +92,7 @@ impl DebugUtils {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCreateDebugUtilsMessengerEXT.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCreateDebugUtilsMessengerEXT.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn create_debug_utils_messenger(
|
pub unsafe fn create_debug_utils_messenger(
|
||||||
&self,
|
&self,
|
||||||
create_info: &vk::DebugUtilsMessengerCreateInfoEXT,
|
create_info: &vk::DebugUtilsMessengerCreateInfoEXT,
|
||||||
|
@ -100,6 +109,7 @@ impl DebugUtils {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkDestroyDebugUtilsMessengerEXT.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkDestroyDebugUtilsMessengerEXT.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn destroy_debug_utils_messenger(
|
pub unsafe fn destroy_debug_utils_messenger(
|
||||||
&self,
|
&self,
|
||||||
messenger: vk::DebugUtilsMessengerEXT,
|
messenger: vk::DebugUtilsMessengerEXT,
|
||||||
|
@ -109,6 +119,7 @@ impl DebugUtils {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkSubmitDebugUtilsMessageEXT.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkSubmitDebugUtilsMessageEXT.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn submit_debug_utils_message(
|
pub unsafe fn submit_debug_utils_message(
|
||||||
&self,
|
&self,
|
||||||
message_severity: vk::DebugUtilsMessageSeverityFlagsEXT,
|
message_severity: vk::DebugUtilsMessageSeverityFlagsEXT,
|
||||||
|
@ -123,14 +134,17 @@ impl DebugUtils {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub const fn name() -> &'static CStr {
|
pub const fn name() -> &'static CStr {
|
||||||
vk::ExtDebugUtilsFn::name()
|
vk::ExtDebugUtilsFn::name()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn fp(&self) -> &vk::ExtDebugUtilsFn {
|
pub fn fp(&self) -> &vk::ExtDebugUtilsFn {
|
||||||
&self.fp
|
&self.fp
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn instance(&self) -> vk::Instance {
|
pub fn instance(&self) -> vk::Instance {
|
||||||
self.handle
|
self.handle
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,6 +18,7 @@ impl ExtendedDynamicState {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdSetCullModeEXT.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdSetCullModeEXT.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn cmd_set_cull_mode(
|
pub unsafe fn cmd_set_cull_mode(
|
||||||
&self,
|
&self,
|
||||||
command_buffer: vk::CommandBuffer,
|
command_buffer: vk::CommandBuffer,
|
||||||
|
@ -27,6 +28,7 @@ impl ExtendedDynamicState {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdSetFrontFaceEXT.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdSetFrontFaceEXT.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn cmd_set_front_face(
|
pub unsafe fn cmd_set_front_face(
|
||||||
&self,
|
&self,
|
||||||
command_buffer: vk::CommandBuffer,
|
command_buffer: vk::CommandBuffer,
|
||||||
|
@ -36,6 +38,7 @@ impl ExtendedDynamicState {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdSetPrimitiveTopologyEXT.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdSetPrimitiveTopologyEXT.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn cmd_set_primitive_topology(
|
pub unsafe fn cmd_set_primitive_topology(
|
||||||
&self,
|
&self,
|
||||||
command_buffer: vk::CommandBuffer,
|
command_buffer: vk::CommandBuffer,
|
||||||
|
@ -45,6 +48,7 @@ impl ExtendedDynamicState {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdSetViewportWithCountEXT.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdSetViewportWithCountEXT.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn cmd_set_viewport_with_count(
|
pub unsafe fn cmd_set_viewport_with_count(
|
||||||
&self,
|
&self,
|
||||||
command_buffer: vk::CommandBuffer,
|
command_buffer: vk::CommandBuffer,
|
||||||
|
@ -58,6 +62,7 @@ impl ExtendedDynamicState {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdSetScissorWithCountEXT.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdSetScissorWithCountEXT.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn cmd_set_scissor_with_count(
|
pub unsafe fn cmd_set_scissor_with_count(
|
||||||
&self,
|
&self,
|
||||||
command_buffer: vk::CommandBuffer,
|
command_buffer: vk::CommandBuffer,
|
||||||
|
@ -71,6 +76,7 @@ impl ExtendedDynamicState {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdBindVertexBuffers2EXT.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdBindVertexBuffers2EXT.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn cmd_bind_vertex_buffers2(
|
pub unsafe fn cmd_bind_vertex_buffers2(
|
||||||
&self,
|
&self,
|
||||||
command_buffer: vk::CommandBuffer,
|
command_buffer: vk::CommandBuffer,
|
||||||
|
@ -105,6 +111,7 @@ impl ExtendedDynamicState {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdSetDepthTestEnableEXT.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdSetDepthTestEnableEXT.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn cmd_set_depth_test_enable(
|
pub unsafe fn cmd_set_depth_test_enable(
|
||||||
&self,
|
&self,
|
||||||
command_buffer: vk::CommandBuffer,
|
command_buffer: vk::CommandBuffer,
|
||||||
|
@ -114,6 +121,7 @@ impl ExtendedDynamicState {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdSetDepthWriteEnableEXT.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdSetDepthWriteEnableEXT.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn cmd_set_depth_write_enable(
|
pub unsafe fn cmd_set_depth_write_enable(
|
||||||
&self,
|
&self,
|
||||||
command_buffer: vk::CommandBuffer,
|
command_buffer: vk::CommandBuffer,
|
||||||
|
@ -123,6 +131,7 @@ impl ExtendedDynamicState {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdSetDepthCompareOpEXT.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdSetDepthCompareOpEXT.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn cmd_set_depth_compare_op(
|
pub unsafe fn cmd_set_depth_compare_op(
|
||||||
&self,
|
&self,
|
||||||
command_buffer: vk::CommandBuffer,
|
command_buffer: vk::CommandBuffer,
|
||||||
|
@ -132,6 +141,7 @@ impl ExtendedDynamicState {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdSetDepthBoundsTestEnableEXT.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdSetDepthBoundsTestEnableEXT.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn cmd_set_depth_bounds_test_enable(
|
pub unsafe fn cmd_set_depth_bounds_test_enable(
|
||||||
&self,
|
&self,
|
||||||
command_buffer: vk::CommandBuffer,
|
command_buffer: vk::CommandBuffer,
|
||||||
|
@ -144,6 +154,7 @@ impl ExtendedDynamicState {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdSetStencilTestEnableEXT.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdSetStencilTestEnableEXT.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn cmd_set_stencil_test_enable(
|
pub unsafe fn cmd_set_stencil_test_enable(
|
||||||
&self,
|
&self,
|
||||||
command_buffer: vk::CommandBuffer,
|
command_buffer: vk::CommandBuffer,
|
||||||
|
@ -153,6 +164,7 @@ impl ExtendedDynamicState {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdSetStencilOpEXT.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdSetStencilOpEXT.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn cmd_set_stencil_op(
|
pub unsafe fn cmd_set_stencil_op(
|
||||||
&self,
|
&self,
|
||||||
command_buffer: vk::CommandBuffer,
|
command_buffer: vk::CommandBuffer,
|
||||||
|
@ -172,10 +184,12 @@ impl ExtendedDynamicState {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub const fn name() -> &'static CStr {
|
pub const fn name() -> &'static CStr {
|
||||||
vk::ExtExtendedDynamicStateFn::name()
|
vk::ExtExtendedDynamicStateFn::name()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn fp(&self) -> &vk::ExtExtendedDynamicStateFn {
|
pub fn fp(&self) -> &vk::ExtExtendedDynamicStateFn {
|
||||||
&self.fp
|
&self.fp
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,6 +18,7 @@ impl ExtendedDynamicState2 {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdSetPatchControlPointsEXT.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdSetPatchControlPointsEXT.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn cmd_set_patch_control_points(
|
pub unsafe fn cmd_set_patch_control_points(
|
||||||
&self,
|
&self,
|
||||||
command_buffer: vk::CommandBuffer,
|
command_buffer: vk::CommandBuffer,
|
||||||
|
@ -27,6 +28,7 @@ impl ExtendedDynamicState2 {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdSetRasterizerDiscardEnableEXT.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdSetRasterizerDiscardEnableEXT.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn cmd_set_rasterizer_discard_enable(
|
pub unsafe fn cmd_set_rasterizer_discard_enable(
|
||||||
&self,
|
&self,
|
||||||
command_buffer: vk::CommandBuffer,
|
command_buffer: vk::CommandBuffer,
|
||||||
|
@ -39,6 +41,7 @@ impl ExtendedDynamicState2 {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdSetDepthBiasEnableEXT.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdSetDepthBiasEnableEXT.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn cmd_set_depth_bias_enable(
|
pub unsafe fn cmd_set_depth_bias_enable(
|
||||||
&self,
|
&self,
|
||||||
command_buffer: vk::CommandBuffer,
|
command_buffer: vk::CommandBuffer,
|
||||||
|
@ -48,6 +51,7 @@ impl ExtendedDynamicState2 {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdSetLogicOpEXT.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdSetLogicOpEXT.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn cmd_set_logic_op(
|
pub unsafe fn cmd_set_logic_op(
|
||||||
&self,
|
&self,
|
||||||
command_buffer: vk::CommandBuffer,
|
command_buffer: vk::CommandBuffer,
|
||||||
|
@ -57,6 +61,7 @@ impl ExtendedDynamicState2 {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdSetPrimitiveRestartEnableEXT.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdSetPrimitiveRestartEnableEXT.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn cmd_set_primitive_restart_enable(
|
pub unsafe fn cmd_set_primitive_restart_enable(
|
||||||
&self,
|
&self,
|
||||||
command_buffer: vk::CommandBuffer,
|
command_buffer: vk::CommandBuffer,
|
||||||
|
@ -68,10 +73,12 @@ impl ExtendedDynamicState2 {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub const fn name() -> &'static CStr {
|
pub const fn name() -> &'static CStr {
|
||||||
vk::ExtExtendedDynamicState2Fn::name()
|
vk::ExtExtendedDynamicState2Fn::name()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn fp(&self) -> &vk::ExtExtendedDynamicState2Fn {
|
pub fn fp(&self) -> &vk::ExtExtendedDynamicState2Fn {
|
||||||
&self.fp
|
&self.fp
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,6 +20,7 @@ impl FullScreenExclusive {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkAcquireFullScreenExclusiveModeEXT.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkAcquireFullScreenExclusiveModeEXT.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn acquire_full_screen_exclusive_mode(
|
pub unsafe fn acquire_full_screen_exclusive_mode(
|
||||||
&self,
|
&self,
|
||||||
swapchain: vk::SwapchainKHR,
|
swapchain: vk::SwapchainKHR,
|
||||||
|
@ -28,6 +29,7 @@ impl FullScreenExclusive {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetPhysicalDeviceSurfacePresentModes2EXT.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetPhysicalDeviceSurfacePresentModes2EXT.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_physical_device_surface_present_modes2(
|
pub unsafe fn get_physical_device_surface_present_modes2(
|
||||||
&self,
|
&self,
|
||||||
physical_device: vk::PhysicalDevice,
|
physical_device: vk::PhysicalDevice,
|
||||||
|
@ -44,6 +46,7 @@ impl FullScreenExclusive {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkReleaseFullScreenExclusiveModeEXT.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkReleaseFullScreenExclusiveModeEXT.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn release_full_screen_exclusive_mode(
|
pub unsafe fn release_full_screen_exclusive_mode(
|
||||||
&self,
|
&self,
|
||||||
swapchain: vk::SwapchainKHR,
|
swapchain: vk::SwapchainKHR,
|
||||||
|
@ -52,6 +55,7 @@ impl FullScreenExclusive {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetDeviceGroupSurfacePresentModes2EXT.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetDeviceGroupSurfacePresentModes2EXT.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_device_group_surface_present_modes2(
|
pub unsafe fn get_device_group_surface_present_modes2(
|
||||||
&self,
|
&self,
|
||||||
surface_info: &vk::PhysicalDeviceSurfaceInfo2KHR,
|
surface_info: &vk::PhysicalDeviceSurfaceInfo2KHR,
|
||||||
|
@ -65,14 +69,17 @@ impl FullScreenExclusive {
|
||||||
.result_with_success(present_modes)
|
.result_with_success(present_modes)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub const fn name() -> &'static CStr {
|
pub const fn name() -> &'static CStr {
|
||||||
vk::ExtFullScreenExclusiveFn::name()
|
vk::ExtFullScreenExclusiveFn::name()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn fp(&self) -> &vk::ExtFullScreenExclusiveFn {
|
pub fn fp(&self) -> &vk::ExtFullScreenExclusiveFn {
|
||||||
&self.fp
|
&self.fp
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn device(&self) -> vk::Device {
|
pub fn device(&self) -> vk::Device {
|
||||||
self.handle
|
self.handle
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,6 +22,7 @@ impl HeadlessSurface {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCreateHeadlessSurfaceEXT.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCreateHeadlessSurfaceEXT.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn create_headless_surface(
|
pub unsafe fn create_headless_surface(
|
||||||
&self,
|
&self,
|
||||||
create_info: &vk::HeadlessSurfaceCreateInfoEXT,
|
create_info: &vk::HeadlessSurfaceCreateInfoEXT,
|
||||||
|
@ -37,14 +38,17 @@ impl HeadlessSurface {
|
||||||
.result_with_success(surface)
|
.result_with_success(surface)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub const fn name() -> &'static CStr {
|
pub const fn name() -> &'static CStr {
|
||||||
vk::ExtHeadlessSurfaceFn::name()
|
vk::ExtHeadlessSurfaceFn::name()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn fp(&self) -> &vk::ExtHeadlessSurfaceFn {
|
pub fn fp(&self) -> &vk::ExtHeadlessSurfaceFn {
|
||||||
&self.fp
|
&self.fp
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn instance(&self) -> vk::Instance {
|
pub fn instance(&self) -> vk::Instance {
|
||||||
self.handle
|
self.handle
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,6 +21,7 @@ impl ImageDrmFormatModifier {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetImageDrmFormatModifierPropertiesEXT.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetImageDrmFormatModifierPropertiesEXT.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_image_drm_format_modifier_properties(
|
pub unsafe fn get_image_drm_format_modifier_properties(
|
||||||
&self,
|
&self,
|
||||||
image: vk::Image,
|
image: vk::Image,
|
||||||
|
@ -30,14 +31,17 @@ impl ImageDrmFormatModifier {
|
||||||
.result()
|
.result()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub const fn name() -> &'static CStr {
|
pub const fn name() -> &'static CStr {
|
||||||
vk::ExtImageDrmFormatModifierFn::name()
|
vk::ExtImageDrmFormatModifierFn::name()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn fp(&self) -> &vk::ExtImageDrmFormatModifierFn {
|
pub fn fp(&self) -> &vk::ExtImageDrmFormatModifierFn {
|
||||||
&self.fp
|
&self.fp
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn device(&self) -> vk::Device {
|
pub fn device(&self) -> vk::Device {
|
||||||
self.handle
|
self.handle
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,6 +21,7 @@ impl MetalSurface {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCreateMetalSurfaceEXT.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCreateMetalSurfaceEXT.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn create_metal_surface(
|
pub unsafe fn create_metal_surface(
|
||||||
&self,
|
&self,
|
||||||
create_info: &vk::MetalSurfaceCreateInfoEXT,
|
create_info: &vk::MetalSurfaceCreateInfoEXT,
|
||||||
|
@ -36,14 +37,17 @@ impl MetalSurface {
|
||||||
.result_with_success(surface)
|
.result_with_success(surface)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub const fn name() -> &'static CStr {
|
pub const fn name() -> &'static CStr {
|
||||||
vk::ExtMetalSurfaceFn::name()
|
vk::ExtMetalSurfaceFn::name()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn fp(&self) -> &vk::ExtMetalSurfaceFn {
|
pub fn fp(&self) -> &vk::ExtMetalSurfaceFn {
|
||||||
&self.fp
|
&self.fp
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn instance(&self) -> vk::Instance {
|
pub fn instance(&self) -> vk::Instance {
|
||||||
self.handle
|
self.handle
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,6 +6,7 @@ use std::ffi::CStr;
|
||||||
pub struct PhysicalDeviceDrm;
|
pub struct PhysicalDeviceDrm;
|
||||||
|
|
||||||
impl PhysicalDeviceDrm {
|
impl PhysicalDeviceDrm {
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_properties(
|
pub unsafe fn get_properties(
|
||||||
instance: &Instance,
|
instance: &Instance,
|
||||||
pdevice: vk::PhysicalDevice,
|
pdevice: vk::PhysicalDevice,
|
||||||
|
@ -18,6 +19,7 @@ impl PhysicalDeviceDrm {
|
||||||
props_drm
|
props_drm
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub const fn name() -> &'static CStr {
|
pub const fn name() -> &'static CStr {
|
||||||
vk::ExtPhysicalDeviceDrmFn::name()
|
vk::ExtPhysicalDeviceDrmFn::name()
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,6 +22,7 @@ impl PrivateData {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCreatePrivateDataSlotEXT.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCreatePrivateDataSlotEXT.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn create_private_data_slot(
|
pub unsafe fn create_private_data_slot(
|
||||||
&self,
|
&self,
|
||||||
create_info: &vk::PrivateDataSlotCreateInfoEXT,
|
create_info: &vk::PrivateDataSlotCreateInfoEXT,
|
||||||
|
@ -38,6 +39,7 @@ impl PrivateData {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkDestroyPrivateDataSlotEXT.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkDestroyPrivateDataSlotEXT.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn destroy_private_data_slot(
|
pub unsafe fn destroy_private_data_slot(
|
||||||
&self,
|
&self,
|
||||||
private_data_slot: vk::PrivateDataSlotEXT,
|
private_data_slot: vk::PrivateDataSlotEXT,
|
||||||
|
@ -51,6 +53,7 @@ impl PrivateData {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkSetPrivateDataEXT.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkSetPrivateDataEXT.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn set_private_data<T: vk::Handle>(
|
pub unsafe fn set_private_data<T: vk::Handle>(
|
||||||
&self,
|
&self,
|
||||||
object: T,
|
object: T,
|
||||||
|
@ -68,6 +71,7 @@ impl PrivateData {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetPrivateDataEXT.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetPrivateDataEXT.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_private_data<T: vk::Handle>(
|
pub unsafe fn get_private_data<T: vk::Handle>(
|
||||||
&self,
|
&self,
|
||||||
object: T,
|
object: T,
|
||||||
|
@ -84,14 +88,17 @@ impl PrivateData {
|
||||||
data
|
data
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub const fn name() -> &'static CStr {
|
pub const fn name() -> &'static CStr {
|
||||||
vk::ExtPrivateDataFn::name()
|
vk::ExtPrivateDataFn::name()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn fp(&self) -> &vk::ExtPrivateDataFn {
|
pub fn fp(&self) -> &vk::ExtPrivateDataFn {
|
||||||
&self.fp
|
&self.fp
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn device(&self) -> vk::Device {
|
pub fn device(&self) -> vk::Device {
|
||||||
self.handle
|
self.handle
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,6 +18,7 @@ impl SampleLocations {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetPhysicalDeviceMultisamplePropertiesEXT.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetPhysicalDeviceMultisamplePropertiesEXT.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_physical_device_multisample_properties(
|
pub unsafe fn get_physical_device_multisample_properties(
|
||||||
&self,
|
&self,
|
||||||
physical_device: vk::PhysicalDevice,
|
physical_device: vk::PhysicalDevice,
|
||||||
|
@ -32,6 +33,7 @@ impl SampleLocations {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdSetSampleLocationsEXT.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdSetSampleLocationsEXT.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn cmd_set_sample_locations(
|
pub unsafe fn cmd_set_sample_locations(
|
||||||
&self,
|
&self,
|
||||||
command_buffer: vk::CommandBuffer,
|
command_buffer: vk::CommandBuffer,
|
||||||
|
@ -40,10 +42,12 @@ impl SampleLocations {
|
||||||
(self.fp.cmd_set_sample_locations_ext)(command_buffer, sample_locations_info)
|
(self.fp.cmd_set_sample_locations_ext)(command_buffer, sample_locations_info)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub const fn name() -> &'static CStr {
|
pub const fn name() -> &'static CStr {
|
||||||
vk::ExtSampleLocationsFn::name()
|
vk::ExtSampleLocationsFn::name()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn fp(&self) -> &vk::ExtSampleLocationsFn {
|
pub fn fp(&self) -> &vk::ExtSampleLocationsFn {
|
||||||
&self.fp
|
&self.fp
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,6 +18,7 @@ impl ToolingInfo {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetPhysicalDeviceToolPropertiesEXT.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetPhysicalDeviceToolPropertiesEXT.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_physical_device_tool_properties(
|
pub unsafe fn get_physical_device_tool_properties(
|
||||||
&self,
|
&self,
|
||||||
physical_device: vk::PhysicalDevice,
|
physical_device: vk::PhysicalDevice,
|
||||||
|
@ -27,10 +28,12 @@ impl ToolingInfo {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub const fn name() -> &'static CStr {
|
pub const fn name() -> &'static CStr {
|
||||||
vk::ExtToolingInfoFn::name()
|
vk::ExtToolingInfoFn::name()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn fp(&self) -> &vk::ExtToolingInfoFn {
|
pub fn fp(&self) -> &vk::ExtToolingInfoFn {
|
||||||
&self.fp
|
&self.fp
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,6 +20,7 @@ impl AccelerationStructure {
|
||||||
Self { handle, fp }
|
Self { handle, fp }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_properties(
|
pub unsafe fn get_properties(
|
||||||
instance: &Instance,
|
instance: &Instance,
|
||||||
pdevice: vk::PhysicalDevice,
|
pdevice: vk::PhysicalDevice,
|
||||||
|
@ -33,6 +34,7 @@ impl AccelerationStructure {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCreateAccelerationStructureKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCreateAccelerationStructureKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn create_acceleration_structure(
|
pub unsafe fn create_acceleration_structure(
|
||||||
&self,
|
&self,
|
||||||
create_info: &vk::AccelerationStructureCreateInfoKHR,
|
create_info: &vk::AccelerationStructureCreateInfoKHR,
|
||||||
|
@ -49,6 +51,7 @@ impl AccelerationStructure {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkDestroyAccelerationStructureKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkDestroyAccelerationStructureKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn destroy_acceleration_structure(
|
pub unsafe fn destroy_acceleration_structure(
|
||||||
&self,
|
&self,
|
||||||
accel_struct: vk::AccelerationStructureKHR,
|
accel_struct: vk::AccelerationStructureKHR,
|
||||||
|
@ -62,6 +65,7 @@ impl AccelerationStructure {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdBuildAccelerationStructuresKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdBuildAccelerationStructuresKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn cmd_build_acceleration_structures(
|
pub unsafe fn cmd_build_acceleration_structures(
|
||||||
&self,
|
&self,
|
||||||
command_buffer: vk::CommandBuffer,
|
command_buffer: vk::CommandBuffer,
|
||||||
|
@ -88,6 +92,7 @@ impl AccelerationStructure {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdBuildAccelerationStructuresIndirectKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdBuildAccelerationStructuresIndirectKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn cmd_build_acceleration_structures_indirect(
|
pub unsafe fn cmd_build_acceleration_structures_indirect(
|
||||||
&self,
|
&self,
|
||||||
command_buffer: vk::CommandBuffer,
|
command_buffer: vk::CommandBuffer,
|
||||||
|
@ -120,6 +125,7 @@ impl AccelerationStructure {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkBuildAccelerationStructuresKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkBuildAccelerationStructuresKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn build_acceleration_structures(
|
pub unsafe fn build_acceleration_structures(
|
||||||
&self,
|
&self,
|
||||||
deferred_operation: vk::DeferredOperationKHR,
|
deferred_operation: vk::DeferredOperationKHR,
|
||||||
|
@ -148,6 +154,7 @@ impl AccelerationStructure {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCopyAccelerationStructureKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCopyAccelerationStructureKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn copy_acceleration_structure(
|
pub unsafe fn copy_acceleration_structure(
|
||||||
&self,
|
&self,
|
||||||
deferred_operation: vk::DeferredOperationKHR,
|
deferred_operation: vk::DeferredOperationKHR,
|
||||||
|
@ -157,6 +164,7 @@ impl AccelerationStructure {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCopyAccelerationStructureToMemoryKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCopyAccelerationStructureToMemoryKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn copy_acceleration_structure_to_memory(
|
pub unsafe fn copy_acceleration_structure_to_memory(
|
||||||
&self,
|
&self,
|
||||||
deferred_operation: vk::DeferredOperationKHR,
|
deferred_operation: vk::DeferredOperationKHR,
|
||||||
|
@ -167,6 +175,7 @@ impl AccelerationStructure {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCopyMemoryToAccelerationStructureKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCopyMemoryToAccelerationStructureKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn copy_memory_to_acceleration_structure(
|
pub unsafe fn copy_memory_to_acceleration_structure(
|
||||||
&self,
|
&self,
|
||||||
deferred_operation: vk::DeferredOperationKHR,
|
deferred_operation: vk::DeferredOperationKHR,
|
||||||
|
@ -177,6 +186,7 @@ impl AccelerationStructure {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkWriteAccelerationStructuresPropertiesKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkWriteAccelerationStructuresPropertiesKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn write_acceleration_structures_properties(
|
pub unsafe fn write_acceleration_structures_properties(
|
||||||
&self,
|
&self,
|
||||||
acceleration_structures: &[vk::AccelerationStructureKHR],
|
acceleration_structures: &[vk::AccelerationStructureKHR],
|
||||||
|
@ -197,6 +207,7 @@ impl AccelerationStructure {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdCopyAccelerationStructureKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdCopyAccelerationStructureKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn cmd_copy_acceleration_structure(
|
pub unsafe fn cmd_copy_acceleration_structure(
|
||||||
&self,
|
&self,
|
||||||
command_buffer: vk::CommandBuffer,
|
command_buffer: vk::CommandBuffer,
|
||||||
|
@ -206,6 +217,7 @@ impl AccelerationStructure {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdCopyAccelerationStructureToMemoryKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdCopyAccelerationStructureToMemoryKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn cmd_copy_acceleration_structure_to_memory(
|
pub unsafe fn cmd_copy_acceleration_structure_to_memory(
|
||||||
&self,
|
&self,
|
||||||
command_buffer: vk::CommandBuffer,
|
command_buffer: vk::CommandBuffer,
|
||||||
|
@ -215,6 +227,7 @@ impl AccelerationStructure {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdCopyMemoryToAccelerationStructureKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdCopyMemoryToAccelerationStructureKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn cmd_copy_memory_to_acceleration_structure(
|
pub unsafe fn cmd_copy_memory_to_acceleration_structure(
|
||||||
&self,
|
&self,
|
||||||
command_buffer: vk::CommandBuffer,
|
command_buffer: vk::CommandBuffer,
|
||||||
|
@ -224,6 +237,7 @@ impl AccelerationStructure {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetAccelerationStructureHandleKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetAccelerationStructureHandleKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_acceleration_structure_device_address(
|
pub unsafe fn get_acceleration_structure_device_address(
|
||||||
&self,
|
&self,
|
||||||
info: &vk::AccelerationStructureDeviceAddressInfoKHR,
|
info: &vk::AccelerationStructureDeviceAddressInfoKHR,
|
||||||
|
@ -232,6 +246,7 @@ impl AccelerationStructure {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdWriteAccelerationStructuresPropertiesKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdWriteAccelerationStructuresPropertiesKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn cmd_write_acceleration_structures_properties(
|
pub unsafe fn cmd_write_acceleration_structures_properties(
|
||||||
&self,
|
&self,
|
||||||
command_buffer: vk::CommandBuffer,
|
command_buffer: vk::CommandBuffer,
|
||||||
|
@ -251,6 +266,7 @@ impl AccelerationStructure {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetDeviceAccelerationStructureCompatibilityKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetDeviceAccelerationStructureCompatibilityKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_device_acceleration_structure_compatibility(
|
pub unsafe fn get_device_acceleration_structure_compatibility(
|
||||||
&self,
|
&self,
|
||||||
version: &vk::AccelerationStructureVersionInfoKHR,
|
version: &vk::AccelerationStructureVersionInfoKHR,
|
||||||
|
@ -267,6 +283,7 @@ impl AccelerationStructure {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetAccelerationStructureBuildSizesKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetAccelerationStructureBuildSizesKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_acceleration_structure_build_sizes(
|
pub unsafe fn get_acceleration_structure_build_sizes(
|
||||||
&self,
|
&self,
|
||||||
build_type: vk::AccelerationStructureBuildTypeKHR,
|
build_type: vk::AccelerationStructureBuildTypeKHR,
|
||||||
|
@ -288,14 +305,17 @@ impl AccelerationStructure {
|
||||||
size_info
|
size_info
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub const fn name() -> &'static CStr {
|
pub const fn name() -> &'static CStr {
|
||||||
vk::KhrAccelerationStructureFn::name()
|
vk::KhrAccelerationStructureFn::name()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn fp(&self) -> &vk::KhrAccelerationStructureFn {
|
pub fn fp(&self) -> &vk::KhrAccelerationStructureFn {
|
||||||
&self.fp
|
&self.fp
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn device(&self) -> vk::Device {
|
pub fn device(&self) -> vk::Device {
|
||||||
self.handle
|
self.handle
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,6 +21,7 @@ impl AndroidSurface {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCreateAndroidSurfaceKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCreateAndroidSurfaceKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn create_android_surface(
|
pub unsafe fn create_android_surface(
|
||||||
&self,
|
&self,
|
||||||
create_info: &vk::AndroidSurfaceCreateInfoKHR,
|
create_info: &vk::AndroidSurfaceCreateInfoKHR,
|
||||||
|
@ -36,14 +37,17 @@ impl AndroidSurface {
|
||||||
.result_with_success(surface)
|
.result_with_success(surface)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub const fn name() -> &'static CStr {
|
pub const fn name() -> &'static CStr {
|
||||||
vk::KhrAndroidSurfaceFn::name()
|
vk::KhrAndroidSurfaceFn::name()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn fp(&self) -> &vk::KhrAndroidSurfaceFn {
|
pub fn fp(&self) -> &vk::KhrAndroidSurfaceFn {
|
||||||
&self.fp
|
&self.fp
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn instance(&self) -> vk::Instance {
|
pub fn instance(&self) -> vk::Instance {
|
||||||
self.handle
|
self.handle
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,6 +19,7 @@ impl BufferDeviceAddress {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetBufferDeviceAddressKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetBufferDeviceAddressKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_buffer_device_address(
|
pub unsafe fn get_buffer_device_address(
|
||||||
&self,
|
&self,
|
||||||
info: &vk::BufferDeviceAddressInfoKHR,
|
info: &vk::BufferDeviceAddressInfoKHR,
|
||||||
|
@ -27,6 +28,7 @@ impl BufferDeviceAddress {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetBufferOpaqueCaptureAddressKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetBufferOpaqueCaptureAddressKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_buffer_opaque_capture_address(
|
pub unsafe fn get_buffer_opaque_capture_address(
|
||||||
&self,
|
&self,
|
||||||
info: &vk::BufferDeviceAddressInfoKHR,
|
info: &vk::BufferDeviceAddressInfoKHR,
|
||||||
|
@ -35,6 +37,7 @@ impl BufferDeviceAddress {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetDeviceMemoryOpaqueCaptureAddressKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetDeviceMemoryOpaqueCaptureAddressKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_device_memory_opaque_capture_address(
|
pub unsafe fn get_device_memory_opaque_capture_address(
|
||||||
&self,
|
&self,
|
||||||
info: &vk::DeviceMemoryOpaqueCaptureAddressInfoKHR,
|
info: &vk::DeviceMemoryOpaqueCaptureAddressInfoKHR,
|
||||||
|
@ -42,14 +45,17 @@ impl BufferDeviceAddress {
|
||||||
(self.fp.get_device_memory_opaque_capture_address_khr)(self.handle, info)
|
(self.fp.get_device_memory_opaque_capture_address_khr)(self.handle, info)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub const fn name() -> &'static CStr {
|
pub const fn name() -> &'static CStr {
|
||||||
vk::KhrBufferDeviceAddressFn::name()
|
vk::KhrBufferDeviceAddressFn::name()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn fp(&self) -> &vk::KhrBufferDeviceAddressFn {
|
pub fn fp(&self) -> &vk::KhrBufferDeviceAddressFn {
|
||||||
&self.fp
|
&self.fp
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn device(&self) -> vk::Device {
|
pub fn device(&self) -> vk::Device {
|
||||||
self.handle
|
self.handle
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,6 +18,7 @@ impl CopyCommands2 {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdCopyBuffer2KHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdCopyBuffer2KHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn cmd_copy_buffer2(
|
pub unsafe fn cmd_copy_buffer2(
|
||||||
&self,
|
&self,
|
||||||
command_buffer: vk::CommandBuffer,
|
command_buffer: vk::CommandBuffer,
|
||||||
|
@ -26,6 +27,7 @@ impl CopyCommands2 {
|
||||||
(self.fp.cmd_copy_buffer2_khr)(command_buffer, copy_buffer_info)
|
(self.fp.cmd_copy_buffer2_khr)(command_buffer, copy_buffer_info)
|
||||||
}
|
}
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdCopyImage2KHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdCopyImage2KHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn cmd_copy_image2(
|
pub unsafe fn cmd_copy_image2(
|
||||||
&self,
|
&self,
|
||||||
command_buffer: vk::CommandBuffer,
|
command_buffer: vk::CommandBuffer,
|
||||||
|
@ -34,6 +36,7 @@ impl CopyCommands2 {
|
||||||
(self.fp.cmd_copy_image2_khr)(command_buffer, copy_image_info)
|
(self.fp.cmd_copy_image2_khr)(command_buffer, copy_image_info)
|
||||||
}
|
}
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdCopyBufferToImage2KHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdCopyBufferToImage2KHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn cmd_copy_buffer_to_image2(
|
pub unsafe fn cmd_copy_buffer_to_image2(
|
||||||
&self,
|
&self,
|
||||||
command_buffer: vk::CommandBuffer,
|
command_buffer: vk::CommandBuffer,
|
||||||
|
@ -42,6 +45,7 @@ impl CopyCommands2 {
|
||||||
(self.fp.cmd_copy_buffer_to_image2_khr)(command_buffer, copy_buffer_to_image_info)
|
(self.fp.cmd_copy_buffer_to_image2_khr)(command_buffer, copy_buffer_to_image_info)
|
||||||
}
|
}
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdCopyImageToBuffer2KHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdCopyImageToBuffer2KHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn cmd_copy_image_to_buffer2(
|
pub unsafe fn cmd_copy_image_to_buffer2(
|
||||||
&self,
|
&self,
|
||||||
command_buffer: vk::CommandBuffer,
|
command_buffer: vk::CommandBuffer,
|
||||||
|
@ -50,6 +54,7 @@ impl CopyCommands2 {
|
||||||
(self.fp.cmd_copy_image_to_buffer2_khr)(command_buffer, copy_image_to_buffer_info)
|
(self.fp.cmd_copy_image_to_buffer2_khr)(command_buffer, copy_image_to_buffer_info)
|
||||||
}
|
}
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdBlitImage2KHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdBlitImage2KHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn cmd_blit_image2(
|
pub unsafe fn cmd_blit_image2(
|
||||||
&self,
|
&self,
|
||||||
command_buffer: vk::CommandBuffer,
|
command_buffer: vk::CommandBuffer,
|
||||||
|
@ -58,6 +63,7 @@ impl CopyCommands2 {
|
||||||
(self.fp.cmd_blit_image2_khr)(command_buffer, blit_image_info)
|
(self.fp.cmd_blit_image2_khr)(command_buffer, blit_image_info)
|
||||||
}
|
}
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdResolveImage2KHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdResolveImage2KHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn cmd_resolve_image2(
|
pub unsafe fn cmd_resolve_image2(
|
||||||
&self,
|
&self,
|
||||||
command_buffer: vk::CommandBuffer,
|
command_buffer: vk::CommandBuffer,
|
||||||
|
@ -66,10 +72,12 @@ impl CopyCommands2 {
|
||||||
(self.fp.cmd_resolve_image2_khr)(command_buffer, resolve_image_info)
|
(self.fp.cmd_resolve_image2_khr)(command_buffer, resolve_image_info)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub const fn name() -> &'static CStr {
|
pub const fn name() -> &'static CStr {
|
||||||
vk::KhrCopyCommands2Fn::name()
|
vk::KhrCopyCommands2Fn::name()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn fp(&self) -> &vk::KhrCopyCommands2Fn {
|
pub fn fp(&self) -> &vk::KhrCopyCommands2Fn {
|
||||||
&self.fp
|
&self.fp
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,6 +21,7 @@ impl CreateRenderPass2 {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCreateRenderPass2.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCreateRenderPass2.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn create_render_pass2(
|
pub unsafe fn create_render_pass2(
|
||||||
&self,
|
&self,
|
||||||
create_info: &vk::RenderPassCreateInfo2,
|
create_info: &vk::RenderPassCreateInfo2,
|
||||||
|
@ -37,6 +38,7 @@ impl CreateRenderPass2 {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdBeginRenderPass2.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdBeginRenderPass2.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn cmd_begin_render_pass2(
|
pub unsafe fn cmd_begin_render_pass2(
|
||||||
&self,
|
&self,
|
||||||
command_buffer: vk::CommandBuffer,
|
command_buffer: vk::CommandBuffer,
|
||||||
|
@ -51,6 +53,7 @@ impl CreateRenderPass2 {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdNextSubpass2.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdNextSubpass2.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn cmd_next_subpass2(
|
pub unsafe fn cmd_next_subpass2(
|
||||||
&self,
|
&self,
|
||||||
command_buffer: vk::CommandBuffer,
|
command_buffer: vk::CommandBuffer,
|
||||||
|
@ -61,6 +64,7 @@ impl CreateRenderPass2 {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdEndRenderPass2.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdEndRenderPass2.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn cmd_end_render_pass2(
|
pub unsafe fn cmd_end_render_pass2(
|
||||||
&self,
|
&self,
|
||||||
command_buffer: vk::CommandBuffer,
|
command_buffer: vk::CommandBuffer,
|
||||||
|
@ -69,14 +73,17 @@ impl CreateRenderPass2 {
|
||||||
(self.fp.cmd_end_render_pass2_khr)(command_buffer, subpass_end_info);
|
(self.fp.cmd_end_render_pass2_khr)(command_buffer, subpass_end_info);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub const fn name() -> &'static CStr {
|
pub const fn name() -> &'static CStr {
|
||||||
vk::KhrCreateRenderpass2Fn::name()
|
vk::KhrCreateRenderpass2Fn::name()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn fp(&self) -> &vk::KhrCreateRenderpass2Fn {
|
pub fn fp(&self) -> &vk::KhrCreateRenderpass2Fn {
|
||||||
&self.fp
|
&self.fp
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn device(&self) -> vk::Device {
|
pub fn device(&self) -> vk::Device {
|
||||||
self.handle
|
self.handle
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,6 +21,7 @@ impl DeferredHostOperations {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCreateDeferredOperationKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCreateDeferredOperationKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn create_deferred_operation(
|
pub unsafe fn create_deferred_operation(
|
||||||
&self,
|
&self,
|
||||||
allocation_callbacks: Option<&vk::AllocationCallbacks>,
|
allocation_callbacks: Option<&vk::AllocationCallbacks>,
|
||||||
|
@ -35,6 +36,7 @@ impl DeferredHostOperations {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkDeferredOperationJoinKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkDeferredOperationJoinKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn deferred_operation_join(
|
pub unsafe fn deferred_operation_join(
|
||||||
&self,
|
&self,
|
||||||
operation: vk::DeferredOperationKHR,
|
operation: vk::DeferredOperationKHR,
|
||||||
|
@ -43,6 +45,7 @@ impl DeferredHostOperations {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkDestroyDeferredOperationKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkDestroyDeferredOperationKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn destroy_deferred_operation(
|
pub unsafe fn destroy_deferred_operation(
|
||||||
&self,
|
&self,
|
||||||
operation: vk::DeferredOperationKHR,
|
operation: vk::DeferredOperationKHR,
|
||||||
|
@ -56,6 +59,7 @@ impl DeferredHostOperations {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetDeferredOperationMaxConcurrencyKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetDeferredOperationMaxConcurrencyKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_deferred_operation_max_concurrency(
|
pub unsafe fn get_deferred_operation_max_concurrency(
|
||||||
&self,
|
&self,
|
||||||
operation: vk::DeferredOperationKHR,
|
operation: vk::DeferredOperationKHR,
|
||||||
|
@ -64,6 +68,7 @@ impl DeferredHostOperations {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetDeferredOperationResultKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetDeferredOperationResultKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_deferred_operation_result(
|
pub unsafe fn get_deferred_operation_result(
|
||||||
&self,
|
&self,
|
||||||
operation: vk::DeferredOperationKHR,
|
operation: vk::DeferredOperationKHR,
|
||||||
|
@ -71,14 +76,17 @@ impl DeferredHostOperations {
|
||||||
(self.fp.get_deferred_operation_result_khr)(self.handle, operation).result()
|
(self.fp.get_deferred_operation_result_khr)(self.handle, operation).result()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub const fn name() -> &'static CStr {
|
pub const fn name() -> &'static CStr {
|
||||||
vk::KhrDeferredHostOperationsFn::name()
|
vk::KhrDeferredHostOperationsFn::name()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn fp(&self) -> &vk::KhrDeferredHostOperationsFn {
|
pub fn fp(&self) -> &vk::KhrDeferredHostOperationsFn {
|
||||||
&self.fp
|
&self.fp
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn device(&self) -> vk::Device {
|
pub fn device(&self) -> vk::Device {
|
||||||
self.handle
|
self.handle
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,6 +23,7 @@ impl DeviceGroup {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetDeviceGroupPeerMemoryFeaturesKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetDeviceGroupPeerMemoryFeaturesKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_device_group_peer_memory_features(
|
pub unsafe fn get_device_group_peer_memory_features(
|
||||||
&self,
|
&self,
|
||||||
heap_index: u32,
|
heap_index: u32,
|
||||||
|
@ -41,11 +42,13 @@ impl DeviceGroup {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdSetDeviceMaskKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdSetDeviceMaskKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn cmd_set_device_mask(&self, command_buffer: vk::CommandBuffer, device_mask: u32) {
|
pub unsafe fn cmd_set_device_mask(&self, command_buffer: vk::CommandBuffer, device_mask: u32) {
|
||||||
(self.fp.cmd_set_device_mask_khr)(command_buffer, device_mask)
|
(self.fp.cmd_set_device_mask_khr)(command_buffer, device_mask)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdDispatchBaseKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdDispatchBaseKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn cmd_dispatch_base(
|
pub unsafe fn cmd_dispatch_base(
|
||||||
&self,
|
&self,
|
||||||
command_buffer: vk::CommandBuffer,
|
command_buffer: vk::CommandBuffer,
|
||||||
|
@ -71,6 +74,7 @@ impl DeviceGroup {
|
||||||
///
|
///
|
||||||
/// [Vulkan 1.1]: https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VK_VERSION_1_1.html
|
/// [Vulkan 1.1]: https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VK_VERSION_1_1.html
|
||||||
/// [`VK_KHR_surface`]: https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VK_KHR_surface.html
|
/// [`VK_KHR_surface`]: https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VK_KHR_surface.html
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_device_group_present_capabilities(
|
pub unsafe fn get_device_group_present_capabilities(
|
||||||
&self,
|
&self,
|
||||||
device_group_present_capabilities: &mut vk::DeviceGroupPresentCapabilitiesKHR,
|
device_group_present_capabilities: &mut vk::DeviceGroupPresentCapabilitiesKHR,
|
||||||
|
@ -90,6 +94,7 @@ impl DeviceGroup {
|
||||||
///
|
///
|
||||||
/// [Vulkan 1.1]: https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VK_VERSION_1_1.html
|
/// [Vulkan 1.1]: https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VK_VERSION_1_1.html
|
||||||
/// [`VK_KHR_surface`]: https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VK_KHR_surface.html
|
/// [`VK_KHR_surface`]: https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VK_KHR_surface.html
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_device_group_surface_present_modes(
|
pub unsafe fn get_device_group_surface_present_modes(
|
||||||
&self,
|
&self,
|
||||||
surface: vk::SurfaceKHR,
|
surface: vk::SurfaceKHR,
|
||||||
|
@ -107,6 +112,7 @@ impl DeviceGroup {
|
||||||
///
|
///
|
||||||
/// [Vulkan 1.1]: https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VK_VERSION_1_1.html
|
/// [Vulkan 1.1]: https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VK_VERSION_1_1.html
|
||||||
/// [`VK_KHR_surface`]: https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VK_KHR_surface.html
|
/// [`VK_KHR_surface`]: https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VK_KHR_surface.html
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_physical_device_present_rectangles(
|
pub unsafe fn get_physical_device_present_rectangles(
|
||||||
&self,
|
&self,
|
||||||
physical_device: vk::PhysicalDevice,
|
physical_device: vk::PhysicalDevice,
|
||||||
|
@ -132,6 +138,7 @@ impl DeviceGroup {
|
||||||
///
|
///
|
||||||
/// [Vulkan 1.1]: https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VK_VERSION_1_1.html
|
/// [Vulkan 1.1]: https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VK_VERSION_1_1.html
|
||||||
/// [`VK_KHR_swapchain`]: https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VK_KHR_swapchain.html
|
/// [`VK_KHR_swapchain`]: https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VK_KHR_swapchain.html
|
||||||
|
#[inline]
|
||||||
pub unsafe fn acquire_next_image2(
|
pub unsafe fn acquire_next_image2(
|
||||||
&self,
|
&self,
|
||||||
acquire_info: &vk::AcquireNextImageInfoKHR,
|
acquire_info: &vk::AcquireNextImageInfoKHR,
|
||||||
|
@ -145,14 +152,17 @@ impl DeviceGroup {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub const fn name() -> &'static CStr {
|
pub const fn name() -> &'static CStr {
|
||||||
vk::KhrDeviceGroupFn::name()
|
vk::KhrDeviceGroupFn::name()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn fp(&self) -> &vk::KhrDeviceGroupFn {
|
pub fn fp(&self) -> &vk::KhrDeviceGroupFn {
|
||||||
&self.fp
|
&self.fp
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn device(&self) -> vk::Device {
|
pub fn device(&self) -> vk::Device {
|
||||||
self.handle
|
self.handle
|
||||||
}
|
}
|
||||||
|
|
|
@ -49,14 +49,17 @@ impl DeviceGroupCreation {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub const fn name() -> &'static CStr {
|
pub const fn name() -> &'static CStr {
|
||||||
vk::KhrDeviceGroupCreationFn::name()
|
vk::KhrDeviceGroupCreationFn::name()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn fp(&self) -> &vk::KhrDeviceGroupCreationFn {
|
pub fn fp(&self) -> &vk::KhrDeviceGroupCreationFn {
|
||||||
&self.fp
|
&self.fp
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn device(&self) -> vk::Instance {
|
pub fn device(&self) -> vk::Instance {
|
||||||
self.handle
|
self.handle
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,6 +21,7 @@ impl Display {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetPhysicalDeviceDisplayPropertiesKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetPhysicalDeviceDisplayPropertiesKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_physical_device_display_properties(
|
pub unsafe fn get_physical_device_display_properties(
|
||||||
&self,
|
&self,
|
||||||
physical_device: vk::PhysicalDevice,
|
physical_device: vk::PhysicalDevice,
|
||||||
|
@ -31,6 +32,7 @@ impl Display {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetPhysicalDeviceDisplayPlanePropertiesKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetPhysicalDeviceDisplayPlanePropertiesKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_physical_device_display_plane_properties(
|
pub unsafe fn get_physical_device_display_plane_properties(
|
||||||
&self,
|
&self,
|
||||||
physical_device: vk::PhysicalDevice,
|
physical_device: vk::PhysicalDevice,
|
||||||
|
@ -41,6 +43,7 @@ impl Display {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetDisplayPlaneSupportedDisplaysKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetDisplayPlaneSupportedDisplaysKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_display_plane_supported_displays(
|
pub unsafe fn get_display_plane_supported_displays(
|
||||||
&self,
|
&self,
|
||||||
physical_device: vk::PhysicalDevice,
|
physical_device: vk::PhysicalDevice,
|
||||||
|
@ -57,6 +60,7 @@ impl Display {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetDisplayModePropertiesKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetDisplayModePropertiesKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_display_mode_properties(
|
pub unsafe fn get_display_mode_properties(
|
||||||
&self,
|
&self,
|
||||||
physical_device: vk::PhysicalDevice,
|
physical_device: vk::PhysicalDevice,
|
||||||
|
@ -68,6 +72,7 @@ impl Display {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCreateDisplayModeKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCreateDisplayModeKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn create_display_mode(
|
pub unsafe fn create_display_mode(
|
||||||
&self,
|
&self,
|
||||||
physical_device: vk::PhysicalDevice,
|
physical_device: vk::PhysicalDevice,
|
||||||
|
@ -87,6 +92,7 @@ impl Display {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetDisplayPlaneCapabilitiesKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetDisplayPlaneCapabilitiesKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_display_plane_capabilities(
|
pub unsafe fn get_display_plane_capabilities(
|
||||||
&self,
|
&self,
|
||||||
physical_device: vk::PhysicalDevice,
|
physical_device: vk::PhysicalDevice,
|
||||||
|
@ -104,6 +110,7 @@ impl Display {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCreateDisplayPlaneSurfaceKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCreateDisplayPlaneSurfaceKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn create_display_plane_surface(
|
pub unsafe fn create_display_plane_surface(
|
||||||
&self,
|
&self,
|
||||||
create_info: &vk::DisplaySurfaceCreateInfoKHR,
|
create_info: &vk::DisplaySurfaceCreateInfoKHR,
|
||||||
|
@ -119,14 +126,17 @@ impl Display {
|
||||||
.result_with_success(surface.assume_init())
|
.result_with_success(surface.assume_init())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub const fn name() -> &'static CStr {
|
pub const fn name() -> &'static CStr {
|
||||||
vk::KhrDisplayFn::name()
|
vk::KhrDisplayFn::name()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn fp(&self) -> &vk::KhrDisplayFn {
|
pub fn fp(&self) -> &vk::KhrDisplayFn {
|
||||||
&self.fp
|
&self.fp
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn instance(&self) -> vk::Instance {
|
pub fn instance(&self) -> vk::Instance {
|
||||||
self.handle
|
self.handle
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,6 +21,7 @@ impl DisplaySwapchain {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCreateSharedSwapchainsKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCreateSharedSwapchainsKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn create_shared_swapchains(
|
pub unsafe fn create_shared_swapchains(
|
||||||
&self,
|
&self,
|
||||||
create_infos: &[vk::SwapchainCreateInfoKHR],
|
create_infos: &[vk::SwapchainCreateInfoKHR],
|
||||||
|
@ -38,14 +39,17 @@ impl DisplaySwapchain {
|
||||||
err_code.result_with_success(swapchains)
|
err_code.result_with_success(swapchains)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub const fn name() -> &'static CStr {
|
pub const fn name() -> &'static CStr {
|
||||||
vk::KhrDisplaySwapchainFn::name()
|
vk::KhrDisplaySwapchainFn::name()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn fp(&self) -> &vk::KhrDisplaySwapchainFn {
|
pub fn fp(&self) -> &vk::KhrDisplaySwapchainFn {
|
||||||
&self.fp
|
&self.fp
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn device(&self) -> vk::Device {
|
pub fn device(&self) -> vk::Device {
|
||||||
self.handle
|
self.handle
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,6 +17,7 @@ impl DrawIndirectCount {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdDrawIndexedIndirectCountKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdDrawIndexedIndirectCountKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn cmd_draw_indexed_indirect_count(
|
pub unsafe fn cmd_draw_indexed_indirect_count(
|
||||||
&self,
|
&self,
|
||||||
command_buffer: vk::CommandBuffer,
|
command_buffer: vk::CommandBuffer,
|
||||||
|
@ -39,6 +40,7 @@ impl DrawIndirectCount {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdDrawIndirectCountKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdDrawIndirectCountKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn cmd_draw_indirect_count(
|
pub unsafe fn cmd_draw_indirect_count(
|
||||||
&self,
|
&self,
|
||||||
command_buffer: vk::CommandBuffer,
|
command_buffer: vk::CommandBuffer,
|
||||||
|
@ -60,10 +62,12 @@ impl DrawIndirectCount {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub const fn name() -> &'static CStr {
|
pub const fn name() -> &'static CStr {
|
||||||
vk::KhrDrawIndirectCountFn::name()
|
vk::KhrDrawIndirectCountFn::name()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn fp(&self) -> &vk::KhrDrawIndirectCountFn {
|
pub fn fp(&self) -> &vk::KhrDrawIndirectCountFn {
|
||||||
&self.fp
|
&self.fp
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,6 +17,7 @@ impl DynamicRendering {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdBeginRenderingKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdBeginRenderingKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn cmd_begin_rendering(
|
pub unsafe fn cmd_begin_rendering(
|
||||||
&self,
|
&self,
|
||||||
command_buffer: vk::CommandBuffer,
|
command_buffer: vk::CommandBuffer,
|
||||||
|
@ -26,14 +27,17 @@ impl DynamicRendering {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdEndRenderingKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdEndRenderingKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn cmd_end_rendering(&self, command_buffer: vk::CommandBuffer) {
|
pub unsafe fn cmd_end_rendering(&self, command_buffer: vk::CommandBuffer) {
|
||||||
(self.fp.cmd_end_rendering_khr)(command_buffer)
|
(self.fp.cmd_end_rendering_khr)(command_buffer)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub const fn name() -> &'static CStr {
|
pub const fn name() -> &'static CStr {
|
||||||
vk::KhrDynamicRenderingFn::name()
|
vk::KhrDynamicRenderingFn::name()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn fp(&self) -> &vk::KhrDynamicRenderingFn {
|
pub fn fp(&self) -> &vk::KhrDynamicRenderingFn {
|
||||||
&self.fp
|
&self.fp
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,24 +20,29 @@ impl ExternalFenceFd {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkImportFenceFdKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkImportFenceFdKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn import_fence_fd(&self, import_info: &vk::ImportFenceFdInfoKHR) -> VkResult<()> {
|
pub unsafe fn import_fence_fd(&self, import_info: &vk::ImportFenceFdInfoKHR) -> VkResult<()> {
|
||||||
(self.fp.import_fence_fd_khr)(self.handle, import_info).result()
|
(self.fp.import_fence_fd_khr)(self.handle, import_info).result()
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetFenceFdKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetFenceFdKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_fence_fd(&self, get_info: &vk::FenceGetFdInfoKHR) -> VkResult<i32> {
|
pub unsafe fn get_fence_fd(&self, get_info: &vk::FenceGetFdInfoKHR) -> VkResult<i32> {
|
||||||
let mut fd = -1;
|
let mut fd = -1;
|
||||||
(self.fp.get_fence_fd_khr)(self.handle, get_info, &mut fd).result_with_success(fd)
|
(self.fp.get_fence_fd_khr)(self.handle, get_info, &mut fd).result_with_success(fd)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub const fn name() -> &'static CStr {
|
pub const fn name() -> &'static CStr {
|
||||||
vk::KhrExternalFenceFdFn::name()
|
vk::KhrExternalFenceFdFn::name()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn fp(&self) -> &vk::KhrExternalFenceFdFn {
|
pub fn fp(&self) -> &vk::KhrExternalFenceFdFn {
|
||||||
&self.fp
|
&self.fp
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn device(&self) -> vk::Device {
|
pub fn device(&self) -> vk::Device {
|
||||||
self.handle
|
self.handle
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,6 +22,7 @@ impl ExternalFenceWin32 {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkImportFenceWin32HandleKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkImportFenceWin32HandleKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn import_fence_win32_handle(
|
pub unsafe fn import_fence_win32_handle(
|
||||||
&self,
|
&self,
|
||||||
import_info: &vk::ImportFenceWin32HandleInfoKHR,
|
import_info: &vk::ImportFenceWin32HandleInfoKHR,
|
||||||
|
@ -30,6 +31,7 @@ impl ExternalFenceWin32 {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetFenceWin32HandleKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetFenceWin32HandleKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_fence_win32_handle(
|
pub unsafe fn get_fence_win32_handle(
|
||||||
&self,
|
&self,
|
||||||
get_info: &vk::FenceGetWin32HandleInfoKHR,
|
get_info: &vk::FenceGetWin32HandleInfoKHR,
|
||||||
|
@ -39,14 +41,17 @@ impl ExternalFenceWin32 {
|
||||||
.result_with_success(handle)
|
.result_with_success(handle)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub const fn name() -> &'static CStr {
|
pub const fn name() -> &'static CStr {
|
||||||
vk::KhrExternalFenceWin32Fn::name()
|
vk::KhrExternalFenceWin32Fn::name()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn fp(&self) -> &vk::KhrExternalFenceWin32Fn {
|
pub fn fp(&self) -> &vk::KhrExternalFenceWin32Fn {
|
||||||
&self.fp
|
&self.fp
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn device(&self) -> vk::Device {
|
pub fn device(&self) -> vk::Device {
|
||||||
self.handle
|
self.handle
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,12 +20,14 @@ impl ExternalMemoryFd {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetMemoryFdKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetMemoryFdKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_memory_fd(&self, create_info: &vk::MemoryGetFdInfoKHR) -> VkResult<i32> {
|
pub unsafe fn get_memory_fd(&self, create_info: &vk::MemoryGetFdInfoKHR) -> VkResult<i32> {
|
||||||
let mut fd = -1;
|
let mut fd = -1;
|
||||||
(self.fp.get_memory_fd_khr)(self.handle, create_info, &mut fd).result_with_success(fd)
|
(self.fp.get_memory_fd_khr)(self.handle, create_info, &mut fd).result_with_success(fd)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetMemoryFdPropertiesKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetMemoryFdPropertiesKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_memory_fd_properties(
|
pub unsafe fn get_memory_fd_properties(
|
||||||
&self,
|
&self,
|
||||||
handle_type: vk::ExternalMemoryHandleTypeFlags,
|
handle_type: vk::ExternalMemoryHandleTypeFlags,
|
||||||
|
@ -41,14 +43,17 @@ impl ExternalMemoryFd {
|
||||||
.result_with_success(memory_fd_properties)
|
.result_with_success(memory_fd_properties)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub const fn name() -> &'static CStr {
|
pub const fn name() -> &'static CStr {
|
||||||
vk::KhrExternalMemoryFdFn::name()
|
vk::KhrExternalMemoryFdFn::name()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn fp(&self) -> &vk::KhrExternalMemoryFdFn {
|
pub fn fp(&self) -> &vk::KhrExternalMemoryFdFn {
|
||||||
&self.fp
|
&self.fp
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn device(&self) -> vk::Device {
|
pub fn device(&self) -> vk::Device {
|
||||||
self.handle
|
self.handle
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,6 +22,7 @@ impl ExternalMemoryWin32 {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetMemoryWin32HandleKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetMemoryWin32HandleKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_memory_win32_handle(
|
pub unsafe fn get_memory_win32_handle(
|
||||||
&self,
|
&self,
|
||||||
create_info: &vk::MemoryGetWin32HandleInfoKHR,
|
create_info: &vk::MemoryGetWin32HandleInfoKHR,
|
||||||
|
@ -32,6 +33,7 @@ impl ExternalMemoryWin32 {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetMemoryWin32HandlePropertiesKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetMemoryWin32HandlePropertiesKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_memory_win32_handle_properties(
|
pub unsafe fn get_memory_win32_handle_properties(
|
||||||
&self,
|
&self,
|
||||||
handle_type: vk::ExternalMemoryHandleTypeFlags,
|
handle_type: vk::ExternalMemoryHandleTypeFlags,
|
||||||
|
@ -47,14 +49,17 @@ impl ExternalMemoryWin32 {
|
||||||
.result_with_success(memory_win32_handle_properties)
|
.result_with_success(memory_win32_handle_properties)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub const fn name() -> &'static CStr {
|
pub const fn name() -> &'static CStr {
|
||||||
vk::KhrExternalMemoryWin32Fn::name()
|
vk::KhrExternalMemoryWin32Fn::name()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn fp(&self) -> &vk::KhrExternalMemoryWin32Fn {
|
pub fn fp(&self) -> &vk::KhrExternalMemoryWin32Fn {
|
||||||
&self.fp
|
&self.fp
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn device(&self) -> vk::Device {
|
pub fn device(&self) -> vk::Device {
|
||||||
self.handle
|
self.handle
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,6 +20,7 @@ impl ExternalSemaphoreFd {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkImportSemaphoreFdKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkImportSemaphoreFdKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn import_semaphore_fd(
|
pub unsafe fn import_semaphore_fd(
|
||||||
&self,
|
&self,
|
||||||
import_info: &vk::ImportSemaphoreFdInfoKHR,
|
import_info: &vk::ImportSemaphoreFdInfoKHR,
|
||||||
|
@ -28,19 +29,23 @@ impl ExternalSemaphoreFd {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetSemaphoreFdKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetSemaphoreFdKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_semaphore_fd(&self, get_info: &vk::SemaphoreGetFdInfoKHR) -> VkResult<i32> {
|
pub unsafe fn get_semaphore_fd(&self, get_info: &vk::SemaphoreGetFdInfoKHR) -> VkResult<i32> {
|
||||||
let mut fd = -1;
|
let mut fd = -1;
|
||||||
(self.fp.get_semaphore_fd_khr)(self.handle, get_info, &mut fd).result_with_success(fd)
|
(self.fp.get_semaphore_fd_khr)(self.handle, get_info, &mut fd).result_with_success(fd)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub const fn name() -> &'static CStr {
|
pub const fn name() -> &'static CStr {
|
||||||
vk::KhrExternalSemaphoreFdFn::name()
|
vk::KhrExternalSemaphoreFdFn::name()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn fp(&self) -> &vk::KhrExternalSemaphoreFdFn {
|
pub fn fp(&self) -> &vk::KhrExternalSemaphoreFdFn {
|
||||||
&self.fp
|
&self.fp
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn device(&self) -> vk::Device {
|
pub fn device(&self) -> vk::Device {
|
||||||
self.handle
|
self.handle
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,6 +22,7 @@ impl ExternalSemaphoreWin32 {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkImportSemaphoreWin32HandleKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkImportSemaphoreWin32HandleKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn import_semaphore_win32_handle(
|
pub unsafe fn import_semaphore_win32_handle(
|
||||||
&self,
|
&self,
|
||||||
import_info: &vk::ImportSemaphoreWin32HandleInfoKHR,
|
import_info: &vk::ImportSemaphoreWin32HandleInfoKHR,
|
||||||
|
@ -30,6 +31,7 @@ impl ExternalSemaphoreWin32 {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetSemaphoreWin32HandleKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetSemaphoreWin32HandleKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_semaphore_win32_handle(
|
pub unsafe fn get_semaphore_win32_handle(
|
||||||
&self,
|
&self,
|
||||||
get_info: &vk::SemaphoreGetWin32HandleInfoKHR,
|
get_info: &vk::SemaphoreGetWin32HandleInfoKHR,
|
||||||
|
@ -39,14 +41,17 @@ impl ExternalSemaphoreWin32 {
|
||||||
.result_with_success(handle)
|
.result_with_success(handle)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub const fn name() -> &'static CStr {
|
pub const fn name() -> &'static CStr {
|
||||||
vk::KhrExternalSemaphoreWin32Fn::name()
|
vk::KhrExternalSemaphoreWin32Fn::name()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn fp(&self) -> &vk::KhrExternalSemaphoreWin32Fn {
|
pub fn fp(&self) -> &vk::KhrExternalSemaphoreWin32Fn {
|
||||||
&self.fp
|
&self.fp
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn device(&self) -> vk::Device {
|
pub fn device(&self) -> vk::Device {
|
||||||
self.handle
|
self.handle
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,6 +20,7 @@ impl GetMemoryRequirements2 {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetBufferMemoryRequirements2KHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetBufferMemoryRequirements2KHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_buffer_memory_requirements2(
|
pub unsafe fn get_buffer_memory_requirements2(
|
||||||
&self,
|
&self,
|
||||||
info: &vk::BufferMemoryRequirementsInfo2KHR,
|
info: &vk::BufferMemoryRequirementsInfo2KHR,
|
||||||
|
@ -29,6 +30,7 @@ impl GetMemoryRequirements2 {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetImageMemoryRequirements2KHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetImageMemoryRequirements2KHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_image_memory_requirements2(
|
pub unsafe fn get_image_memory_requirements2(
|
||||||
&self,
|
&self,
|
||||||
info: &vk::ImageMemoryRequirementsInfo2KHR,
|
info: &vk::ImageMemoryRequirementsInfo2KHR,
|
||||||
|
@ -38,6 +40,7 @@ impl GetMemoryRequirements2 {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Retrieve the number of elements to pass to [`get_image_sparse_memory_requirements2()`][Self::get_image_sparse_memory_requirements2()]
|
/// Retrieve the number of elements to pass to [`get_image_sparse_memory_requirements2()`][Self::get_image_sparse_memory_requirements2()]
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_image_sparse_memory_requirements2_len(
|
pub unsafe fn get_image_sparse_memory_requirements2_len(
|
||||||
&self,
|
&self,
|
||||||
info: &vk::ImageSparseMemoryRequirementsInfo2KHR,
|
info: &vk::ImageSparseMemoryRequirementsInfo2KHR,
|
||||||
|
@ -56,6 +59,7 @@ impl GetMemoryRequirements2 {
|
||||||
///
|
///
|
||||||
/// Call [`get_image_sparse_memory_requirements2_len()`][Self::get_image_sparse_memory_requirements2_len()] to query the number of elements to pass to `out`.
|
/// Call [`get_image_sparse_memory_requirements2_len()`][Self::get_image_sparse_memory_requirements2_len()] to query the number of elements to pass to `out`.
|
||||||
/// Be sure to [`Default::default()`]-initialize these elements and optionally set their `p_next` pointer.
|
/// Be sure to [`Default::default()`]-initialize these elements and optionally set their `p_next` pointer.
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_image_sparse_memory_requirements2(
|
pub unsafe fn get_image_sparse_memory_requirements2(
|
||||||
&self,
|
&self,
|
||||||
info: &vk::ImageSparseMemoryRequirementsInfo2KHR,
|
info: &vk::ImageSparseMemoryRequirementsInfo2KHR,
|
||||||
|
@ -71,14 +75,17 @@ impl GetMemoryRequirements2 {
|
||||||
assert_eq!(count as usize, out.len());
|
assert_eq!(count as usize, out.len());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub const fn name() -> &'static CStr {
|
pub const fn name() -> &'static CStr {
|
||||||
vk::KhrGetMemoryRequirements2Fn::name()
|
vk::KhrGetMemoryRequirements2Fn::name()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn fp(&self) -> &vk::KhrGetMemoryRequirements2Fn {
|
pub fn fp(&self) -> &vk::KhrGetMemoryRequirements2Fn {
|
||||||
&self.fp
|
&self.fp
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn device(&self) -> vk::Device {
|
pub fn device(&self) -> vk::Device {
|
||||||
self.handle
|
self.handle
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,6 +19,7 @@ impl GetPhysicalDeviceProperties2 {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetPhysicalDeviceFeatures2KHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetPhysicalDeviceFeatures2KHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_physical_device_features2(
|
pub unsafe fn get_physical_device_features2(
|
||||||
&self,
|
&self,
|
||||||
physical_device: vk::PhysicalDevice,
|
physical_device: vk::PhysicalDevice,
|
||||||
|
@ -28,6 +29,7 @@ impl GetPhysicalDeviceProperties2 {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetPhysicalDeviceFormatProperties2KHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetPhysicalDeviceFormatProperties2KHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_physical_device_format_properties2(
|
pub unsafe fn get_physical_device_format_properties2(
|
||||||
&self,
|
&self,
|
||||||
physical_device: vk::PhysicalDevice,
|
physical_device: vk::PhysicalDevice,
|
||||||
|
@ -42,6 +44,7 @@ impl GetPhysicalDeviceProperties2 {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetPhysicalDeviceImageFormatProperties2KHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetPhysicalDeviceImageFormatProperties2KHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_physical_device_image_format_properties2(
|
pub unsafe fn get_physical_device_image_format_properties2(
|
||||||
&self,
|
&self,
|
||||||
physical_device: vk::PhysicalDevice,
|
physical_device: vk::PhysicalDevice,
|
||||||
|
@ -57,6 +60,7 @@ impl GetPhysicalDeviceProperties2 {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetPhysicalDeviceMemoryProperties2KHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetPhysicalDeviceMemoryProperties2KHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_physical_device_memory_properties2(
|
pub unsafe fn get_physical_device_memory_properties2(
|
||||||
&self,
|
&self,
|
||||||
physical_device: vk::PhysicalDevice,
|
physical_device: vk::PhysicalDevice,
|
||||||
|
@ -66,6 +70,7 @@ impl GetPhysicalDeviceProperties2 {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetPhysicalDeviceProperties2KHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetPhysicalDeviceProperties2KHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_physical_device_properties2(
|
pub unsafe fn get_physical_device_properties2(
|
||||||
&self,
|
&self,
|
||||||
physical_device: vk::PhysicalDevice,
|
physical_device: vk::PhysicalDevice,
|
||||||
|
@ -75,6 +80,7 @@ impl GetPhysicalDeviceProperties2 {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Retrieve the number of elements to pass to [`get_physical_device_queue_family_properties2()`][Self::get_physical_device_queue_family_properties2()]
|
/// Retrieve the number of elements to pass to [`get_physical_device_queue_family_properties2()`][Self::get_physical_device_queue_family_properties2()]
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_physical_device_queue_family_properties2_len(
|
pub unsafe fn get_physical_device_queue_family_properties2_len(
|
||||||
&self,
|
&self,
|
||||||
physical_device: vk::PhysicalDevice,
|
physical_device: vk::PhysicalDevice,
|
||||||
|
@ -92,6 +98,7 @@ impl GetPhysicalDeviceProperties2 {
|
||||||
///
|
///
|
||||||
/// Call [`get_physical_device_queue_family_properties2_len()`][Self::get_physical_device_queue_family_properties2_len()] to query the number of elements to pass to `out`.
|
/// Call [`get_physical_device_queue_family_properties2_len()`][Self::get_physical_device_queue_family_properties2_len()] to query the number of elements to pass to `out`.
|
||||||
/// Be sure to [`Default::default()`]-initialize these elements and optionally set their `p_next` pointer.
|
/// Be sure to [`Default::default()`]-initialize these elements and optionally set their `p_next` pointer.
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_physical_device_queue_family_properties2(
|
pub unsafe fn get_physical_device_queue_family_properties2(
|
||||||
&self,
|
&self,
|
||||||
physical_device: vk::PhysicalDevice,
|
physical_device: vk::PhysicalDevice,
|
||||||
|
@ -107,6 +114,7 @@ impl GetPhysicalDeviceProperties2 {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Retrieve the number of elements to pass to [`get_physical_device_sparse_image_format_properties2()`][Self::get_physical_device_sparse_image_format_properties2()]
|
/// Retrieve the number of elements to pass to [`get_physical_device_sparse_image_format_properties2()`][Self::get_physical_device_sparse_image_format_properties2()]
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_physical_device_sparse_image_format_properties2_len(
|
pub unsafe fn get_physical_device_sparse_image_format_properties2_len(
|
||||||
&self,
|
&self,
|
||||||
physical_device: vk::PhysicalDevice,
|
physical_device: vk::PhysicalDevice,
|
||||||
|
@ -128,6 +136,7 @@ impl GetPhysicalDeviceProperties2 {
|
||||||
///
|
///
|
||||||
/// Call [`get_physical_device_sparse_image_format_properties2_len()`][Self::get_physical_device_sparse_image_format_properties2_len()] to query the number of elements to pass to `out`.
|
/// Call [`get_physical_device_sparse_image_format_properties2_len()`][Self::get_physical_device_sparse_image_format_properties2_len()] to query the number of elements to pass to `out`.
|
||||||
/// Be sure to [`Default::default()`]-initialize these elements and optionally set their `p_next` pointer.
|
/// Be sure to [`Default::default()`]-initialize these elements and optionally set their `p_next` pointer.
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_physical_device_sparse_image_format_properties2(
|
pub unsafe fn get_physical_device_sparse_image_format_properties2(
|
||||||
&self,
|
&self,
|
||||||
physical_device: vk::PhysicalDevice,
|
physical_device: vk::PhysicalDevice,
|
||||||
|
@ -146,10 +155,12 @@ impl GetPhysicalDeviceProperties2 {
|
||||||
assert_eq!(count as usize, out.len());
|
assert_eq!(count as usize, out.len());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub const fn name() -> &'static CStr {
|
pub const fn name() -> &'static CStr {
|
||||||
vk::KhrGetPhysicalDeviceProperties2Fn::name()
|
vk::KhrGetPhysicalDeviceProperties2Fn::name()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn fp(&self) -> &vk::KhrGetPhysicalDeviceProperties2Fn {
|
pub fn fp(&self) -> &vk::KhrGetPhysicalDeviceProperties2Fn {
|
||||||
&self.fp
|
&self.fp
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,6 +18,7 @@ impl GetSurfaceCapabilities2 {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetPhysicalDeviceSurfaceCapabilities2KHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetPhysicalDeviceSurfaceCapabilities2KHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_physical_device_surface_capabilities2(
|
pub unsafe fn get_physical_device_surface_capabilities2(
|
||||||
&self,
|
&self,
|
||||||
physical_device: vk::PhysicalDevice,
|
physical_device: vk::PhysicalDevice,
|
||||||
|
@ -33,6 +34,7 @@ impl GetSurfaceCapabilities2 {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Retrieve the number of elements to pass to [`get_physical_device_surface_formats2()`][Self::get_physical_device_surface_formats2()]
|
/// Retrieve the number of elements to pass to [`get_physical_device_surface_formats2()`][Self::get_physical_device_surface_formats2()]
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_physical_device_surface_formats2_len(
|
pub unsafe fn get_physical_device_surface_formats2_len(
|
||||||
&self,
|
&self,
|
||||||
physical_device: vk::PhysicalDevice,
|
physical_device: vk::PhysicalDevice,
|
||||||
|
@ -52,6 +54,7 @@ impl GetSurfaceCapabilities2 {
|
||||||
///
|
///
|
||||||
/// Call [`get_physical_device_surface_formats2_len()`][Self::get_physical_device_surface_formats2_len()] to query the number of elements to pass to `out`.
|
/// Call [`get_physical_device_surface_formats2_len()`][Self::get_physical_device_surface_formats2_len()] to query the number of elements to pass to `out`.
|
||||||
/// Be sure to [`Default::default()`]-initialize these elements and optionally set their `p_next` pointer.
|
/// Be sure to [`Default::default()`]-initialize these elements and optionally set their `p_next` pointer.
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_physical_device_surface_formats2(
|
pub unsafe fn get_physical_device_surface_formats2(
|
||||||
&self,
|
&self,
|
||||||
physical_device: vk::PhysicalDevice,
|
physical_device: vk::PhysicalDevice,
|
||||||
|
@ -69,10 +72,12 @@ impl GetSurfaceCapabilities2 {
|
||||||
err_code.result()
|
err_code.result()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub const fn name() -> &'static CStr {
|
pub const fn name() -> &'static CStr {
|
||||||
vk::KhrGetSurfaceCapabilities2Fn::name()
|
vk::KhrGetSurfaceCapabilities2Fn::name()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn fp(&self) -> &vk::KhrGetSurfaceCapabilities2Fn {
|
pub fn fp(&self) -> &vk::KhrGetSurfaceCapabilities2Fn {
|
||||||
&self.fp
|
&self.fp
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,6 +19,7 @@ impl Maintenance1 {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkTrimCommandPoolKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkTrimCommandPoolKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn trim_command_pool(
|
pub unsafe fn trim_command_pool(
|
||||||
&self,
|
&self,
|
||||||
command_pool: vk::CommandPool,
|
command_pool: vk::CommandPool,
|
||||||
|
@ -27,14 +28,17 @@ impl Maintenance1 {
|
||||||
(self.fp.trim_command_pool_khr)(self.handle, command_pool, flags);
|
(self.fp.trim_command_pool_khr)(self.handle, command_pool, flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub const fn name() -> &'static CStr {
|
pub const fn name() -> &'static CStr {
|
||||||
vk::KhrMaintenance1Fn::name()
|
vk::KhrMaintenance1Fn::name()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn fp(&self) -> &vk::KhrMaintenance1Fn {
|
pub fn fp(&self) -> &vk::KhrMaintenance1Fn {
|
||||||
&self.fp
|
&self.fp
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn device(&self) -> vk::Device {
|
pub fn device(&self) -> vk::Device {
|
||||||
self.handle
|
self.handle
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,6 +19,7 @@ impl Maintenance3 {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetDescriptorSetLayoutSupportKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetDescriptorSetLayoutSupportKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_descriptor_set_layout_support(
|
pub unsafe fn get_descriptor_set_layout_support(
|
||||||
&self,
|
&self,
|
||||||
create_info: &vk::DescriptorSetLayoutCreateInfo,
|
create_info: &vk::DescriptorSetLayoutCreateInfo,
|
||||||
|
@ -27,14 +28,17 @@ impl Maintenance3 {
|
||||||
(self.fp.get_descriptor_set_layout_support_khr)(self.handle, create_info, out);
|
(self.fp.get_descriptor_set_layout_support_khr)(self.handle, create_info, out);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub const fn name() -> &'static CStr {
|
pub const fn name() -> &'static CStr {
|
||||||
vk::KhrMaintenance3Fn::name()
|
vk::KhrMaintenance3Fn::name()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn fp(&self) -> &vk::KhrMaintenance3Fn {
|
pub fn fp(&self) -> &vk::KhrMaintenance3Fn {
|
||||||
&self.fp
|
&self.fp
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn device(&self) -> vk::Device {
|
pub fn device(&self) -> vk::Device {
|
||||||
self.handle
|
self.handle
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,6 +19,7 @@ impl Maintenance4 {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetDeviceBufferMemoryRequirementsKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetDeviceBufferMemoryRequirementsKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_device_buffer_memory_requirements(
|
pub unsafe fn get_device_buffer_memory_requirements(
|
||||||
&self,
|
&self,
|
||||||
create_info: &vk::DeviceBufferMemoryRequirementsKHR,
|
create_info: &vk::DeviceBufferMemoryRequirementsKHR,
|
||||||
|
@ -28,6 +29,7 @@ impl Maintenance4 {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetDeviceImageMemoryRequirementsKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetDeviceImageMemoryRequirementsKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_device_image_memory_requirements(
|
pub unsafe fn get_device_image_memory_requirements(
|
||||||
&self,
|
&self,
|
||||||
create_info: &vk::DeviceImageMemoryRequirementsKHR,
|
create_info: &vk::DeviceImageMemoryRequirementsKHR,
|
||||||
|
@ -37,6 +39,7 @@ impl Maintenance4 {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Retrieve the number of elements to pass to [`get_device_image_sparse_memory_requirements()`][Self::get_device_image_sparse_memory_requirements()]
|
/// Retrieve the number of elements to pass to [`get_device_image_sparse_memory_requirements()`][Self::get_device_image_sparse_memory_requirements()]
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_device_image_sparse_memory_requirements_len(
|
pub unsafe fn get_device_image_sparse_memory_requirements_len(
|
||||||
&self,
|
&self,
|
||||||
create_info: &vk::DeviceImageMemoryRequirementsKHR,
|
create_info: &vk::DeviceImageMemoryRequirementsKHR,
|
||||||
|
@ -55,6 +58,7 @@ impl Maintenance4 {
|
||||||
///
|
///
|
||||||
/// Call [`get_device_image_sparse_memory_requirements_len()`][Self::get_device_image_sparse_memory_requirements_len()] to query the number of elements to pass to `out`.
|
/// Call [`get_device_image_sparse_memory_requirements_len()`][Self::get_device_image_sparse_memory_requirements_len()] to query the number of elements to pass to `out`.
|
||||||
/// Be sure to [`Default::default()`]-initialize these elements and optionally set their `p_next` pointer.
|
/// Be sure to [`Default::default()`]-initialize these elements and optionally set their `p_next` pointer.
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_device_image_sparse_memory_requirements(
|
pub unsafe fn get_device_image_sparse_memory_requirements(
|
||||||
&self,
|
&self,
|
||||||
create_info: &vk::DeviceImageMemoryRequirementsKHR,
|
create_info: &vk::DeviceImageMemoryRequirementsKHR,
|
||||||
|
@ -70,14 +74,17 @@ impl Maintenance4 {
|
||||||
assert_eq!(count as usize, out.len());
|
assert_eq!(count as usize, out.len());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub const fn name() -> &'static CStr {
|
pub const fn name() -> &'static CStr {
|
||||||
vk::KhrMaintenance4Fn::name()
|
vk::KhrMaintenance4Fn::name()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn fp(&self) -> &vk::KhrMaintenance4Fn {
|
pub fn fp(&self) -> &vk::KhrMaintenance4Fn {
|
||||||
&self.fp
|
&self.fp
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn device(&self) -> vk::Device {
|
pub fn device(&self) -> vk::Device {
|
||||||
self.handle
|
self.handle
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,6 +20,7 @@ impl PipelineExecutableProperties {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetPipelineExecutableInternalRepresentationsKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetPipelineExecutableInternalRepresentationsKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_pipeline_executable_internal_representations(
|
pub unsafe fn get_pipeline_executable_internal_representations(
|
||||||
&self,
|
&self,
|
||||||
executable_info: &vk::PipelineExecutableInfoKHR,
|
executable_info: &vk::PipelineExecutableInfoKHR,
|
||||||
|
@ -35,6 +36,7 @@ impl PipelineExecutableProperties {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetPipelineExecutablePropertiesKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetPipelineExecutablePropertiesKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_pipeline_executable_properties(
|
pub unsafe fn get_pipeline_executable_properties(
|
||||||
&self,
|
&self,
|
||||||
pipeline_info: &vk::PipelineInfoKHR,
|
pipeline_info: &vk::PipelineInfoKHR,
|
||||||
|
@ -50,6 +52,7 @@ impl PipelineExecutableProperties {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetPipelineExecutableStatisticsKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetPipelineExecutableStatisticsKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_pipeline_executable_statistics(
|
pub unsafe fn get_pipeline_executable_statistics(
|
||||||
&self,
|
&self,
|
||||||
executable_info: &vk::PipelineExecutableInfoKHR,
|
executable_info: &vk::PipelineExecutableInfoKHR,
|
||||||
|
@ -64,14 +67,17 @@ impl PipelineExecutableProperties {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub const fn name() -> &'static CStr {
|
pub const fn name() -> &'static CStr {
|
||||||
vk::KhrPipelineExecutablePropertiesFn::name()
|
vk::KhrPipelineExecutablePropertiesFn::name()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn fp(&self) -> &vk::KhrPipelineExecutablePropertiesFn {
|
pub fn fp(&self) -> &vk::KhrPipelineExecutablePropertiesFn {
|
||||||
&self.fp
|
&self.fp
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn device(&self) -> vk::Device {
|
pub fn device(&self) -> vk::Device {
|
||||||
self.handle
|
self.handle
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,6 +20,7 @@ impl PresentWait {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkWaitForPresentKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkWaitForPresentKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn wait_for_present(
|
pub unsafe fn wait_for_present(
|
||||||
&self,
|
&self,
|
||||||
swapchain: vk::SwapchainKHR,
|
swapchain: vk::SwapchainKHR,
|
||||||
|
@ -29,14 +30,17 @@ impl PresentWait {
|
||||||
(self.fp.wait_for_present_khr)(self.handle, swapchain, present_id, timeout).result()
|
(self.fp.wait_for_present_khr)(self.handle, swapchain, present_id, timeout).result()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub const fn name() -> &'static CStr {
|
pub const fn name() -> &'static CStr {
|
||||||
vk::KhrPresentWaitFn::name()
|
vk::KhrPresentWaitFn::name()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn fp(&self) -> &vk::KhrPresentWaitFn {
|
pub fn fp(&self) -> &vk::KhrPresentWaitFn {
|
||||||
&self.fp
|
&self.fp
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn device(&self) -> vk::Device {
|
pub fn device(&self) -> vk::Device {
|
||||||
self.handle
|
self.handle
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,6 +18,7 @@ impl PushDescriptor {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdPushDescriptorSetKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdPushDescriptorSetKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn cmd_push_descriptor_set(
|
pub unsafe fn cmd_push_descriptor_set(
|
||||||
&self,
|
&self,
|
||||||
command_buffer: vk::CommandBuffer,
|
command_buffer: vk::CommandBuffer,
|
||||||
|
@ -37,6 +38,7 @@ impl PushDescriptor {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdPushDescriptorSetWithTemplateKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdPushDescriptorSetWithTemplateKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn cmd_push_descriptor_set_with_template(
|
pub unsafe fn cmd_push_descriptor_set_with_template(
|
||||||
&self,
|
&self,
|
||||||
command_buffer: vk::CommandBuffer,
|
command_buffer: vk::CommandBuffer,
|
||||||
|
@ -54,10 +56,12 @@ impl PushDescriptor {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub const fn name() -> &'static CStr {
|
pub const fn name() -> &'static CStr {
|
||||||
vk::KhrPushDescriptorFn::name()
|
vk::KhrPushDescriptorFn::name()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn fp(&self) -> &vk::KhrPushDescriptorFn {
|
pub fn fp(&self) -> &vk::KhrPushDescriptorFn {
|
||||||
&self.fp
|
&self.fp
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,6 +20,7 @@ impl RayTracingPipeline {
|
||||||
Self { handle, fp }
|
Self { handle, fp }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_properties(
|
pub unsafe fn get_properties(
|
||||||
instance: &Instance,
|
instance: &Instance,
|
||||||
pdevice: vk::PhysicalDevice,
|
pdevice: vk::PhysicalDevice,
|
||||||
|
@ -33,6 +34,7 @@ impl RayTracingPipeline {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdTraceRaysKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdTraceRaysKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn cmd_trace_rays(
|
pub unsafe fn cmd_trace_rays(
|
||||||
&self,
|
&self,
|
||||||
command_buffer: vk::CommandBuffer,
|
command_buffer: vk::CommandBuffer,
|
||||||
|
@ -57,6 +59,7 @@ impl RayTracingPipeline {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCreateRayTracingPipelinesKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCreateRayTracingPipelinesKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn create_ray_tracing_pipelines(
|
pub unsafe fn create_ray_tracing_pipelines(
|
||||||
&self,
|
&self,
|
||||||
deferred_operation: vk::DeferredOperationKHR,
|
deferred_operation: vk::DeferredOperationKHR,
|
||||||
|
@ -78,6 +81,7 @@ impl RayTracingPipeline {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetRayTracingShaderGroupHandlesKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetRayTracingShaderGroupHandlesKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_ray_tracing_shader_group_handles(
|
pub unsafe fn get_ray_tracing_shader_group_handles(
|
||||||
&self,
|
&self,
|
||||||
pipeline: vk::Pipeline,
|
pipeline: vk::Pipeline,
|
||||||
|
@ -99,6 +103,7 @@ impl RayTracingPipeline {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetRayTracingCaptureReplayShaderGroupHandlesKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetRayTracingCaptureReplayShaderGroupHandlesKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_ray_tracing_capture_replay_shader_group_handles(
|
pub unsafe fn get_ray_tracing_capture_replay_shader_group_handles(
|
||||||
&self,
|
&self,
|
||||||
pipeline: vk::Pipeline,
|
pipeline: vk::Pipeline,
|
||||||
|
@ -124,6 +129,7 @@ impl RayTracingPipeline {
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdTraceRaysIndirectKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdTraceRaysIndirectKHR.html>
|
||||||
///
|
///
|
||||||
/// `indirect_device_address` is a buffer device address which is a pointer to a [`vk::TraceRaysIndirectCommandKHR`] structure containing the trace ray parameters.
|
/// `indirect_device_address` is a buffer device address which is a pointer to a [`vk::TraceRaysIndirectCommandKHR`] structure containing the trace ray parameters.
|
||||||
|
#[inline]
|
||||||
pub unsafe fn cmd_trace_rays_indirect(
|
pub unsafe fn cmd_trace_rays_indirect(
|
||||||
&self,
|
&self,
|
||||||
command_buffer: vk::CommandBuffer,
|
command_buffer: vk::CommandBuffer,
|
||||||
|
@ -144,6 +150,7 @@ impl RayTracingPipeline {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetRayTracingShaderGroupStackSizeKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetRayTracingShaderGroupStackSizeKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_ray_tracing_shader_group_stack_size(
|
pub unsafe fn get_ray_tracing_shader_group_stack_size(
|
||||||
&self,
|
&self,
|
||||||
pipeline: vk::Pipeline,
|
pipeline: vk::Pipeline,
|
||||||
|
@ -159,6 +166,7 @@ impl RayTracingPipeline {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdSetRayTracingPipelineStackSizeKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdSetRayTracingPipelineStackSizeKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn cmd_set_ray_tracing_pipeline_stack_size(
|
pub unsafe fn cmd_set_ray_tracing_pipeline_stack_size(
|
||||||
&self,
|
&self,
|
||||||
command_buffer: vk::CommandBuffer,
|
command_buffer: vk::CommandBuffer,
|
||||||
|
@ -167,14 +175,17 @@ impl RayTracingPipeline {
|
||||||
(self.fp.cmd_set_ray_tracing_pipeline_stack_size_khr)(command_buffer, pipeline_stack_size);
|
(self.fp.cmd_set_ray_tracing_pipeline_stack_size_khr)(command_buffer, pipeline_stack_size);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub const fn name() -> &'static CStr {
|
pub const fn name() -> &'static CStr {
|
||||||
vk::KhrRayTracingPipelineFn::name()
|
vk::KhrRayTracingPipelineFn::name()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn fp(&self) -> &vk::KhrRayTracingPipelineFn {
|
pub fn fp(&self) -> &vk::KhrRayTracingPipelineFn {
|
||||||
&self.fp
|
&self.fp
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn device(&self) -> vk::Device {
|
pub fn device(&self) -> vk::Device {
|
||||||
self.handle
|
self.handle
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,6 +21,7 @@ impl Surface {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetPhysicalDeviceSurfaceSupportKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetPhysicalDeviceSurfaceSupportKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_physical_device_surface_support(
|
pub unsafe fn get_physical_device_surface_support(
|
||||||
&self,
|
&self,
|
||||||
physical_device: vk::PhysicalDevice,
|
physical_device: vk::PhysicalDevice,
|
||||||
|
@ -38,6 +39,7 @@ impl Surface {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetPhysicalDeviceSurfacePresentModesKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetPhysicalDeviceSurfacePresentModesKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_physical_device_surface_present_modes(
|
pub unsafe fn get_physical_device_surface_present_modes(
|
||||||
&self,
|
&self,
|
||||||
physical_device: vk::PhysicalDevice,
|
physical_device: vk::PhysicalDevice,
|
||||||
|
@ -54,6 +56,7 @@ impl Surface {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetPhysicalDeviceSurfaceCapabilitiesKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetPhysicalDeviceSurfaceCapabilitiesKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_physical_device_surface_capabilities(
|
pub unsafe fn get_physical_device_surface_capabilities(
|
||||||
&self,
|
&self,
|
||||||
physical_device: vk::PhysicalDevice,
|
physical_device: vk::PhysicalDevice,
|
||||||
|
@ -69,6 +72,7 @@ impl Surface {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetPhysicalDeviceSurfaceFormatsKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetPhysicalDeviceSurfaceFormatsKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_physical_device_surface_formats(
|
pub unsafe fn get_physical_device_surface_formats(
|
||||||
&self,
|
&self,
|
||||||
physical_device: vk::PhysicalDevice,
|
physical_device: vk::PhysicalDevice,
|
||||||
|
@ -80,6 +84,7 @@ impl Surface {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkDestroySurfaceKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkDestroySurfaceKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn destroy_surface(
|
pub unsafe fn destroy_surface(
|
||||||
&self,
|
&self,
|
||||||
surface: vk::SurfaceKHR,
|
surface: vk::SurfaceKHR,
|
||||||
|
@ -88,14 +93,17 @@ impl Surface {
|
||||||
(self.fp.destroy_surface_khr)(self.handle, surface, allocation_callbacks.as_raw_ptr());
|
(self.fp.destroy_surface_khr)(self.handle, surface, allocation_callbacks.as_raw_ptr());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub const fn name() -> &'static CStr {
|
pub const fn name() -> &'static CStr {
|
||||||
vk::KhrSurfaceFn::name()
|
vk::KhrSurfaceFn::name()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn fp(&self) -> &vk::KhrSurfaceFn {
|
pub fn fp(&self) -> &vk::KhrSurfaceFn {
|
||||||
&self.fp
|
&self.fp
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn instance(&self) -> vk::Instance {
|
pub fn instance(&self) -> vk::Instance {
|
||||||
self.handle
|
self.handle
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,6 +23,7 @@ impl Swapchain {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCreateSwapchainKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCreateSwapchainKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn create_swapchain(
|
pub unsafe fn create_swapchain(
|
||||||
&self,
|
&self,
|
||||||
create_info: &vk::SwapchainCreateInfoKHR,
|
create_info: &vk::SwapchainCreateInfoKHR,
|
||||||
|
@ -39,6 +40,7 @@ impl Swapchain {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkDestroySwapchainKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkDestroySwapchainKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn destroy_swapchain(
|
pub unsafe fn destroy_swapchain(
|
||||||
&self,
|
&self,
|
||||||
swapchain: vk::SwapchainKHR,
|
swapchain: vk::SwapchainKHR,
|
||||||
|
@ -48,6 +50,7 @@ impl Swapchain {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetSwapchainImagesKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetSwapchainImagesKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_swapchain_images(
|
pub unsafe fn get_swapchain_images(
|
||||||
&self,
|
&self,
|
||||||
swapchain: vk::SwapchainKHR,
|
swapchain: vk::SwapchainKHR,
|
||||||
|
@ -60,6 +63,7 @@ impl Swapchain {
|
||||||
/// On success, returns the next image's index and whether the swapchain is suboptimal for the surface.
|
/// On success, returns the next image's index and whether the swapchain is suboptimal for the surface.
|
||||||
///
|
///
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkAcquireNextImageKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkAcquireNextImageKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn acquire_next_image(
|
pub unsafe fn acquire_next_image(
|
||||||
&self,
|
&self,
|
||||||
swapchain: vk::SwapchainKHR,
|
swapchain: vk::SwapchainKHR,
|
||||||
|
@ -86,6 +90,7 @@ impl Swapchain {
|
||||||
/// On success, returns whether the swapchain is suboptimal for the surface.
|
/// On success, returns whether the swapchain is suboptimal for the surface.
|
||||||
///
|
///
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkQueuePresentKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkQueuePresentKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn queue_present(
|
pub unsafe fn queue_present(
|
||||||
&self,
|
&self,
|
||||||
queue: vk::Queue,
|
queue: vk::Queue,
|
||||||
|
@ -108,6 +113,7 @@ impl Swapchain {
|
||||||
///
|
///
|
||||||
/// [Vulkan 1.1]: https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VK_VERSION_1_1.html
|
/// [Vulkan 1.1]: https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VK_VERSION_1_1.html
|
||||||
/// [`VK_KHR_surface`]: https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VK_KHR_surface.html
|
/// [`VK_KHR_surface`]: https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VK_KHR_surface.html
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_device_group_present_capabilities(
|
pub unsafe fn get_device_group_present_capabilities(
|
||||||
&self,
|
&self,
|
||||||
device_group_present_capabilities: &mut vk::DeviceGroupPresentCapabilitiesKHR,
|
device_group_present_capabilities: &mut vk::DeviceGroupPresentCapabilitiesKHR,
|
||||||
|
@ -128,6 +134,7 @@ impl Swapchain {
|
||||||
///
|
///
|
||||||
/// [Vulkan 1.1]: https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VK_VERSION_1_1.html
|
/// [Vulkan 1.1]: https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VK_VERSION_1_1.html
|
||||||
/// [`VK_KHR_surface`]: https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VK_KHR_surface.html
|
/// [`VK_KHR_surface`]: https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VK_KHR_surface.html
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_device_group_surface_present_modes(
|
pub unsafe fn get_device_group_surface_present_modes(
|
||||||
&self,
|
&self,
|
||||||
surface: vk::SurfaceKHR,
|
surface: vk::SurfaceKHR,
|
||||||
|
@ -146,6 +153,7 @@ impl Swapchain {
|
||||||
///
|
///
|
||||||
/// [Vulkan 1.1]: https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VK_VERSION_1_1.html
|
/// [Vulkan 1.1]: https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VK_VERSION_1_1.html
|
||||||
/// [`VK_KHR_surface`]: https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VK_KHR_surface.html
|
/// [`VK_KHR_surface`]: https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VK_KHR_surface.html
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_physical_device_present_rectangles(
|
pub unsafe fn get_physical_device_present_rectangles(
|
||||||
&self,
|
&self,
|
||||||
physical_device: vk::PhysicalDevice,
|
physical_device: vk::PhysicalDevice,
|
||||||
|
@ -172,6 +180,7 @@ impl Swapchain {
|
||||||
///
|
///
|
||||||
/// [Vulkan 1.1]: https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VK_VERSION_1_1.html
|
/// [Vulkan 1.1]: https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VK_VERSION_1_1.html
|
||||||
/// [`VK_KHR_swapchain`]: https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VK_KHR_swapchain.html
|
/// [`VK_KHR_swapchain`]: https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VK_KHR_swapchain.html
|
||||||
|
#[inline]
|
||||||
pub unsafe fn acquire_next_image2(
|
pub unsafe fn acquire_next_image2(
|
||||||
&self,
|
&self,
|
||||||
acquire_info: &vk::AcquireNextImageInfoKHR,
|
acquire_info: &vk::AcquireNextImageInfoKHR,
|
||||||
|
@ -185,14 +194,17 @@ impl Swapchain {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub const fn name() -> &'static CStr {
|
pub const fn name() -> &'static CStr {
|
||||||
vk::KhrSwapchainFn::name()
|
vk::KhrSwapchainFn::name()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn fp(&self) -> &vk::KhrSwapchainFn {
|
pub fn fp(&self) -> &vk::KhrSwapchainFn {
|
||||||
&self.fp
|
&self.fp
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn device(&self) -> vk::Device {
|
pub fn device(&self) -> vk::Device {
|
||||||
self.handle
|
self.handle
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,6 +18,7 @@ impl Synchronization2 {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdPipelineBarrier2KHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdPipelineBarrier2KHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn cmd_pipeline_barrier2(
|
pub unsafe fn cmd_pipeline_barrier2(
|
||||||
&self,
|
&self,
|
||||||
command_buffer: vk::CommandBuffer,
|
command_buffer: vk::CommandBuffer,
|
||||||
|
@ -27,6 +28,7 @@ impl Synchronization2 {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdResetEvent2KHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdResetEvent2KHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn cmd_reset_event2(
|
pub unsafe fn cmd_reset_event2(
|
||||||
&self,
|
&self,
|
||||||
command_buffer: vk::CommandBuffer,
|
command_buffer: vk::CommandBuffer,
|
||||||
|
@ -37,6 +39,7 @@ impl Synchronization2 {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdSetEvent2KHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdSetEvent2KHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn cmd_set_event2(
|
pub unsafe fn cmd_set_event2(
|
||||||
&self,
|
&self,
|
||||||
command_buffer: vk::CommandBuffer,
|
command_buffer: vk::CommandBuffer,
|
||||||
|
@ -47,6 +50,7 @@ impl Synchronization2 {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdWaitEvents2KHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdWaitEvents2KHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn cmd_wait_events2(
|
pub unsafe fn cmd_wait_events2(
|
||||||
&self,
|
&self,
|
||||||
command_buffer: vk::CommandBuffer,
|
command_buffer: vk::CommandBuffer,
|
||||||
|
@ -63,6 +67,7 @@ impl Synchronization2 {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdWriteTimestamp2KHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdWriteTimestamp2KHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn cmd_write_timestamp2(
|
pub unsafe fn cmd_write_timestamp2(
|
||||||
&self,
|
&self,
|
||||||
command_buffer: vk::CommandBuffer,
|
command_buffer: vk::CommandBuffer,
|
||||||
|
@ -74,6 +79,7 @@ impl Synchronization2 {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkQueueSubmit2KHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkQueueSubmit2KHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn queue_submit2(
|
pub unsafe fn queue_submit2(
|
||||||
&self,
|
&self,
|
||||||
queue: vk::Queue,
|
queue: vk::Queue,
|
||||||
|
@ -83,10 +89,12 @@ impl Synchronization2 {
|
||||||
(self.fp.queue_submit2_khr)(queue, submits.len() as u32, submits.as_ptr(), fence).result()
|
(self.fp.queue_submit2_khr)(queue, submits.len() as u32, submits.as_ptr(), fence).result()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub const fn name() -> &'static CStr {
|
pub const fn name() -> &'static CStr {
|
||||||
vk::KhrSynchronization2Fn::name()
|
vk::KhrSynchronization2Fn::name()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn fp(&self) -> &vk::KhrSynchronization2Fn {
|
pub fn fp(&self) -> &vk::KhrSynchronization2Fn {
|
||||||
&self.fp
|
&self.fp
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,6 +20,7 @@ impl TimelineSemaphore {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetSemaphoreCounterValue.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetSemaphoreCounterValue.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_semaphore_counter_value(&self, semaphore: vk::Semaphore) -> VkResult<u64> {
|
pub unsafe fn get_semaphore_counter_value(&self, semaphore: vk::Semaphore) -> VkResult<u64> {
|
||||||
let mut value = 0;
|
let mut value = 0;
|
||||||
(self.fp.get_semaphore_counter_value_khr)(self.handle, semaphore, &mut value)
|
(self.fp.get_semaphore_counter_value_khr)(self.handle, semaphore, &mut value)
|
||||||
|
@ -27,6 +28,7 @@ impl TimelineSemaphore {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkWaitSemaphores.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkWaitSemaphores.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn wait_semaphores(
|
pub unsafe fn wait_semaphores(
|
||||||
&self,
|
&self,
|
||||||
wait_info: &vk::SemaphoreWaitInfo,
|
wait_info: &vk::SemaphoreWaitInfo,
|
||||||
|
@ -36,18 +38,22 @@ impl TimelineSemaphore {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkSignalSemaphore.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkSignalSemaphore.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn signal_semaphore(&self, signal_info: &vk::SemaphoreSignalInfo) -> VkResult<()> {
|
pub unsafe fn signal_semaphore(&self, signal_info: &vk::SemaphoreSignalInfo) -> VkResult<()> {
|
||||||
(self.fp.signal_semaphore_khr)(self.handle, signal_info).result()
|
(self.fp.signal_semaphore_khr)(self.handle, signal_info).result()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub const fn name() -> &'static CStr {
|
pub const fn name() -> &'static CStr {
|
||||||
vk::KhrTimelineSemaphoreFn::name()
|
vk::KhrTimelineSemaphoreFn::name()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn fp(&self) -> &vk::KhrTimelineSemaphoreFn {
|
pub fn fp(&self) -> &vk::KhrTimelineSemaphoreFn {
|
||||||
&self.fp
|
&self.fp
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn device(&self) -> vk::Device {
|
pub fn device(&self) -> vk::Device {
|
||||||
self.handle
|
self.handle
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,6 +21,7 @@ impl WaylandSurface {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCreateWaylandSurfaceKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCreateWaylandSurfaceKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn create_wayland_surface(
|
pub unsafe fn create_wayland_surface(
|
||||||
&self,
|
&self,
|
||||||
create_info: &vk::WaylandSurfaceCreateInfoKHR,
|
create_info: &vk::WaylandSurfaceCreateInfoKHR,
|
||||||
|
@ -37,6 +38,7 @@ impl WaylandSurface {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetPhysicalDeviceWaylandPresentationSupportKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetPhysicalDeviceWaylandPresentationSupportKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_physical_device_wayland_presentation_support(
|
pub unsafe fn get_physical_device_wayland_presentation_support(
|
||||||
&self,
|
&self,
|
||||||
physical_device: vk::PhysicalDevice,
|
physical_device: vk::PhysicalDevice,
|
||||||
|
@ -52,14 +54,17 @@ impl WaylandSurface {
|
||||||
b > 0
|
b > 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub const fn name() -> &'static CStr {
|
pub const fn name() -> &'static CStr {
|
||||||
vk::KhrWaylandSurfaceFn::name()
|
vk::KhrWaylandSurfaceFn::name()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn fp(&self) -> &vk::KhrWaylandSurfaceFn {
|
pub fn fp(&self) -> &vk::KhrWaylandSurfaceFn {
|
||||||
&self.fp
|
&self.fp
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn instance(&self) -> vk::Instance {
|
pub fn instance(&self) -> vk::Instance {
|
||||||
self.handle
|
self.handle
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,6 +21,7 @@ impl Win32Surface {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCreateWin32SurfaceKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCreateWin32SurfaceKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn create_win32_surface(
|
pub unsafe fn create_win32_surface(
|
||||||
&self,
|
&self,
|
||||||
create_info: &vk::Win32SurfaceCreateInfoKHR,
|
create_info: &vk::Win32SurfaceCreateInfoKHR,
|
||||||
|
@ -37,6 +38,7 @@ impl Win32Surface {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetPhysicalDeviceWin32PresentationSupportKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetPhysicalDeviceWin32PresentationSupportKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_physical_device_win32_presentation_support(
|
pub unsafe fn get_physical_device_win32_presentation_support(
|
||||||
&self,
|
&self,
|
||||||
physical_device: vk::PhysicalDevice,
|
physical_device: vk::PhysicalDevice,
|
||||||
|
@ -50,14 +52,17 @@ impl Win32Surface {
|
||||||
b > 0
|
b > 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub const fn name() -> &'static CStr {
|
pub const fn name() -> &'static CStr {
|
||||||
vk::KhrWin32SurfaceFn::name()
|
vk::KhrWin32SurfaceFn::name()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn fp(&self) -> &vk::KhrWin32SurfaceFn {
|
pub fn fp(&self) -> &vk::KhrWin32SurfaceFn {
|
||||||
&self.fp
|
&self.fp
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn instance(&self) -> vk::Instance {
|
pub fn instance(&self) -> vk::Instance {
|
||||||
self.handle
|
self.handle
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,6 +21,7 @@ impl XcbSurface {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCreateXcbSurfaceKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCreateXcbSurfaceKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn create_xcb_surface(
|
pub unsafe fn create_xcb_surface(
|
||||||
&self,
|
&self,
|
||||||
create_info: &vk::XcbSurfaceCreateInfoKHR,
|
create_info: &vk::XcbSurfaceCreateInfoKHR,
|
||||||
|
@ -37,6 +38,7 @@ impl XcbSurface {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetPhysicalDeviceXcbPresentationSupportKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetPhysicalDeviceXcbPresentationSupportKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_physical_device_xcb_presentation_support(
|
pub unsafe fn get_physical_device_xcb_presentation_support(
|
||||||
&self,
|
&self,
|
||||||
physical_device: vk::PhysicalDevice,
|
physical_device: vk::PhysicalDevice,
|
||||||
|
@ -54,14 +56,17 @@ impl XcbSurface {
|
||||||
b > 0
|
b > 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub const fn name() -> &'static CStr {
|
pub const fn name() -> &'static CStr {
|
||||||
vk::KhrXcbSurfaceFn::name()
|
vk::KhrXcbSurfaceFn::name()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn fp(&self) -> &vk::KhrXcbSurfaceFn {
|
pub fn fp(&self) -> &vk::KhrXcbSurfaceFn {
|
||||||
&self.fp
|
&self.fp
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn instance(&self) -> vk::Instance {
|
pub fn instance(&self) -> vk::Instance {
|
||||||
self.handle
|
self.handle
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,6 +21,7 @@ impl XlibSurface {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCreateXlibSurfaceKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCreateXlibSurfaceKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn create_xlib_surface(
|
pub unsafe fn create_xlib_surface(
|
||||||
&self,
|
&self,
|
||||||
create_info: &vk::XlibSurfaceCreateInfoKHR,
|
create_info: &vk::XlibSurfaceCreateInfoKHR,
|
||||||
|
@ -37,6 +38,7 @@ impl XlibSurface {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetPhysicalDeviceXlibPresentationSupportKHR.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetPhysicalDeviceXlibPresentationSupportKHR.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_physical_device_xlib_presentation_support(
|
pub unsafe fn get_physical_device_xlib_presentation_support(
|
||||||
&self,
|
&self,
|
||||||
physical_device: vk::PhysicalDevice,
|
physical_device: vk::PhysicalDevice,
|
||||||
|
@ -54,14 +56,17 @@ impl XlibSurface {
|
||||||
b > 0
|
b > 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub const fn name() -> &'static CStr {
|
pub const fn name() -> &'static CStr {
|
||||||
vk::KhrXlibSurfaceFn::name()
|
vk::KhrXlibSurfaceFn::name()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn fp(&self) -> &vk::KhrXlibSurfaceFn {
|
pub fn fp(&self) -> &vk::KhrXlibSurfaceFn {
|
||||||
&self.fp
|
&self.fp
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn instance(&self) -> vk::Instance {
|
pub fn instance(&self) -> vk::Instance {
|
||||||
self.handle
|
self.handle
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,6 +21,7 @@ impl IOSSurface {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCreateIOSSurfaceMVK.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCreateIOSSurfaceMVK.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn create_ios_surface(
|
pub unsafe fn create_ios_surface(
|
||||||
&self,
|
&self,
|
||||||
create_info: &vk::IOSSurfaceCreateInfoMVK,
|
create_info: &vk::IOSSurfaceCreateInfoMVK,
|
||||||
|
@ -36,14 +37,17 @@ impl IOSSurface {
|
||||||
.result_with_success(surface)
|
.result_with_success(surface)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub const fn name() -> &'static CStr {
|
pub const fn name() -> &'static CStr {
|
||||||
vk::MvkIosSurfaceFn::name()
|
vk::MvkIosSurfaceFn::name()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn fp(&self) -> &vk::MvkIosSurfaceFn {
|
pub fn fp(&self) -> &vk::MvkIosSurfaceFn {
|
||||||
&self.fp
|
&self.fp
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn instance(&self) -> vk::Instance {
|
pub fn instance(&self) -> vk::Instance {
|
||||||
self.handle
|
self.handle
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,6 +21,7 @@ impl MacOSSurface {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCreateMacOSSurfaceMVK.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCreateMacOSSurfaceMVK.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn create_mac_os_surface(
|
pub unsafe fn create_mac_os_surface(
|
||||||
&self,
|
&self,
|
||||||
create_info: &vk::MacOSSurfaceCreateInfoMVK,
|
create_info: &vk::MacOSSurfaceCreateInfoMVK,
|
||||||
|
@ -36,14 +37,17 @@ impl MacOSSurface {
|
||||||
.result_with_success(surface)
|
.result_with_success(surface)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub const fn name() -> &'static CStr {
|
pub const fn name() -> &'static CStr {
|
||||||
vk::MvkMacosSurfaceFn::name()
|
vk::MvkMacosSurfaceFn::name()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn fp(&self) -> &vk::MvkMacosSurfaceFn {
|
pub fn fp(&self) -> &vk::MvkMacosSurfaceFn {
|
||||||
&self.fp
|
&self.fp
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn instance(&self) -> vk::Instance {
|
pub fn instance(&self) -> vk::Instance {
|
||||||
self.handle
|
self.handle
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,6 +21,7 @@ impl ViSurface {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCreateViSurfaceNN.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCreateViSurfaceNN.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn create_vi_surface(
|
pub unsafe fn create_vi_surface(
|
||||||
&self,
|
&self,
|
||||||
create_info: &vk::ViSurfaceCreateInfoNN,
|
create_info: &vk::ViSurfaceCreateInfoNN,
|
||||||
|
@ -36,14 +37,17 @@ impl ViSurface {
|
||||||
.result_with_success(surface)
|
.result_with_success(surface)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub const fn name() -> &'static CStr {
|
pub const fn name() -> &'static CStr {
|
||||||
vk::NnViSurfaceFn::name()
|
vk::NnViSurfaceFn::name()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn fp(&self) -> &vk::NnViSurfaceFn {
|
pub fn fp(&self) -> &vk::NnViSurfaceFn {
|
||||||
&self.fp
|
&self.fp
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn instance(&self) -> vk::Instance {
|
pub fn instance(&self) -> vk::Instance {
|
||||||
self.handle
|
self.handle
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,6 +19,7 @@ impl CoverageReductionMode {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Retrieve the number of elements to pass to [`get_physical_device_supported_framebuffer_mixed_samples_combinations()`][Self::get_physical_device_supported_framebuffer_mixed_samples_combinations()]
|
/// Retrieve the number of elements to pass to [`get_physical_device_supported_framebuffer_mixed_samples_combinations()`][Self::get_physical_device_supported_framebuffer_mixed_samples_combinations()]
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_physical_device_supported_framebuffer_mixed_samples_combinations_len(
|
pub unsafe fn get_physical_device_supported_framebuffer_mixed_samples_combinations_len(
|
||||||
&self,
|
&self,
|
||||||
physical_device: vk::PhysicalDevice,
|
physical_device: vk::PhysicalDevice,
|
||||||
|
@ -38,6 +39,7 @@ impl CoverageReductionMode {
|
||||||
///
|
///
|
||||||
/// Call [`get_physical_device_supported_framebuffer_mixed_samples_combinations_len()`][Self::get_physical_device_supported_framebuffer_mixed_samples_combinations_len()] to query the number of elements to pass to `out`.
|
/// Call [`get_physical_device_supported_framebuffer_mixed_samples_combinations_len()`][Self::get_physical_device_supported_framebuffer_mixed_samples_combinations_len()] to query the number of elements to pass to `out`.
|
||||||
/// Be sure to [`Default::default()`]-initialize these elements and optionally set their `p_next` pointer.
|
/// Be sure to [`Default::default()`]-initialize these elements and optionally set their `p_next` pointer.
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_physical_device_supported_framebuffer_mixed_samples_combinations(
|
pub unsafe fn get_physical_device_supported_framebuffer_mixed_samples_combinations(
|
||||||
&self,
|
&self,
|
||||||
physical_device: vk::PhysicalDevice,
|
physical_device: vk::PhysicalDevice,
|
||||||
|
@ -56,10 +58,12 @@ impl CoverageReductionMode {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub const fn name() -> &'static CStr {
|
pub const fn name() -> &'static CStr {
|
||||||
vk::NvCoverageReductionModeFn::name()
|
vk::NvCoverageReductionModeFn::name()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn fp(&self) -> &vk::NvCoverageReductionModeFn {
|
pub fn fp(&self) -> &vk::NvCoverageReductionModeFn {
|
||||||
&self.fp
|
&self.fp
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,6 +19,7 @@ impl DeviceDiagnosticCheckpoints {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdSetCheckpointNV.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdSetCheckpointNV.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn cmd_set_checkpoint(
|
pub unsafe fn cmd_set_checkpoint(
|
||||||
&self,
|
&self,
|
||||||
command_buffer: vk::CommandBuffer,
|
command_buffer: vk::CommandBuffer,
|
||||||
|
@ -28,6 +29,7 @@ impl DeviceDiagnosticCheckpoints {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Retrieve the number of elements to pass to [`get_queue_checkpoint_data()`][Self::get_queue_checkpoint_data()]
|
/// Retrieve the number of elements to pass to [`get_queue_checkpoint_data()`][Self::get_queue_checkpoint_data()]
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_queue_checkpoint_data_len(&self, queue: vk::Queue) -> usize {
|
pub unsafe fn get_queue_checkpoint_data_len(&self, queue: vk::Queue) -> usize {
|
||||||
let mut count = 0;
|
let mut count = 0;
|
||||||
(self.fp.get_queue_checkpoint_data_nv)(queue, &mut count, std::ptr::null_mut());
|
(self.fp.get_queue_checkpoint_data_nv)(queue, &mut count, std::ptr::null_mut());
|
||||||
|
@ -38,6 +40,7 @@ impl DeviceDiagnosticCheckpoints {
|
||||||
///
|
///
|
||||||
/// Call [`get_queue_checkpoint_data_len()`][Self::get_queue_checkpoint_data_len()] to query the number of elements to pass to `out`.
|
/// Call [`get_queue_checkpoint_data_len()`][Self::get_queue_checkpoint_data_len()] to query the number of elements to pass to `out`.
|
||||||
/// Be sure to [`Default::default()`]-initialize these elements and optionally set their `p_next` pointer.
|
/// Be sure to [`Default::default()`]-initialize these elements and optionally set their `p_next` pointer.
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_queue_checkpoint_data(
|
pub unsafe fn get_queue_checkpoint_data(
|
||||||
&self,
|
&self,
|
||||||
queue: vk::Queue,
|
queue: vk::Queue,
|
||||||
|
@ -48,10 +51,12 @@ impl DeviceDiagnosticCheckpoints {
|
||||||
assert_eq!(count as usize, out.len());
|
assert_eq!(count as usize, out.len());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub const fn name() -> &'static CStr {
|
pub const fn name() -> &'static CStr {
|
||||||
vk::NvDeviceDiagnosticCheckpointsFn::name()
|
vk::NvDeviceDiagnosticCheckpointsFn::name()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn fp(&self) -> &vk::NvDeviceDiagnosticCheckpointsFn {
|
pub fn fp(&self) -> &vk::NvDeviceDiagnosticCheckpointsFn {
|
||||||
&self.fp
|
&self.fp
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,6 +17,7 @@ impl MeshShader {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdDrawMeshTasksNV.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdDrawMeshTasksNV.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn cmd_draw_mesh_tasks(
|
pub unsafe fn cmd_draw_mesh_tasks(
|
||||||
&self,
|
&self,
|
||||||
command_buffer: vk::CommandBuffer,
|
command_buffer: vk::CommandBuffer,
|
||||||
|
@ -27,6 +28,7 @@ impl MeshShader {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdDrawMeshTasksIndirectNV.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdDrawMeshTasksIndirectNV.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn cmd_draw_mesh_tasks_indirect(
|
pub unsafe fn cmd_draw_mesh_tasks_indirect(
|
||||||
&self,
|
&self,
|
||||||
command_buffer: vk::CommandBuffer,
|
command_buffer: vk::CommandBuffer,
|
||||||
|
@ -45,6 +47,7 @@ impl MeshShader {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdDrawMeshTasksIndirectCountNV.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdDrawMeshTasksIndirectCountNV.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn cmd_draw_mesh_tasks_indirect_count(
|
pub unsafe fn cmd_draw_mesh_tasks_indirect_count(
|
||||||
&self,
|
&self,
|
||||||
command_buffer: vk::CommandBuffer,
|
command_buffer: vk::CommandBuffer,
|
||||||
|
@ -66,10 +69,12 @@ impl MeshShader {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub const fn name() -> &'static CStr {
|
pub const fn name() -> &'static CStr {
|
||||||
vk::NvMeshShaderFn::name()
|
vk::NvMeshShaderFn::name()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn fp(&self) -> &vk::NvMeshShaderFn {
|
pub fn fp(&self) -> &vk::NvMeshShaderFn {
|
||||||
&self.fp
|
&self.fp
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,6 +20,7 @@ impl RayTracing {
|
||||||
Self { handle, fp }
|
Self { handle, fp }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_properties(
|
pub unsafe fn get_properties(
|
||||||
instance: &Instance,
|
instance: &Instance,
|
||||||
pdevice: vk::PhysicalDevice,
|
pdevice: vk::PhysicalDevice,
|
||||||
|
@ -33,6 +34,7 @@ impl RayTracing {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCreateAccelerationStructureNV.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCreateAccelerationStructureNV.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn create_acceleration_structure(
|
pub unsafe fn create_acceleration_structure(
|
||||||
&self,
|
&self,
|
||||||
create_info: &vk::AccelerationStructureCreateInfoNV,
|
create_info: &vk::AccelerationStructureCreateInfoNV,
|
||||||
|
@ -49,6 +51,7 @@ impl RayTracing {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkDestroyAccelerationStructureNV.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkDestroyAccelerationStructureNV.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn destroy_acceleration_structure(
|
pub unsafe fn destroy_acceleration_structure(
|
||||||
&self,
|
&self,
|
||||||
accel_struct: vk::AccelerationStructureNV,
|
accel_struct: vk::AccelerationStructureNV,
|
||||||
|
@ -62,6 +65,7 @@ impl RayTracing {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetAccelerationStructureMemoryRequirementsNV.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetAccelerationStructureMemoryRequirementsNV.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_acceleration_structure_memory_requirements(
|
pub unsafe fn get_acceleration_structure_memory_requirements(
|
||||||
&self,
|
&self,
|
||||||
info: &vk::AccelerationStructureMemoryRequirementsInfoNV,
|
info: &vk::AccelerationStructureMemoryRequirementsInfoNV,
|
||||||
|
@ -76,6 +80,7 @@ impl RayTracing {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkBindAccelerationStructureMemoryNV.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkBindAccelerationStructureMemoryNV.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn bind_acceleration_structure_memory(
|
pub unsafe fn bind_acceleration_structure_memory(
|
||||||
&self,
|
&self,
|
||||||
bind_info: &[vk::BindAccelerationStructureMemoryInfoNV],
|
bind_info: &[vk::BindAccelerationStructureMemoryInfoNV],
|
||||||
|
@ -89,6 +94,7 @@ impl RayTracing {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdBuildAccelerationStructureNV.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdBuildAccelerationStructureNV.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn cmd_build_acceleration_structure(
|
pub unsafe fn cmd_build_acceleration_structure(
|
||||||
&self,
|
&self,
|
||||||
command_buffer: vk::CommandBuffer,
|
command_buffer: vk::CommandBuffer,
|
||||||
|
@ -115,6 +121,7 @@ impl RayTracing {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdCopyAccelerationStructureNV.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdCopyAccelerationStructureNV.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn cmd_copy_acceleration_structure(
|
pub unsafe fn cmd_copy_acceleration_structure(
|
||||||
&self,
|
&self,
|
||||||
command_buffer: vk::CommandBuffer,
|
command_buffer: vk::CommandBuffer,
|
||||||
|
@ -126,6 +133,7 @@ impl RayTracing {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdTraceRaysNV.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdTraceRaysNV.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn cmd_trace_rays(
|
pub unsafe fn cmd_trace_rays(
|
||||||
&self,
|
&self,
|
||||||
command_buffer: vk::CommandBuffer,
|
command_buffer: vk::CommandBuffer,
|
||||||
|
@ -164,6 +172,7 @@ impl RayTracing {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCreateRayTracingPipelinesNV.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCreateRayTracingPipelinesNV.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn create_ray_tracing_pipelines(
|
pub unsafe fn create_ray_tracing_pipelines(
|
||||||
&self,
|
&self,
|
||||||
pipeline_cache: vk::PipelineCache,
|
pipeline_cache: vk::PipelineCache,
|
||||||
|
@ -183,6 +192,7 @@ impl RayTracing {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetRayTracingShaderGroupHandlesNV.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetRayTracingShaderGroupHandlesNV.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_ray_tracing_shader_group_handles(
|
pub unsafe fn get_ray_tracing_shader_group_handles(
|
||||||
&self,
|
&self,
|
||||||
pipeline: vk::Pipeline,
|
pipeline: vk::Pipeline,
|
||||||
|
@ -202,6 +212,7 @@ impl RayTracing {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetAccelerationStructureHandleNV.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetAccelerationStructureHandleNV.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_acceleration_structure_handle(
|
pub unsafe fn get_acceleration_structure_handle(
|
||||||
&self,
|
&self,
|
||||||
accel_struct: vk::AccelerationStructureNV,
|
accel_struct: vk::AccelerationStructureNV,
|
||||||
|
@ -218,6 +229,7 @@ impl RayTracing {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdWriteAccelerationStructuresPropertiesNV.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdWriteAccelerationStructuresPropertiesNV.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn cmd_write_acceleration_structures_properties(
|
pub unsafe fn cmd_write_acceleration_structures_properties(
|
||||||
&self,
|
&self,
|
||||||
command_buffer: vk::CommandBuffer,
|
command_buffer: vk::CommandBuffer,
|
||||||
|
@ -237,18 +249,22 @@ impl RayTracing {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCompileDeferredNV.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCompileDeferredNV.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn compile_deferred(&self, pipeline: vk::Pipeline, shader: u32) -> VkResult<()> {
|
pub unsafe fn compile_deferred(&self, pipeline: vk::Pipeline, shader: u32) -> VkResult<()> {
|
||||||
(self.fp.compile_deferred_nv)(self.handle, pipeline, shader).result()
|
(self.fp.compile_deferred_nv)(self.handle, pipeline, shader).result()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub const fn name() -> &'static CStr {
|
pub const fn name() -> &'static CStr {
|
||||||
vk::NvRayTracingFn::name()
|
vk::NvRayTracingFn::name()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn fp(&self) -> &vk::NvRayTracingFn {
|
pub fn fp(&self) -> &vk::NvRayTracingFn {
|
||||||
&self.fp
|
&self.fp
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn device(&self) -> vk::Device {
|
pub fn device(&self) -> vk::Device {
|
||||||
self.handle
|
self.handle
|
||||||
}
|
}
|
||||||
|
|
|
@ -440,6 +440,7 @@ impl Instance {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetPhysicalDeviceQueueFamilyProperties.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetPhysicalDeviceQueueFamilyProperties.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_physical_device_queue_family_properties(
|
pub unsafe fn get_physical_device_queue_family_properties(
|
||||||
&self,
|
&self,
|
||||||
physical_device: vk::PhysicalDevice,
|
physical_device: vk::PhysicalDevice,
|
||||||
|
@ -468,6 +469,7 @@ impl Instance {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkEnumeratePhysicalDevices.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkEnumeratePhysicalDevices.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn enumerate_physical_devices(&self) -> VkResult<Vec<vk::PhysicalDevice>> {
|
pub unsafe fn enumerate_physical_devices(&self) -> VkResult<Vec<vk::PhysicalDevice>> {
|
||||||
read_into_uninitialized_vector(|count, data| {
|
read_into_uninitialized_vector(|count, data| {
|
||||||
(self.instance_fn_1_0.enumerate_physical_devices)(self.handle(), count, data)
|
(self.instance_fn_1_0.enumerate_physical_devices)(self.handle(), count, data)
|
||||||
|
@ -475,6 +477,7 @@ impl Instance {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkEnumerateDeviceExtensionProperties.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkEnumerateDeviceExtensionProperties.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn enumerate_device_extension_properties(
|
pub unsafe fn enumerate_device_extension_properties(
|
||||||
&self,
|
&self,
|
||||||
device: vk::PhysicalDevice,
|
device: vk::PhysicalDevice,
|
||||||
|
@ -490,6 +493,7 @@ impl Instance {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkEnumerateDeviceLayerProperties.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkEnumerateDeviceLayerProperties.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn enumerate_device_layer_properties(
|
pub unsafe fn enumerate_device_layer_properties(
|
||||||
&self,
|
&self,
|
||||||
device: vk::PhysicalDevice,
|
device: vk::PhysicalDevice,
|
||||||
|
@ -500,6 +504,7 @@ impl Instance {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetPhysicalDeviceSparseImageFormatProperties.html>
|
/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkGetPhysicalDeviceSparseImageFormatProperties.html>
|
||||||
|
#[inline]
|
||||||
pub unsafe fn get_physical_device_sparse_image_format_properties(
|
pub unsafe fn get_physical_device_sparse_image_format_properties(
|
||||||
&self,
|
&self,
|
||||||
physical_device: vk::PhysicalDevice,
|
physical_device: vk::PhysicalDevice,
|
||||||
|
|
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
@ -1028,6 +1028,7 @@ pub fn generate_extension_commands<'a>(
|
||||||
let byte_name_ident = Literal::byte_string(format!("{}\0", extension_name).as_bytes());
|
let byte_name_ident = Literal::byte_string(format!("{}\0", extension_name).as_bytes());
|
||||||
let extension_cstr = quote! {
|
let extension_cstr = quote! {
|
||||||
impl #ident {
|
impl #ident {
|
||||||
|
#[inline]
|
||||||
pub const fn name() -> &'static ::std::ffi::CStr {
|
pub const fn name() -> &'static ::std::ffi::CStr {
|
||||||
unsafe { ::std::ffi::CStr::from_bytes_with_nul_unchecked(#byte_name_ident) }
|
unsafe { ::std::ffi::CStr::from_bytes_with_nul_unchecked(#byte_name_ident) }
|
||||||
}
|
}
|
||||||
|
@ -1332,7 +1333,9 @@ pub fn generate_enum<'a>(
|
||||||
#struct_attribute
|
#struct_attribute
|
||||||
pub struct #ident(pub(crate) i32);
|
pub struct #ident(pub(crate) i32);
|
||||||
impl #ident {
|
impl #ident {
|
||||||
|
#[inline]
|
||||||
pub const fn from_raw(x: i32) -> Self { Self(x) }
|
pub const fn from_raw(x: i32) -> Self { Self(x) }
|
||||||
|
#[inline]
|
||||||
pub const fn as_raw(self) -> i32 { self.0 }
|
pub const fn as_raw(self) -> i32 { self.0 }
|
||||||
}
|
}
|
||||||
#impl_block
|
#impl_block
|
||||||
|
|
Loading…
Reference in a new issue