pub struct Basalt { /* private fields */ }
Implementations
sourceimpl Basalt
impl Basalt
sourcepub fn initialize(
options: BstOptions,
result_fn: Box<dyn Fn(Result<Arc<Self>, String>) + Send + Sync>
)
pub fn initialize(
options: BstOptions,
result_fn: Box<dyn Fn(Result<Arc<Self>, String>) + Send + Sync>
)
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.
sourcepub fn poll_events(&self) -> Vec<BstEvent>
pub fn poll_events(&self) -> Vec<BstEvent>
Panics:
- Panics if the current cofiguration is an app_loop.
pub fn input_ref(&self) -> &Input
pub fn interval(&self) -> Arc<Interval>
pub fn interval_ref(&self) -> &Arc<Interval>
pub fn interface(&self) -> Arc<Interface>
pub fn interface_ref(&self) -> &Arc<Interface>
pub fn atlas(&self) -> Arc<Atlas>
pub fn atlas_ref(&self) -> &Arc<Atlas>
pub fn device(&self) -> Arc<Device>
pub fn device_ref(&self) -> &Arc<Device>
sourcepub fn compute_queue(&self) -> Arc<Queue>
pub fn compute_queue(&self) -> Arc<Queue>
Notes:
- This queue may be the same as the graphics queue in cases where the device only has a single queue present.
sourcepub fn compute_queue_ref(&self) -> &Arc<Queue>
pub fn compute_queue_ref(&self) -> &Arc<Queue>
Notes:
- This queue may be the same as the graphics queue in cases where the device only has a single queue present.
sourcepub fn transfer_queue(&self) -> Arc<Queue>
pub fn transfer_queue(&self) -> Arc<Queue>
Notes:
- 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.
sourcepub fn transfer_queue_ref(&self) -> &Arc<Queue>
pub fn transfer_queue_ref(&self) -> &Arc<Queue>
Notes:
- 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.
pub fn graphics_queue(&self) -> Arc<Queue>
pub fn graphics_queue_ref(&self) -> &Arc<Queue>
pub fn secondary_compute_queue(&self) -> Option<Arc<Queue>>
pub fn secondary_compute_queue_ref(&self) -> Option<&Arc<Queue>>
pub fn secondary_transfer_queue(&self) -> Option<Arc<Queue>>
pub fn secondary_transfer_queue_ref(&self) -> Option<&Arc<Queue>>
pub fn secondary_graphics_queue(&self) -> Option<Arc<Queue>>
pub fn secondary_graphics_queue_ref(&self) -> Option<&Arc<Queue>>
pub fn physical_device_ref(&self) -> &Arc<PhysicalDevice>
pub fn physical_device(&self) -> Arc<PhysicalDevice>
pub fn surface_capabilities(
&self,
fse: FullScreenExclusive
) -> SurfaceCapabilities
pub fn surface_formats(
&self,
fse: FullScreenExclusive
) -> Vec<(VkFormat, VkColorSpace)>
pub fn surface_present_modes(&self) -> Vec<PresentMode>
pub fn instance(&self) -> Arc<Instance>
pub fn instance_ref(&self) -> &Arc<Instance>
pub fn surface(&self) -> Arc<Surface<Arc<dyn BasaltWindow>>>
pub fn surface_ref(&self) -> &Arc<Surface<Arc<dyn BasaltWindow>>>
sourcepub fn formats_in_use(&self) -> BstFormatsInUse
pub fn formats_in_use(&self) -> BstFormatsInUse
Returns list of Format
’s used by Basalt
.
sourcepub fn current_extent(&self, fse: FullScreenExclusive) -> [u32; 2]
pub fn current_extent(&self, fse: FullScreenExclusive) -> [u32; 2]
Get the current extent of the surface. In the case current extent is none, the window’s inner dimensions will be used instead.
pub fn wants_exit(&self) -> bool
pub fn window(&self) -> Arc<dyn BasaltWindow>
pub fn options(&self) -> BstOptions
pub fn options_ref(&self) -> &BstOptions
sourcepub fn force_recreate_swapchain(&self)
pub fn force_recreate_swapchain(&self)
Auto Trait Implementations
impl !RefUnwindSafe for Basalt
impl Send for Basalt
impl Sync for Basalt
impl Unpin for Basalt
impl !UnwindSafe for Basalt
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more