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 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

only works with app loop

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

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.

Performs the conversion.

Performs the conversion.

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.