[][src]Module crevice::std140

Defines traits and types for working with data adhering to GLSL's std140 layout specification.

Structs

DynamicUniform

Wrapper type that aligns the inner type to at least 256 bytes.

DynamicUniformStd140

std140 variant of DynamicUniform.

Mat2

Corresponds to GLSL's mat2.

Mat3

Corresponds to GLSL's mat3.

Mat4

Corresponds to GLSL's mat4.

Sizer

Type that computes the buffer size needed by a series of std140 types laid out.

Vec2

Corresponds to GLSL's vec2.

Vec3

Corresponds to GLSL's vec3.

Vec4

Corresponds to GLSL's vec4.

Writer

Type that enables writing correctly aligned std140 values to a buffer.

Traits

AsStd140

Trait implemented for all types that can be turned into std140 values.

Std140

Trait implemented for all std140 primitives. Generally should not be implemented outside this crate.

Derive Macros

AsStd140