pub trait CreateFrom: Sized {
    // Required method
    fn create_from<B>(reader: &mut Reader<B>) -> Self
       where B: BufferRef;
}

Required Methods§

source

fn create_from<B>(reader: &mut Reader<B>) -> Self
where B: BufferRef,

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl CreateFrom for Option<NonZeroI32>

source§

fn create_from<B>(reader: &mut Reader<B>) -> Option<NonZeroI32>
where B: BufferRef,

source§

impl CreateFrom for Option<NonZeroU32>

source§

fn create_from<B>(reader: &mut Reader<B>) -> Option<NonZeroU32>
where B: BufferRef,

source§

impl CreateFrom for f32

source§

fn create_from<B>(reader: &mut Reader<B>) -> f32
where B: BufferRef,

source§

impl CreateFrom for i32

source§

fn create_from<B>(reader: &mut Reader<B>) -> i32
where B: BufferRef,

source§

impl CreateFrom for u32

source§

fn create_from<B>(reader: &mut Reader<B>) -> u32
where B: BufferRef,

source§

impl CreateFrom for Wrapping<i32>

source§

fn create_from<B>(reader: &mut Reader<B>) -> Wrapping<i32>
where B: BufferRef,

source§

impl CreateFrom for Wrapping<u32>

source§

fn create_from<B>(reader: &mut Reader<B>) -> Wrapping<u32>
where B: BufferRef,

source§

impl CreateFrom for AtomicI32

source§

fn create_from<B>(reader: &mut Reader<B>) -> AtomicI32
where B: BufferRef,

source§

impl CreateFrom for AtomicU32

source§

fn create_from<B>(reader: &mut Reader<B>) -> AtomicU32
where B: BufferRef,

source§

impl<T> CreateFrom for [T]
where T: CreateFrom, [T]: FromIterator<T> + ShaderType<ExtraMetadata = ArrayMetadata>,

source§

fn create_from<B>(reader: &mut Reader<B>) -> [T]
where B: BufferRef,

source§

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

source§

fn create_from<B>(reader: &mut Reader<B>) -> Cell<T>
where B: BufferRef,

source§

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

source§

fn create_from<B>(reader: &mut Reader<B>) -> [T; N]
where B: BufferRef,

Implementors§

source§

impl CreateFrom for Color

source§

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

source§

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

source§

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

source§

impl CreateFrom for Vec2

source§

impl CreateFrom for Vec3

source§

impl CreateFrom for Vec4

source§

impl CreateFrom for IVec2

source§

impl CreateFrom for IVec3

source§

impl CreateFrom for IVec4

source§

impl CreateFrom for UVec2

source§

impl CreateFrom for UVec3

source§

impl CreateFrom for UVec4

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

impl CreateFrom for ArrayLength

source§

impl<T> CreateFrom for Cow<'_, T>
where T: ToOwned<Owned = T> + CreateFrom + ?Sized,

source§

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

source§

impl<T> CreateFrom for LinkedList<T>
where T: CreateFrom, LinkedList<T>: FromIterator<T> + ShaderType<ExtraMetadata = ArrayMetadata>,

source§

impl<T> CreateFrom for VecDeque<T>
where T: CreateFrom, VecDeque<T>: FromIterator<T> + ShaderType<ExtraMetadata = ArrayMetadata>,

source§

impl<T> CreateFrom for Rc<T>
where T: CreateFrom + ?Sized,

source§

impl<T> CreateFrom for Arc<T>
where T: CreateFrom + ?Sized,

source§

impl<T> CreateFrom for Vec<T>
where T: CreateFrom, Vec<T>: FromIterator<T> + ShaderType<ExtraMetadata = ArrayMetadata>,