pub struct Graphics { /* private fields */ }
Expand description
Graphics manager
Implementations§
Source§impl Graphics
impl Graphics
pub const fn device(&self) -> &VulkanGfx
pub fn adapter_raw(&self) -> VkPhysicalDevice
Sourcepub fn submit_commands(
&mut self,
generator: impl for<'a> FnOnce(CmdRecord<'a, VulkanGfx>) -> CmdRecord<'a, VulkanGfx>,
) -> Result<()>
pub fn submit_commands( &mut self, generator: impl for<'a> FnOnce(CmdRecord<'a, VulkanGfx>) -> CmdRecord<'a, VulkanGfx>, ) -> Result<()>
Submits any commands as transient commands.
pub fn submit_buffered_commands( &mut self, batches: &[SubmitInfo<'_, '_, '_>], fence: &mut impl VkHandleMut<Handle = VkFence>, ) -> Result<()>
pub const fn graphics_queue_family_index(&self) -> u32
pub fn vk_extension_is_available(&self, name: &CStr) -> bool
pub fn is_extension_available(&self, ext: &VulkanExtension<'_>) -> bool
pub fn vk_version(&self) -> &Version
pub fn wait_operations(&mut self) -> Result<()>
Source§impl Graphics
Adapter Property exports
impl Graphics
Adapter Property exports
pub fn adapter_available_features(&self) -> &PhysicalDeviceFeatures
pub fn adapter_limits(&self) -> &VkPhysicalDeviceLimits
pub fn adapter_memory_properties(&self) -> &PhysicalDeviceMemoryProperties
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Graphics
impl !RefUnwindSafe for Graphics
impl Unpin for Graphics
impl !UnwindSafe for Graphics
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more