Skip to main content

ReadFrom

Trait ReadFrom 

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl ReadFrom for Atomic<i32>

Source§

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

Source§

impl ReadFrom for Atomic<u32>

Source§

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

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

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 Cell<T>
where T: Copy + ReadFrom,

Source§

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

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§

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

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§

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,

Implementors§

Source§

impl ReadFrom for ArrayLength

Source§

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

Source§

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

Source§

impl ReadFrom for ColorGradingUniform
where ColorGradingUniform: ShaderType<ExtraMetadata = StructMetadata<10>>, Mat3: for<'__> ReadFrom, Vec3: for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom, Vec2: for<'__> ReadFrom, f32: for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom,

Source§

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

Source§

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,

Source§

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

Source§

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

Source§

impl ReadFrom for ForwardDecalMaterialExtUniform
where ForwardDecalMaterialExtUniform: ShaderType<ExtraMetadata = StructMetadata<1>>, f32: 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 GpuAtmosphere
where GpuAtmosphere: ShaderType<ExtraMetadata = StructMetadata<4>>, Vec3: for<'__> ReadFrom, f32: for<'__> ReadFrom + for<'__> ReadFrom, Mat4: for<'__> ReadFrom,

Source§

impl ReadFrom for GpuAtmosphereSettings
where GpuAtmosphereSettings: ShaderType<ExtraMetadata = StructMetadata<12>>, UVec2: for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom, UVec3: for<'__> ReadFrom, u32: for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom, f32: for<'__> ReadFrom,

Source§

impl ReadFrom for GpuBinUnpackingMetadata
where GpuBinUnpackingMetadata: ShaderType<ExtraMetadata = StructMetadata<4>>, u32: for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom, [u32; 61]: for<'__> ReadFrom,

Source§

impl ReadFrom for GpuClusteredLight
where GpuClusteredLight: ShaderType<ExtraMetadata = StructMetadata<11>>, Vec4: for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom, u32: for<'__> ReadFrom + for<'__> ReadFrom, f32: for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom + 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<13>>, [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 + 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<9>>, [GpuDirectionalLight; 10]: for<'__> ReadFrom, Vec4: for<'__> ReadFrom + for<'__> ReadFrom, UVec4: for<'__> ReadFrom, u32: for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom, i32: for<'__> ReadFrom, [GpuRectLight; 8]: for<'__> ReadFrom,

Source§

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

Source§

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

Source§

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

Source§

impl ReadFrom for IVec2

Source§

impl ReadFrom for IVec3

Source§

impl ReadFrom for IVec4

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl ReadFrom for LinearRgba

Available on crate feature encase only.
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 MeshCullingData
where MeshCullingData: ShaderType<ExtraMetadata = StructMetadata<2>>, Vec4: for<'__> ReadFrom + for<'__> ReadFrom,

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl ReadFrom for RenderClusteredDecal
where RenderClusteredDecal: ShaderType<ExtraMetadata = StructMetadata<8>>, Mat4: for<'__> ReadFrom, [i32; 4]: for<'__> ReadFrom, Vec3: for<'__> ReadFrom, f32: for<'__> ReadFrom, u32: for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom + for<'__> ReadFrom,

Source§

impl ReadFrom for ScreenSpaceReflectionsUniform
where ScreenSpaceReflectionsUniform: ShaderType<ExtraMetadata = StructMetadata<11>>, f32: 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 SkyboxUniforms
where SkyboxUniforms: ShaderType<ExtraMetadata = StructMetadata<2>>, f32: for<'__> ReadFrom, Mat4: for<'__> ReadFrom,

Source§

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

Source§

impl ReadFrom for UVec2

Source§

impl ReadFrom for UVec3

Source§

impl ReadFrom for UVec4

Source§

impl ReadFrom for Vec2

Source§

impl ReadFrom for Vec3

Source§

impl ReadFrom for Vec4

Source§

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

Source§

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

Source§

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

Source§

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

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