Struct dacite::core::Instance
[−]
[src]
pub struct Instance(_);
See VkInstance
Methods
impl Instance
[src]
fn get_enabled_extensions(&self) -> &InstanceExtensions
fn create(
create_info: &InstanceCreateInfo,
allocator: Option<Box<Allocator>>
) -> Result<Instance, EarlyInstanceError>
create_info: &InstanceCreateInfo,
allocator: Option<Box<Allocator>>
) -> Result<Instance, EarlyInstanceError>
See vkCreateInstance
fn enumerate_physical_devices(&self) -> Result<Vec<PhysicalDevice>, Error>
fn enumerate_instance_layer_properties<B>() -> Result<B, EarlyInstanceError> where
B: FromIterator<LayerProperties>,
B: FromIterator<LayerProperties>,
fn get_instance_extension_properties(
layer_name: Option<&str>
) -> Result<InstanceExtensionsProperties, EarlyInstanceError>
layer_name: Option<&str>
) -> Result<InstanceExtensionsProperties, EarlyInstanceError>
fn create_debug_report_callback_ext(
&self,
create_info: &DebugReportCallbackCreateInfoExt,
allocator: Option<Box<Allocator>>
) -> Result<DebugReportCallbackExt, Error>
&self,
create_info: &DebugReportCallbackCreateInfoExt,
allocator: Option<Box<Allocator>>
) -> Result<DebugReportCallbackExt, Error>
See vkCreateDebugReportCallbackEXT
and extension VK_EXT_debug_report
fn debug_report_message_ext(
&self,
flags: DebugReportFlagsExt,
object_type: DebugReportObjectTypeExt,
object: u64,
location: usize,
message_code: i32,
layer_prefix: &str,
message: &str
)
&self,
flags: DebugReportFlagsExt,
object_type: DebugReportObjectTypeExt,
object: u64,
location: usize,
message_code: i32,
layer_prefix: &str,
message: &str
)
See vkDebugReportMessageEXT
and extension VK_EXT_debug_report
fn create_display_plane_surface_khr(
&self,
create_info: &DisplaySurfaceCreateInfoKhr,
allocator: Option<Box<Allocator>>
) -> Result<SurfaceKhr, Error>
&self,
create_info: &DisplaySurfaceCreateInfoKhr,
allocator: Option<Box<Allocator>>
) -> Result<SurfaceKhr, Error>
See vkCreateDisplayPlaneSurfaceKHR
and extensions VK_KHR_display
,
VK_KHR_surface
fn create_xlib_surface_khr(
&self,
create_info: &XlibSurfaceCreateInfoKhr,
allocator: Option<Box<Allocator>>
) -> Result<SurfaceKhr, Error>
&self,
create_info: &XlibSurfaceCreateInfoKhr,
allocator: Option<Box<Allocator>>
) -> Result<SurfaceKhr, Error>
See vkCreateXlibSurfaceKHR
and extensions VK_KHR_xlib_surface
,
VK_KHR_surface
fn create_wayland_surface_khr(
&self,
create_info: &WaylandSurfaceCreateInfoKhr,
allocator: Option<Box<Allocator>>
) -> Result<SurfaceKhr, Error>
&self,
create_info: &WaylandSurfaceCreateInfoKhr,
allocator: Option<Box<Allocator>>
) -> Result<SurfaceKhr, Error>
See vkCreateWaylandSurfaceKHR
and extensions VK_KHR_wayland_surface
,
VK_KHR_surface
fn create_xcb_surface_khr(
&self,
create_info: &XcbSurfaceCreateInfoKhr,
allocator: Option<Box<Allocator>>
) -> Result<SurfaceKhr, Error>
&self,
create_info: &XcbSurfaceCreateInfoKhr,
allocator: Option<Box<Allocator>>
) -> Result<SurfaceKhr, Error>
See vkCreateXcbSurfaceKHR
and extensions VK_KHR_xcb_surface
,
VK_KHR_surface
fn create_mir_surface_khr(
&self,
create_info: &MirSurfaceCreateInfoKhr,
allocator: Option<Box<Allocator>>
) -> Result<SurfaceKhr, Error>
&self,
create_info: &MirSurfaceCreateInfoKhr,
allocator: Option<Box<Allocator>>
) -> Result<SurfaceKhr, Error>
See vkCreateMirSurfaceKHR
and extensions VK_KHR_mir_surface
,
VK_KHR_surface
fn create_android_surface_khr(
&self,
create_info: &AndroidSurfaceCreateInfoKhr,
allocator: Option<Box<Allocator>>
) -> Result<SurfaceKhr, Error>
&self,
create_info: &AndroidSurfaceCreateInfoKhr,
allocator: Option<Box<Allocator>>
) -> Result<SurfaceKhr, Error>
See vkCreateAndroidSurfaceKHR
and extensions VK_KHR_android_surface
,
VK_KHR_surface
fn create_win32_surface_khr(
&self,
create_info: &Win32SurfaceCreateInfoKhr,
allocator: Option<Box<Allocator>>
) -> Result<SurfaceKhr, Error>
&self,
create_info: &Win32SurfaceCreateInfoKhr,
allocator: Option<Box<Allocator>>
) -> Result<SurfaceKhr, Error>
See vkCreateWin32SurfaceKHR
and extensions VK_KHR_win32_surface
,
VK_KHR_surface
Trait Implementations
impl Debug for Instance
[src]
impl Clone for Instance
[src]
fn clone(&self) -> Instance
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for Instance
[src]
fn eq(&self, __arg_0: &Instance) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Instance) -> bool
This method tests for !=
.
impl Eq for Instance
[src]
impl PartialOrd for Instance
[src]
fn partial_cmp(&self, __arg_0: &Instance) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &Instance) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &Instance) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &Instance) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &Instance) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for Instance
[src]
fn cmp(&self, __arg_0: &Instance) -> Ordering
This method returns an Ordering
between self
and other
. Read more
impl Hash for Instance
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more