[][src]Struct rgx::core::Renderer

pub struct Renderer {
    pub device: Device,
}

Renderer

Fields

device: Device

Methods

impl Renderer[src]

pub fn new<W: HasRawWindowHandle>(window: &W) -> Result<Self, Error>[src]

pub fn swap_chain(&self, w: u32, h: u32, mode: PresentMode) -> SwapChain[src]

pub fn texture(&self, w: u32, h: u32) -> Texture[src]

pub fn framebuffer(&self, w: u32, h: u32) -> Framebuffer[src]

pub fn zbuffer(&self, w: u32, h: u32) -> ZBuffer[src]

pub fn vertex_buffer<T>(&self, verts: &[T]) -> VertexBuffer where
    T: 'static + Copy
[src]

pub fn uniform_buffer<T>(&self, buf: &[T]) -> UniformBuffer where
    T: 'static + Copy
[src]

pub fn binding_group(
    &self,
    layout: &BindingGroupLayout,
    binds: &[&dyn Bind]
) -> BindingGroup
[src]

pub fn sampler(&self, min_filter: Filter, mag_filter: Filter) -> Sampler[src]

pub fn pipeline<T>(&self, blending: Blending) -> T where
    T: AbstractPipeline<'static>, 
[src]

pub fn read<F>(&mut self, fb: &Framebuffer, f: F) where
    F: 'static + FnOnce(&[Bgra8]), 
[src]

pub fn update_pipeline<'a, T>(
    &mut self,
    pip: &'a T,
    p: T::PrepareContext,
    f: &mut Frame
) where
    T: AbstractPipeline<'a>, 
[src]

pub fn frame(&mut self) -> Frame[src]

pub fn present(&mut self, frame: Frame)[src]

pub fn submit<T: Copy>(&mut self, commands: &[Op<T>])[src]

Trait Implementations

impl Debug for Renderer[src]

Auto Trait Implementations

impl Send for Renderer

impl Sync for Renderer

impl Unpin for Renderer

impl UnwindSafe for Renderer

impl !RefUnwindSafe for Renderer

Blanket Implementations

impl<T> From<T> for T[src]

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

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

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> 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> Borrow<T> for T where
    T: ?Sized
[src]

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

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