[−][src]Struct starstruck::Context
Methods
impl<'a, A: GpuAllocator<B, D>, B: Backend, D: Device<B>, I: Instance<Backend = B>> Context<'a, A, B, D, I>
[src]
pub fn setup<FU: Future<Item = (), Error = Error> + Send + 'static + Sized, IN: IntoFuture<Future = FU, Item = (), Error = Error> + Send + 'static, C: FnOnce(&SetupContext<A, B, D, I>) -> IN + Send + 'static>(
&self,
callback: C
)
[src]
&self,
callback: C
)
pub fn stop_starstruck(&mut self)
[src]
pub fn render_area(&self) -> Extent2D
[src]
pub fn input(&self) -> &UserInput
[src]
pub fn setup_context(&self) -> &SetupContext<A, B, D, I>
[src]
pub fn draw<In: Index, V: Vertex>(
&mut self,
pipeline: &Pipeline<V, A, B, D, I>,
bundle: &Bundle<In, V, A, B, D, I>
) where
RenderPassInlineEncoder<'a, B>: BundleEncoderExt<In, V, A, B, D, I>,
[src]
&mut self,
pipeline: &Pipeline<V, A, B, D, I>,
bundle: &Bundle<In, V, A, B, D, I>
) where
RenderPassInlineEncoder<'a, B>: BundleEncoderExt<In, V, A, B, D, I>,
pub fn draw_with_camera<In: Index, V: Vertex>(
&mut self,
pipeline: &Pipeline<V, A, B, D, I>,
bundle: &Bundle<In, V, A, B, D, I>,
camera: &dyn Camera
) where
RenderPassInlineEncoder<'a, B>: BundleEncoderExt<In, V, A, B, D, I>,
[src]
&mut self,
pipeline: &Pipeline<V, A, B, D, I>,
bundle: &Bundle<In, V, A, B, D, I>,
camera: &dyn Camera
) where
RenderPassInlineEncoder<'a, B>: BundleEncoderExt<In, V, A, B, D, I>,
Auto Trait Implementations
impl<'a, A, B, D, I> Send for Context<'a, A, B, D, I> where
<B as Backend>::CommandBuffer: Send + Sync,
<B as Backend>::CommandPool: Send + Sync,
<B as Backend>::CommandQueue: Send + Sync,
<B as Backend>::Fence: Send + Sync,
<B as Backend>::Framebuffer: Send + Sync,
<B as Backend>::Image: Send + Sync,
<B as Backend>::ImageView: Send + Sync,
<B as Backend>::Memory: Send + Sync,
<B as Backend>::PhysicalDevice: Send + Sync,
<B as Backend>::QueueFamily: Send + Sync,
<B as Backend>::RenderPass: Send + Sync,
<B as Backend>::Semaphore: Send + Sync,
<B as Backend>::Surface: Send + Sync,
<B as Backend>::Swapchain: Send + Sync,
<B as Backend>::CommandBuffer: Send + Sync,
<B as Backend>::CommandPool: Send + Sync,
<B as Backend>::CommandQueue: Send + Sync,
<B as Backend>::Fence: Send + Sync,
<B as Backend>::Framebuffer: Send + Sync,
<B as Backend>::Image: Send + Sync,
<B as Backend>::ImageView: Send + Sync,
<B as Backend>::Memory: Send + Sync,
<B as Backend>::PhysicalDevice: Send + Sync,
<B as Backend>::QueueFamily: Send + Sync,
<B as Backend>::RenderPass: Send + Sync,
<B as Backend>::Semaphore: Send + Sync,
<B as Backend>::Surface: Send + Sync,
<B as Backend>::Swapchain: Send + Sync,
impl<'a, A, B, D, I> Sync for Context<'a, A, B, D, I> where
<B as Backend>::CommandBuffer: Send + Sync,
<B as Backend>::CommandPool: Send + Sync,
<B as Backend>::CommandQueue: Send + Sync,
<B as Backend>::Fence: Send + Sync,
<B as Backend>::Framebuffer: Send + Sync,
<B as Backend>::Image: Send + Sync,
<B as Backend>::ImageView: Send + Sync,
<B as Backend>::Memory: Send + Sync,
<B as Backend>::PhysicalDevice: Send + Sync,
<B as Backend>::QueueFamily: Send + Sync,
<B as Backend>::RenderPass: Send + Sync,
<B as Backend>::Semaphore: Send + Sync,
<B as Backend>::Surface: Send + Sync,
<B as Backend>::Swapchain: Send + Sync,
<B as Backend>::CommandBuffer: Send + Sync,
<B as Backend>::CommandPool: Send + Sync,
<B as Backend>::CommandQueue: Send + Sync,
<B as Backend>::Fence: Send + Sync,
<B as Backend>::Framebuffer: Send + Sync,
<B as Backend>::Image: Send + Sync,
<B as Backend>::ImageView: Send + Sync,
<B as Backend>::Memory: Send + Sync,
<B as Backend>::PhysicalDevice: Send + Sync,
<B as Backend>::QueueFamily: Send + Sync,
<B as Backend>::RenderPass: Send + Sync,
<B as Backend>::Semaphore: Send + Sync,
<B as Backend>::Surface: Send + Sync,
<B as Backend>::Swapchain: Send + Sync,
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Supports for T
[src]
impl<T> Erased for 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>,
Sets value
as a parameter of self
.