AsStd140

Trait AsStd140 

Source
pub trait AsStd140 {
    type Std140: ReprStd140;

    // Required method
    fn as_std140(&self) -> Self::Std140;
}
Expand description

Implemented for types that can be represented as [st140] values.

Required Associated Types§

Source

type Std140: ReprStd140

The std140 that this type converts to.

Required Methods§

Source

fn as_std140(&self) -> Self::Std140

Converts this value into an [st140] value.

Implementations on Foreign Types§

Source§

impl AsStd140 for Matrix2<f32>

Source§

impl AsStd140 for Matrix3<f32>

Source§

impl AsStd140 for Matrix4<f32>

Source§

impl AsStd140 for Vector1<bool>

Source§

impl AsStd140 for Vector1<f32>

Source§

type Std140 = float

Source§

fn as_std140(&self) -> Self::Std140

Source§

impl AsStd140 for Vector1<i32>

Source§

type Std140 = int

Source§

fn as_std140(&self) -> Self::Std140

Source§

impl AsStd140 for Vector1<u32>

Source§

type Std140 = uint

Source§

fn as_std140(&self) -> Self::Std140

Source§

impl AsStd140 for Vector2<bool>

Source§

type Std140 = bvec2

Source§

fn as_std140(&self) -> Self::Std140

Source§

impl AsStd140 for Vector2<f32>

Source§

type Std140 = vec2

Source§

fn as_std140(&self) -> Self::Std140

Source§

impl AsStd140 for Vector2<i32>

Source§

type Std140 = ivec2

Source§

fn as_std140(&self) -> Self::Std140

Source§

impl AsStd140 for Vector2<u32>

Source§

type Std140 = uvec2

Source§

fn as_std140(&self) -> Self::Std140

Source§

impl AsStd140 for Vector3<bool>

Source§

type Std140 = bvec3

Source§

fn as_std140(&self) -> Self::Std140

Source§

impl AsStd140 for Vector3<f32>

Source§

type Std140 = vec3

Source§

fn as_std140(&self) -> Self::Std140

Source§

impl AsStd140 for Vector3<i32>

Source§

type Std140 = ivec3

Source§

fn as_std140(&self) -> Self::Std140

Source§

impl AsStd140 for Vector3<u32>

Source§

type Std140 = uvec3

Source§

fn as_std140(&self) -> Self::Std140

Source§

impl AsStd140 for Vector4<bool>

Source§

type Std140 = bvec4

Source§

fn as_std140(&self) -> Self::Std140

Source§

impl AsStd140 for Vector4<f32>

Source§

type Std140 = vec4

Source§

fn as_std140(&self) -> Self::Std140

Source§

impl AsStd140 for Vector4<i32>

Source§

type Std140 = ivec4

Source§

fn as_std140(&self) -> Self::Std140

Source§

impl AsStd140 for Vector4<u32>

Source§

type Std140 = uvec4

Source§

fn as_std140(&self) -> Self::Std140

Implementors§