Struct basalt::Basalt [−][src]
pub struct Basalt { /* fields omitted */ }
Implementations
Begin initializing Basalt, this thread will be taken for window event polling and the
function provided in result_fn
will be executed after Basalt initialization has
completed or errored.
Panics if the current cofiguration is an app_loop.
Note: This queue may be the same as the graphics queue in cases where the device only has a single queue present.
Note: This queue may be the same as the graphics queue in cases where the device only has a single queue present.
Note: This queue may be the same as the compute queue in cases where the device only has two queues present. In cases where there is only one queue the graphics, compute, and transfer queues will all be the same queue.
Note: This queue may be the same as the compute queue in cases where the device only has two queues present. In cases where there is only one queue the graphics, compute, and transfer queues will all be the same queue.
Get the current extent of the surface. In the case current extent is none, the window’s inner dimensions will be used instead. This function is equivlent to:
basalt
.surface()
.capabilities(
PhysicalDevice::from_index(basalt.instance(), basalt.physical_device_index())
.unwrap(),
)
.unwrap()
.current_extent
.unwrap_or(basalt.surface_ref().window().inner_dimmension())
only works with app loop
only works with app loop
Auto Trait Implementations
impl !RefUnwindSafe for Basalt
impl !UnwindSafe for Basalt
Blanket Implementations
Mutably borrows from an owned value. Read more
Builds a pointer to this type from a raw pointer.
Returns true if the size is suitable to store a type like this.
Returns the size of an individual element.