pub struct RenderState {
pub id: u32,
/* private fields */
}Fields§
§id: u32Implementations§
Source§impl RenderState
impl RenderState
pub fn new() -> Self
pub fn uniforms(&self) -> &CpuBuffer<RenderStateUniforms>
pub fn uniforms_mut(&mut self) -> BufferGuard<'_, RenderStateUniforms>
pub fn update(&mut self, camera: &RenderCamera, frame_time: FrameTime)
Trait Implementations§
Source§impl Bindings for RenderState
impl Bindings for RenderState
fn define_bindings<'a>(&'a self, builder: &mut ResourceBuilder<'a>)
Auto Trait Implementations§
impl !Freeze for RenderState
impl !RefUnwindSafe for RenderState
impl Send for RenderState
impl Sync for RenderState
impl Unpin for RenderState
impl UnsafeUnpin for RenderState
impl UnwindSafe for RenderState
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
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().