[−][src]Struct basalt::Basalt
Implementations
impl Basalt
[src]
pub fn initialize(
options: Options,
result_fn: Box<dyn Fn(Result<Arc<Self>, String>) + Send + Sync>
)
[src]
options: Options,
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.
pub fn input_ref(&self) -> &Arc<Input>
[src]
pub fn limits(&self) -> Arc<Limits>
[src]
pub fn current_scale(&self) -> f32
[src]
pub fn set_scale(&self, to: f32)
[src]
pub fn add_scale(&self, amt: f32)
[src]
pub fn interface(&self) -> Arc<Interface>
[src]
pub fn interface_ref(&self) -> &Arc<Interface>
[src]
pub fn atlas(&self) -> Arc<Atlas>
[src]
pub fn atlas_ref(&self) -> &Arc<Atlas>
[src]
pub fn device(&self) -> Arc<Device>
[src]
pub fn device_ref(&self) -> &Arc<Device>
[src]
pub fn compute_queue(&self) -> Arc<Queue>
[src]
Note: This queue may be the same as the graphics queue in cases where the device only has a single queue present.
pub fn compute_queue_ref(&self) -> &Arc<Queue>
[src]
Note: This queue may be the same as the graphics queue in cases where the device only has a single queue present.
pub fn transfer_queue(&self) -> Arc<Queue>
[src]
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.
pub fn transfer_queue_ref(&self) -> &Arc<Queue>
[src]
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.
pub fn graphics_queue(&self) -> Arc<Queue>
[src]
pub fn graphics_queue_ref(&self) -> &Arc<Queue>
[src]
pub fn secondary_compute_queue(&self) -> Option<Arc<Queue>>
[src]
pub fn secondary_compute_queue_ref(&self) -> Option<&Arc<Queue>>
[src]
pub fn secondary_transfer_queue(&self) -> Option<Arc<Queue>>
[src]
pub fn secondary_transfer_queue_ref(&self) -> Option<&Arc<Queue>>
[src]
pub fn secondary_graphics_queue(&self) -> Option<Arc<Queue>>
[src]
pub fn secondary_graphics_queue_ref(&self) -> Option<&Arc<Queue>>
[src]
pub fn physical_device_index(&self) -> usize
[src]
pub fn instance(&self) -> Arc<Instance>
[src]
pub fn instance_ref(&self) -> &Arc<Instance>
[src]
pub fn surface(&self) -> Arc<Surface<Arc<dyn BasaltWindow + Send + Sync>>>
[src]
pub fn surface_ref(&self) -> &Arc<Surface<Arc<dyn BasaltWindow + Send + Sync>>>
[src]
pub fn swap_caps(&self) -> Capabilities
[src]
pub fn wants_exit(&self) -> bool
[src]
pub fn window(&self) -> Arc<dyn BasaltWindow + Send + Sync>
[src]
pub fn options(&self) -> Options
[src]
pub fn options_ref(&self) -> &Options
[src]
pub fn resize(&self, w: u32, h: u32)
[src]
pub fn enable_fullscreen(&self)
[src]
pub fn disable_fullscreen(&self)
[src]
pub fn toggle_fullscreen(&self)
[src]
pub fn exit(&self)
[src]
pub fn fps(&self) -> usize
[src]
only works with app loop
pub fn force_recreate_swapchain(&self)
[src]
only works with app loop
pub fn wait_for_exit(&self) -> Result<(), String>
[src]
only works with app loop
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Content for T
[src]
fn ref_from_ptr(ptr: *mut c_void, size: usize) -> Option<*mut T>
[src]
fn is_size_suitable(size: usize) -> bool
[src]
fn indiv_size() -> usize
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,