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<NonZero<i32>>

source§

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

source§

impl CreateFrom for Option<NonZero<u32>>

source§

fn create_from<B>(reader: &mut Reader<B>) -> Option<NonZero<u32>>
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 LinearRgba

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

impl CreateFrom for Vec4

source§

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

source§

impl CreateFrom for Vec2

source§

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

source§

impl CreateFrom for Vec3

source§

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

source§

impl CreateFrom for IVec2

source§

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

source§

impl CreateFrom for IVec3

source§

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

source§

impl CreateFrom for IVec4

source§

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

source§

impl CreateFrom for UVec2

source§

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

source§

impl CreateFrom for UVec3

source§

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

source§

impl CreateFrom for UVec4

source§

fn create_from<B>(reader: &mut Reader<B>) -> UVec4
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 Cow<'_, T>
where T: ToOwned<Owned = T> + CreateFrom + ?Sized,

source§

fn create_from<B>(reader: &mut Reader<B>) -> Cow<'_, T>
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 Box<T>
where T: CreateFrom + ?Sized,

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

fn create_from<B>(reader: &mut Reader<B>) -> Vec<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 IndirectParameters
where Self: ShaderType<ExtraMetadata = StructMetadata<5usize>>, for<'__, '__, '__, '__, '__> u32: CreateFrom,

source§

impl CreateFrom for PreprocessWorkItem
where Self: ShaderType<ExtraMetadata = StructMetadata<2usize>>, for<'__, '__> u32: CreateFrom,

source§

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

source§

impl CreateFrom for ViewUniform
where Self: ShaderType<ExtraMetadata = StructMetadata<13usize>>, for<'__, '__, '__, '__, '__, '__, '__> Mat4: CreateFrom, for<'__> Vec3: CreateFrom, for<'__, '__> f32: CreateFrom, for<'__> Vec4: CreateFrom, for<'__> [Vec4; 6]: CreateFrom, for<'__> ColorGradingUniform: CreateFrom,

source§

impl CreateFrom for ArrayLength