pub trait ReadFrom {
    // Required method
    fn read_from<B>(&mut self, reader: &mut Reader<B>)
       where B: BufferRef;
}

Required Methods§

source

fn read_from<B>(&mut self, reader: &mut Reader<B>)
where B: BufferRef,

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ReadFrom for Option<NonZero<i32>>

source§

fn read_from<B>(&mut self, reader: &mut Reader<B>)
where B: BufferRef,

source§

impl ReadFrom for Option<NonZero<u32>>

source§

fn read_from<B>(&mut self, reader: &mut Reader<B>)
where B: BufferRef,

source§

impl ReadFrom for f32

source§

fn read_from<B>(&mut self, reader: &mut Reader<B>)
where B: BufferRef,

source§

impl ReadFrom for i32

source§

fn read_from<B>(&mut self, reader: &mut Reader<B>)
where B: BufferRef,

source§

impl ReadFrom for u32

source§

fn read_from<B>(&mut self, reader: &mut Reader<B>)
where B: BufferRef,

source§

impl ReadFrom for Wrapping<i32>

source§

fn read_from<B>(&mut self, reader: &mut Reader<B>)
where B: BufferRef,

source§

impl ReadFrom for Wrapping<u32>

source§

fn read_from<B>(&mut self, reader: &mut Reader<B>)
where B: BufferRef,

source§

impl ReadFrom for AtomicI32

source§

fn read_from<B>(&mut self, reader: &mut Reader<B>)
where B: BufferRef,

source§

impl ReadFrom for AtomicU32

source§

fn read_from<B>(&mut self, reader: &mut Reader<B>)
where B: BufferRef,

source§

impl<T> ReadFrom for &mut T
where T: ReadFrom + ?Sized,

source§

fn read_from<B>(&mut self, reader: &mut Reader<B>)
where B: BufferRef,

source§

impl<T> ReadFrom for [T]
where T: CreateFrom + ReadFrom, [T]: Truncate + Length + Extend<T> + ShaderType<ExtraMetadata = ArrayMetadata>, &'a mut [T]: for<'a> IntoIterator<Item = &'a mut T>,

source§

fn read_from<B>(&mut self, reader: &mut Reader<B>)
where B: BufferRef,

source§

impl<T> ReadFrom for Cell<T>
where T: Copy + ReadFrom + ?Sized,

source§

fn read_from<B>(&mut self, reader: &mut Reader<B>)
where B: BufferRef,

source§

impl<T, const N: usize> ReadFrom for [T; N]
where T: ReadFrom, [T; N]: ShaderType<ExtraMetadata = ArrayMetadata>,

source§

fn read_from<B>(&mut self, reader: &mut Reader<B>)
where B: BufferRef,

Implementors§

source§

impl ReadFrom for Color

source§

impl ReadFrom for Mat2
where Mat2: ShaderType<ExtraMetadata = MatrixMetadata> + AsMutMatrixParts<f32, 2, 2>, f32: MatrixScalar + ReadFrom,

source§

impl ReadFrom for Mat3
where Mat3: ShaderType<ExtraMetadata = MatrixMetadata> + AsMutMatrixParts<f32, 3, 3>, f32: MatrixScalar + ReadFrom,

source§

impl ReadFrom for Mat4
where Mat4: ShaderType<ExtraMetadata = MatrixMetadata> + AsMutMatrixParts<f32, 4, 4>, f32: MatrixScalar + ReadFrom,

source§

impl ReadFrom for Vec2

source§

impl ReadFrom for Vec3

source§

impl ReadFrom for Vec4

source§

impl ReadFrom for IVec2

source§

impl ReadFrom for IVec3

source§

impl ReadFrom for IVec4

source§

impl ReadFrom for UVec2

source§

impl ReadFrom for UVec3

source§

impl ReadFrom for UVec4

source§

impl ReadFrom for PbrDeferredLightingDepthId
where PbrDeferredLightingDepthId: ShaderType<ExtraMetadata = StructMetadata<1>>, u32: for<'__> ReadFrom,

source§

impl ReadFrom for GpuDirectionalCascade
where GpuDirectionalCascade: ShaderType<ExtraMetadata = StructMetadata<3>>, Mat4: for<'__> ReadFrom, f32: for<'__> ReadFrom + for<'__> ReadFrom,

source§

impl ReadFrom for GpuDirectionalLight
where GpuDirectionalLight: ShaderType<ExtraMetadata = StructMetadata<10>>, [GpuDirectionalCascade; 4]: for<'__> ReadFrom, Vec4: for<'__> ReadFrom, Vec3: for<'__> ReadFrom, u32: for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom, f32: for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom,

source§

impl ReadFrom for GpuFog
where GpuFog: ShaderType<ExtraMetadata = StructMetadata<6>>, Vec4: for<'__> ReadFrom + for<'__> ReadFrom, Vec3: for<'__> ReadFrom + for<'__> ReadFrom, f32: for<'__> ReadFrom, u32: for<'__> ReadFrom,

