[][src]Module crevice::std140

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

Structs

DMat2

Corresponds to a GLSL dmat2 in std140 layout.

DMat3

Corresponds to a GLSL dmat3 in std140 layout.

DMat4

Corresponds to a GLSL dmat3 in std140 layout.

DVec2

Corresponds to a GLSL dvec2 in std140 layout.

DVec3

Corresponds to a GLSL dvec3 in std140 layout.

DVec4

Corresponds to a GLSL dvec4 in std140 layout.

DynamicUniform

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

DynamicUniformStd140

std140 variant of DynamicUniform.

Mat2

Corresponds to a GLSL mat2 in std140 layout.

Mat3

Corresponds to a GLSL mat3 in std140 layout.

Mat4

Corresponds to a GLSL mat4 in std140 layout.

Sizer

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

Vec2

Corresponds to a GLSL vec2 in std140 layout.

Vec3

Corresponds to a GLSL vec3 in std140 layout.

Vec4

Corresponds to a GLSL vec4 in std140 layout.

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