Trait bevy::render::render_resource::encase::internal::ReadFrom

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

Required Methods§

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§

§

impl ReadFrom for Option<NonZero<i32>>

§

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

§

impl ReadFrom for Option<NonZero<u32>>

§

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

§

impl ReadFrom for f32

§

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

§

impl ReadFrom for i32

§

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

§

impl ReadFrom for u32

§

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

§

impl ReadFrom for Wrapping<i32>

§

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

§

impl ReadFrom for Wrapping<u32>

§

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

§

impl ReadFrom for AtomicI32

§

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

§

impl ReadFrom for AtomicU32

§

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

§

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

§

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

§

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>,

§

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

§

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

§

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

§

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>,

§

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

§

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>,

§

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

§

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>,

§

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

§

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

§

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

§

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

§

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

Implementors§

§

impl ReadFrom for LinearRgba

§

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

§

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

§

impl ReadFrom for PreviousViewData
where PreviousViewData: ShaderType<ExtraMetadata = StructMetadata<2>>, Mat4: for<'__> ReadFrom + for<'__> ReadFrom,

§

impl ReadFrom for SmaaInfoUniform
where SmaaInfoUniform: ShaderType<ExtraMetadata = StructMetadata<1>>, Vec4: for<'__> ReadFrom,

§

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

§

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

§

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

§

impl ReadFrom for Vec2

§

impl ReadFrom for Vec3

§

impl ReadFrom for Vec4

§

impl ReadFrom for IVec2

§

impl ReadFrom for IVec3

§

impl ReadFrom for IVec4

§

impl ReadFrom for UVec2

§

impl ReadFrom for UVec3

§

impl ReadFrom for UVec4

§

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

§

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

§

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

§

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

§

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

§

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,

§

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,

§

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,

§

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,

§

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

§

impl ReadFrom for MeshInputUniform
where MeshInputUniform: ShaderType<ExtraMetadata = StructMetadata<4>>, [Vec4; 3]: for<'__> ReadFrom, UVec2: for<'__> ReadFrom, u32: for<'__> ReadFrom + for<'__> ReadFrom,

§

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

§

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

§

impl ReadFrom for StandardMaterialUniform
where StandardMaterialUniform: ShaderType<ExtraMetadata = StructMetadata<23>>, Vec4: for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom, Mat3: 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 + for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom, Vec2: for<'__> ReadFrom, u32: for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom,

§

impl ReadFrom for VolumetricFogUniform
where VolumetricFogUniform: ShaderType<ExtraMetadata = StructMetadata<11>>, Vec3: for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom, f32: for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom, u32: for<'__> ReadFrom,

§

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

§

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

§

impl ReadFrom for IndirectParameters
where IndirectParameters: ShaderType<ExtraMetadata = StructMetadata<5>>, u32: for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom,

§

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

§

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

§

impl ReadFrom for ViewUniform
where ViewUniform: ShaderType<ExtraMetadata = StructMetadata<13>>, 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, ColorGradingUniform: for<'__> ReadFrom,

§

impl ReadFrom for ArrayLength