pub struct RenderState<'a, D>where
D: Device,{
pub target: &'a RenderTarget<'a, D>,
pub program: &'a D::Program,
pub vertex_array: &'a D::VertexArray,
pub primitive: Primitive,
pub uniforms: &'a [(&'a D::Uniform, UniformData)],
pub textures: &'a [&'a D::Texture],
pub viewport: RectI,
pub options: RenderOptions,
}
Fields§
§target: &'a RenderTarget<'a, D>
§program: &'a D::Program
§vertex_array: &'a D::VertexArray
§primitive: Primitive
§uniforms: &'a [(&'a D::Uniform, UniformData)]
§textures: &'a [&'a D::Texture]
§viewport: RectI
§options: RenderOptions
Trait Implementations§
Source§impl<'a, D> Clone for RenderState<'a, D>
impl<'a, D> Clone for RenderState<'a, D>
Source§fn clone(&self) -> RenderState<'a, D>
fn clone(&self) -> RenderState<'a, D>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<'a, D> Freeze for RenderState<'a, D>
impl<'a, D> RefUnwindSafe for RenderState<'a, D>where
<D as Device>::Program: RefUnwindSafe,
<D as Device>::VertexArray: RefUnwindSafe,
<D as Device>::Framebuffer: RefUnwindSafe,
<D as Device>::Texture: RefUnwindSafe,
<D as Device>::Uniform: RefUnwindSafe,
impl<'a, D> Send for RenderState<'a, D>
impl<'a, D> Sync for RenderState<'a, D>
impl<'a, D> Unpin for RenderState<'a, D>
impl<'a, D> UnwindSafe for RenderState<'a, D>where
<D as Device>::Program: RefUnwindSafe,
<D as Device>::VertexArray: RefUnwindSafe,
<D as Device>::Framebuffer: RefUnwindSafe,
<D as Device>::Texture: RefUnwindSafe,
<D as Device>::Uniform: RefUnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more