[][src]Struct starstruck::Context

pub struct Context<'a, A: GpuAllocator<B, D> = DefaultGpuAllocator<DefaultChunk<Backend, Device>, Backend, Device>, B: Backend = Backend, D: Device<B> = Device, I: Instance<Backend = B> = Instance> { /* fields omitted */ }

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]

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]

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]

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

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

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

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

Sets value as a parameter of self.