Module glsl

Source
Available on crate feature glsl only.
Expand description

GLSL interfacing.

§Matrices are column-major order, and they implement a few methods for correctly indexing.


lang::{c, glsl}

Structs§

g_bvec2
Equivalent to GLSL bvec2, a vector of 2×g_bools.
g_bvec3
Equivalent to GLSL bvec3, a vector of 3×g_bools.
g_bvec4
Equivalent to GLSL bvec4, a vector of 4×g_bools.
g_dmat2
Equivalent to GLSL dmat2, a column-major 2×2 matrix of g_doubles.
g_dmat3
Equivalent to GLSL dmat3, a column-major 3×3 matrix of g_doubles.
g_dmat4
Equivalent to GLSL dmat4, a column-major 4×4 matrix of g_doubles.
g_dvec2
Equivalent to GLSL dvec2, a vector of 2×g_doubles.
g_dvec3
Equivalent to GLSL dvec3, a vector of 3×g_doubles.
g_dvec4
Equivalent to GLSL dvec4, a vector of 4×g_doubles.
g_ivec2
Equivalent to GLSL ivec2, a vector of 2×g_ints.
g_ivec3
Equivalent to GLSL ivec3, a vector of 3×g_ints.
g_ivec4
Equivalent to GLSL ivec4, a vector of 4×g_ints.
g_mat2
Equivalent to GLSL mat2, a column-major 2×2 matrix of g_floats.
g_mat3
Equivalent to GLSL mat3x3, a column-major 3×3 matrix of g_floats.
g_mat4
Equivalent to GLSL mat4x4, a column-major 4×4 matrix of g_floats.
g_mat2x3
Equivalent to GLSL mat2x3, a column-major 2×3 matrix of g_floats.
g_mat2x4
Equivalent to GLSL mat2x4, a column-major 2×4 matrix of g_floats.
g_mat3x2
Equivalent to GLSL mat3x2, a column-major 3×2 matrix of g_floats.
g_mat3x4
Equivalent to GLSL mat3x4, a column-major 3×4 matrix of g_floats.
g_mat4x2
Equivalent to GLSL mat4x2, a column-major 4×2 matrix of g_floats.
g_mat4x3
Equivalent to GLSL mat4x3, a column-major 4×3 matrix of g_floats.
g_uvec2
Equivalent to GLSL ivec2, a vector of 2×g_uints.
g_uvec3
Equivalent to GLSL ivec3, a vector of 3×g_uints.
g_uvec4
Equivalent to GLSL ivec4, a vector of 4×g_uints.
g_vec2
Equivalent to GLSL vec2, a vector of 2×g_floats.
g_vec3
Equivalent to GLSL vec3, a vector of 3×g_floats.
g_vec4
Equivalent to GLSL vec4, a vector of 4×g_floats.
g_vertex2
A convenient 2D GLSL vertex representation with g_floats (position + UV).
g_vertex3
A convenient 3D GLSL vertex representation with g_floats (position + UV).

Type Aliases§

g_bool
⚙️ A GLSL boolean.
g_double
⚙️ A GLSL double-precision floating-point number.
g_float
⚙️ A GLSL single-precision floating-point number.
g_int
⚙️ A GLSL signed 32-bit integer.
g_uint
⚙️ A GLSL unsigned 32-bit integer.