[−][src]Struct rgx::core::Renderer
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]
T: 'static + Copy,
pub fn uniform_buffer<T>(&self, buf: &[T]) -> UniformBuffer where
T: 'static + Copy,
[src]
T: 'static + Copy,
pub fn binding_group(
&self,
layout: &BindingGroupLayout,
binds: &[&dyn Bind]
) -> BindingGroup
[src]
&self,
layout: &BindingGroupLayout,
binds: &[&dyn Bind]
) -> BindingGroup
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]
T: AbstractPipeline<'static>,
pub fn read<F>(&mut self, fb: &Framebuffer, f: F) where
F: 'static + FnOnce(&[Bgra8]),
[src]
F: 'static + FnOnce(&[Bgra8]),
pub fn update_pipeline<'a, T>(
&mut self,
pip: &'a T,
p: T::PrepareContext,
f: &mut Frame
) where
T: AbstractPipeline<'a>,
[src]
&mut self,
pip: &'a T,
p: T::PrepareContext,
f: &mut Frame
) where
T: AbstractPipeline<'a>,
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
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]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
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, U> TryInto<U> 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> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,