Skip to main content

Renderer

Struct Renderer 

Source
pub struct Renderer { /* private fields */ }
Expand description

the pipelines of one colour format on one device

Implementations§

Source§

impl Renderer

Source

pub fn new(dev: &Device, desc: &RendererDesc) -> Result<Renderer>

Source

pub fn device(&self) -> &Device

Source

pub fn desc(&self) -> &RendererDesc

Source

pub fn multi_draw(&self) -> bool

this device draws the visible layers with one multi-draw (level Voll)

Source

pub fn max_records(&self) -> u32

the most records (segments, free places included) a scene’s pool can hold on this device

Source

pub fn record<'a>( &'a self, e: &mut CommandEncoder<'a>, s: &'a Scene, color: ColorAttachment<'a>, ) -> Result<()>

one frame of a prepared scene into e: its uploads, its visibility, its render pass (the colour attachment’s load and clear as it says, sRGB codes)

Auto Trait Implementations§

§

impl !RefUnwindSafe for Renderer

§

impl !UnwindSafe for Renderer

§

impl Forget for Renderer

§

impl Freeze for Renderer
where *const ArcInner<Shared> is !null: Freeze, PhantomData<ArcInner<Shared>>: Freeze, *const ArcInner<Tag> is !null: Freeze, PhantomData<ArcInner<Tag>>: Freeze, *const ArcInner<PipeInner> is !null: Freeze, PhantomData<ArcInner<PipeInner>>: Freeze, *const ArcInner<BglInner> is !null: Freeze, PhantomData<ArcInner<BglInner>>: Freeze, *const ArcInner<BufInner> is !null: Freeze, PhantomData<ArcInner<BufInner>>: Freeze,

§

impl Move for Renderer

§

impl Send for Renderer
where Arc<Shared>: Send, Arc<Tag>: Send, Arc<PipeInner>: Send, Arc<BglInner>: Send, Arc<BufInner>: Send,

§

impl Sync for Renderer
where Arc<Shared>: Sync, Arc<Tag>: Sync, Arc<PipeInner>: Sync, Arc<BglInner>: Sync, Arc<BufInner>: Sync,

§

impl Unpin for Renderer
where Arc<Shared>: Unpin, Arc<Tag>: Unpin, Arc<PipeInner>: Unpin, Arc<BglInner>: Unpin, Arc<BufInner>: Unpin,

§

impl UnsafeUnpin for Renderer
where *const ArcInner<Shared> is !null: UnsafeUnpin, PhantomData<ArcInner<Shared>>: UnsafeUnpin, *const ArcInner<Tag> is !null: UnsafeUnpin, PhantomData<ArcInner<Tag>>: UnsafeUnpin, *const ArcInner<PipeInner> is !null: UnsafeUnpin, PhantomData<ArcInner<PipeInner>>: UnsafeUnpin, *const ArcInner<BglInner> is !null: UnsafeUnpin, PhantomData<ArcInner<BglInner>>: UnsafeUnpin, *const ArcInner<BufInner> is !null: UnsafeUnpin, PhantomData<ArcInner<BufInner>>: UnsafeUnpin,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.