Trait MewShaderPrimitive

Source
pub trait MewShaderPrimitive {
    type Bytes;
    type Inner;

    // Required methods
    fn from_inner(inner: Self::Inner) -> Self;
    fn from_bytes(bytes: Self::Bytes) -> Self;
    fn zeroed() -> Self;
}

Required Associated Types§

Required Methods§

Source

fn from_inner(inner: Self::Inner) -> Self

Source

fn from_bytes(bytes: Self::Bytes) -> Self

Source

fn zeroed() -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl MewShaderPrimitive for F32

Source§

type Bytes = [u8; 4]

Source§

type Inner = [f32; 1]

Source§

impl MewShaderPrimitive for I32

Source§

type Bytes = [u8; 4]

Source§

type Inner = [i32; 1]

Source§

impl MewShaderPrimitive for Mat2x2f

Source§

type Bytes = [u8; 16]

Source§

type Inner = [[f32; 2]; 2]

Source§

impl MewShaderPrimitive for Mat2x2i

Source§

type Bytes = [u8; 16]

Source§

type Inner = [[i32; 2]; 2]

Source§

impl MewShaderPrimitive for Mat2x2u

Source§

type Bytes = [u8; 16]

Source§

type Inner = [[u32; 2]; 2]

Source§

impl MewShaderPrimitive for Mat2x3f

Source§

type Bytes = [u8; 24]

Source§

type Inner = [[f32; 3]; 2]

Source§

impl MewShaderPrimitive for Mat2x3i

Source§

type Bytes = [u8; 24]

Source§

type Inner = [[i32; 3]; 2]

Source§

impl MewShaderPrimitive for Mat2x3u

Source§

type Bytes = [u8; 24]

Source§

type Inner = [[u32; 3]; 2]

Source§

impl MewShaderPrimitive for Mat2x4f

Source§

type Bytes = [u8; 32]

Source§

type Inner = [[f32; 4]; 2]

Source§

impl MewShaderPrimitive for Mat2x4i

Source§

type Bytes = [u8; 32]

Source§

type Inner = [[i32; 4]; 2]

Source§

impl MewShaderPrimitive for Mat2x4u

Source§

type Bytes = [u8; 32]

Source§

type Inner = [[u32; 4]; 2]

Source§

impl MewShaderPrimitive for Mat3x2f

Source§

type Bytes = [u8; 24]

Source§

type Inner = [[f32; 2]; 3]

Source§

impl MewShaderPrimitive for Mat3x2i

Source§

type Bytes = [u8; 24]

Source§

type Inner = [[i32; 2]; 3]

Source§

impl MewShaderPrimitive for Mat3x2u

Source§

type Bytes = [u8; 24]

Source§

type Inner = [[u32; 2]; 3]

Source§

impl MewShaderPrimitive for Mat3x3f

Source§

type Bytes = [u8; 36]

Source§

type Inner = [[f32; 3]; 3]

Source§

impl MewShaderPrimitive for Mat3x3i

Source§

type Bytes = [u8; 36]

Source§

type Inner = [[i32; 3]; 3]

Source§

impl MewShaderPrimitive for Mat3x3u

Source§

type Bytes = [u8; 36]

Source§

type Inner = [[u32; 3]; 3]

Source§

impl MewShaderPrimitive for Mat3x4f

Source§

type Bytes = [u8; 48]

Source§

type Inner = [[f32; 4]; 3]

Source§

impl MewShaderPrimitive for Mat3x4i

Source§

type Bytes = [u8; 48]

Source§

type Inner = [[i32; 4]; 3]

Source§

impl MewShaderPrimitive for Mat3x4u

Source§

type Bytes = [u8; 48]

Source§

type Inner = [[u32; 4]; 3]

Source§

impl MewShaderPrimitive for Mat4x2f

Source§

type Bytes = [u8; 32]

Source§

type Inner = [[f32; 2]; 4]

Source§

impl MewShaderPrimitive for Mat4x2i

Source§

type Bytes = [u8; 32]

Source§

type Inner = [[i32; 2]; 4]

Source§

impl MewShaderPrimitive for Mat4x2u

Source§

type Bytes = [u8; 32]

Source§

type Inner = [[u32; 2]; 4]

Source§

impl MewShaderPrimitive for Mat4x3f

Source§

type Bytes = [u8; 48]

Source§

type Inner = [[f32; 3]; 4]

Source§

impl MewShaderPrimitive for Mat4x3i

Source§

type Bytes = [u8; 48]

Source§

type Inner = [[i32; 3]; 4]

Source§

impl MewShaderPrimitive for Mat4x3u

Source§

type Bytes = [u8; 48]

Source§

type Inner = [[u32; 3]; 4]

Source§

impl MewShaderPrimitive for Mat4x4f

Source§

type Bytes = [u8; 64]

Source§

type Inner = [[f32; 4]; 4]

Source§

impl MewShaderPrimitive for Mat4x4i

Source§

type Bytes = [u8; 64]

Source§

type Inner = [[i32; 4]; 4]

Source§

impl MewShaderPrimitive for Mat4x4u

Source§

type Bytes = [u8; 64]

Source§

type Inner = [[u32; 4]; 4]

Source§

impl MewShaderPrimitive for U32

Source§

type Bytes = [u8; 4]

Source§

type Inner = [u32; 1]

Source§

impl MewShaderPrimitive for Vec2f

Source§

type Bytes = [u8; 8]

Source§

type Inner = [f32; 2]

Source§

impl MewShaderPrimitive for Vec2i

Source§

type Bytes = [u8; 8]

Source§

type Inner = [i32; 2]

Source§

impl MewShaderPrimitive for Vec2u

Source§

type Bytes = [u8; 8]

Source§

type Inner = [u32; 2]

Source§

impl MewShaderPrimitive for Vec3f

Source§

type Bytes = [u8; 12]

Source§

type Inner = [f32; 3]

Source§

impl MewShaderPrimitive for Vec3i

Source§

type Bytes = [u8; 12]

Source§

type Inner = [i32; 3]

Source§

impl MewShaderPrimitive for Vec3u

Source§

type Bytes = [u8; 12]

Source§

type Inner = [u32; 3]

Source§

impl MewShaderPrimitive for Vec4f

Source§

type Bytes = [u8; 16]

Source§

type Inner = [f32; 4]

Source§

impl MewShaderPrimitive for Vec4i

Source§

type Bytes = [u8; 16]

Source§

type Inner = [i32; 4]

Source§

impl MewShaderPrimitive for Vec4u

Source§

type Bytes = [u8; 16]

Source§

type Inner = [u32; 4]