pub struct Basalt { /* private fields */ }

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:
  • Panics if the current cofiguration is an app_loop.
Notes:
  • This queue may be the same as the graphics queue in cases where the device only has a single queue present.
Notes:
  • This queue may be the same as the graphics queue in cases where the device only has a single queue present.
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.
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.

Returns list of Format’s used by Basalt.

Get the current extent of the surface. In the case current extent is none, the window’s inner dimensions will be used instead.

Signal the application to exit.

Retrieve the current FPS.

Notes:
  • Returns zero if not configured for app_loop.

Trigger the Swapchain to be recreated.

Notes:
  • Does nothing if not configured for app_loop.

Wait for the application to exit.

Notes:
  • Always returns Ok if not configured for app_loop or the application has already closed.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.