Trait bevy::render::render_resource::encase::internal::CreateFrom

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

Required Methods§

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

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

§

impl CreateFrom for Option<NonZero<i32>>

§

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

§

impl CreateFrom for Option<NonZero<u32>>

§

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

§

impl CreateFrom for f32

§

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

§

impl CreateFrom for i32

§

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

§

impl CreateFrom for u32

§

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

§

impl CreateFrom for Wrapping<i32>

§

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

§

impl CreateFrom for Wrapping<u32>

§

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

§

impl CreateFrom for AtomicI32

§

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

§

impl CreateFrom for AtomicU32

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

Implementors§

§

impl CreateFrom for LinearRgba

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

impl CreateFrom for Vec2

§

impl CreateFrom for Vec3

§

impl CreateFrom for Vec4

§

impl CreateFrom for IVec2

§

impl CreateFrom for IVec3

§

impl CreateFrom for IVec4

§

impl CreateFrom for UVec2

§

impl CreateFrom for UVec3

§

impl CreateFrom for UVec4

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

impl CreateFrom for StandardMaterialUniform
where StandardMaterialUniform: ShaderType<ExtraMetadata = StructMetadata<23>>, Vec4: for<'__> CreateFrom + for<'__> CreateFrom + for<'__> CreateFrom, Mat3: for<'__> CreateFrom, f32: for<'__> CreateFrom + for<'__> CreateFrom + for<'__> CreateFrom + for<'__> CreateFrom + for<'__> CreateFrom + for<'__> CreateFrom + for<'__> CreateFrom + for<'__> CreateFrom + for<'__> CreateFrom + for<'__> CreateFrom + for<'__> CreateFrom + for<'__> CreateFrom + for<'__> CreateFrom + for<'__> CreateFrom + for<'__> CreateFrom, Vec2: for<'__> CreateFrom, u32: for<'__> CreateFrom + for<'__> CreateFrom + for<'__> CreateFrom,

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

impl CreateFrom for ArrayLength