source§

impl ReadFrom for GpuLights
where GpuLights: ShaderType<ExtraMetadata = StructMetadata<6>>, [GpuDirectionalLight; 10]: for<'__> ReadFrom, Vec4: for<'__> ReadFrom + for<'__> ReadFrom, UVec4: for<'__> ReadFrom, u32: for<'__> ReadFrom, i32: for<'__> ReadFrom,

source§

impl ReadFrom for GpuPointLight
where GpuPointLight: ShaderType<ExtraMetadata = StructMetadata<7>>, Vec4: for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom, u32: for<'__> ReadFrom, f32: for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom,

source§

impl ReadFrom for GpuPointLightsStorage
where GpuPointLightsStorage: ShaderType<ExtraMetadata = StructMetadata<1>>, Vec<GpuPointLight>: for<'__> ReadFrom,

source§

impl ReadFrom for GpuPointLightsUniform
where GpuPointLightsUniform: ShaderType<ExtraMetadata = StructMetadata<1>>, Box<[GpuPointLight; 256]>: for<'__> ReadFrom,

source§

impl ReadFrom for LightProbesUniform
where LightProbesUniform: ShaderType<ExtraMetadata = StructMetadata<7>>, [RenderLightProbe; 8]: for<'__> ReadFrom + for<'__> ReadFrom, i32: for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom, u32: for<'__> ReadFrom, f32: for<'__> ReadFrom,

source§

impl ReadFrom for MeshUniform
where MeshUniform: ShaderType<ExtraMetadata = StructMetadata<6>>, [Vec4; 3]: for<'__> ReadFrom + for<'__> ReadFrom, UVec2: for<'__> ReadFrom, [Vec4; 2]: for<'__> ReadFrom, f32: for<'__> ReadFrom, u32: for<'__> ReadFrom,

source§

impl ReadFrom for PreviousViewProjection
where PreviousViewProjection: ShaderType<ExtraMetadata = StructMetadata<1>>, Mat4: for<'__> ReadFrom,

source§

impl ReadFrom for StandardMaterialUniform
where StandardMaterialUniform: ShaderType<ExtraMetadata = StructMetadata<18>>, Vec4: for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom, f32: for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom, u32: for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom,

source§

impl ReadFrom for ColorMaterialUniform
where ColorMaterialUniform: ShaderType<ExtraMetadata = StructMetadata<2>>, Vec4: for<'__> ReadFrom, u32: for<'__> ReadFrom,

source§

impl ReadFrom for Mesh2dUniform
where Mesh2dUniform: ShaderType<ExtraMetadata = StructMetadata<4>>, [Vec4; 3]: for<'__> ReadFrom, [Vec4; 2]: for<'__> ReadFrom, f32: for<'__> ReadFrom, u32: for<'__> ReadFrom,

source§

impl ReadFrom for GlobalsUniform
where GlobalsUniform: ShaderType<ExtraMetadata = StructMetadata<3>>, f32: for<'__> ReadFrom + for<'__> ReadFrom, u32: for<'__> ReadFrom,

source§

impl ReadFrom for ColorGrading
where ColorGrading: ShaderType<ExtraMetadata = StructMetadata<4>>, f32: for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom,

source§

impl ReadFrom for ViewUniform
where ViewUniform: ShaderType<ExtraMetadata = StructMetadata<14>>, Mat4: for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom, Vec3: for<'__> ReadFrom, f32: for<'__> ReadFrom + for<'__> ReadFrom, Vec4: for<'__> ReadFrom, [Vec4; 6]: for<'__> ReadFrom, ColorGrading: for<'__> ReadFrom, u32: for<'__> ReadFrom,

source§

impl ReadFrom for ArrayLength

source§

impl<T> ReadFrom for Box<T>
where T: ReadFrom + ?Sized,

source§

impl<T> ReadFrom for LinkedList<T>
where T: CreateFrom + ReadFrom, LinkedList<T>: Truncate + Length + Extend<T> + ShaderType<ExtraMetadata = ArrayMetadata>, &'a mut LinkedList<T>: for<'a> IntoIterator<Item = &'a mut T>,

source§

impl<T> ReadFrom for VecDeque<T>
where T: CreateFrom + ReadFrom, VecDeque<T>: Truncate + Length + Extend<T> + ShaderType<ExtraMetadata = ArrayMetadata>, &'a mut VecDeque<T>: for<'a> IntoIterator<Item = &'a mut T>,

source§

impl<T> ReadFrom for Vec<T>
where T: CreateFrom + ReadFrom, Vec<T>: Truncate + Length + Extend<T> + ShaderType<ExtraMetadata = ArrayMetadata>, &'a mut Vec<T>: for<'a> IntoIterator<Item = &'a mut T>,