pub struct VulkanPlatformGraphics { /* private fields */ }Expand description
The platform graphics of Vulkan: creates the graphics contexts of the threads that render, each over a device of its own or all over the device of the application.
Implementations§
Source§impl VulkanPlatformGraphics
impl VulkanPlatformGraphics
Sourcepub fn new(
factory: Arc<dyn IVulkanDeviceFactory>,
platform_options: VulkanPlatformSpecificOptions,
) -> Self
pub fn new( factory: Arc<dyn IVulkanDeviceFactory>, platform_options: VulkanPlatformSpecificOptions, ) -> Self
Platform graphics over a device factory.
Sourcepub fn try_create(
options: &VulkanOptions,
platform_options: VulkanPlatformSpecificOptions,
) -> Option<Arc<Self>>
pub fn try_create( options: &VulkanOptions, platform_options: VulkanPlatformSpecificOptions, ) -> Option<Arc<Self>>
The platform graphics for the options of the application and of the
platform: over the device of the application when it gave one, else
over a new instance, on which a device is created once to see that
one can be. A failure is logged in the area Vulkan, and there are
no platform graphics then.
Trait Implementations§
Source§impl IPlatformGraphics for VulkanPlatformGraphics
impl IPlatformGraphics for VulkanPlatformGraphics
Source§fn create_context(&self) -> Rc<dyn IPlatformGraphicsContext>
fn create_context(&self) -> Rc<dyn IPlatformGraphicsContext>
Creates a new graphics context.
The shared graphics context; only valid when
uses_shared_context is true.Whether the backend renders through one context shared by all
surfaces.
Source§fn as_feature_provider(&self) -> Option<&dyn IOptionalFeatureProvider>
fn as_feature_provider(&self) -> Option<&dyn IOptionalFeatureProvider>
Optional features of the graphics API, if the implementation provides
any.
Auto Trait Implementations§
impl !RefUnwindSafe for VulkanPlatformGraphics
impl !UnwindSafe for VulkanPlatformGraphics
impl Freeze for VulkanPlatformGraphics
impl Send for VulkanPlatformGraphics
impl Sync for VulkanPlatformGraphics
impl Unpin for VulkanPlatformGraphics
impl UnsafeUnpin for VulkanPlatformGraphics
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more