diff --git a/src/std140/primitives.rs b/src/std140/primitives.rs index b2f6665..18f7a65 100644 --- a/src/std140/primitives.rs +++ b/src/std140/primitives.rs @@ -47,6 +47,18 @@ vectors! { #[doc = "Corresponds to a GLSL `vec3` in std140 layout."] align(16) Vec3(x, y, z) #[doc = "Corresponds to a GLSL `vec4` in std140 layout."] align(16) Vec4(x, y, z, w) + #[doc = "Corresponds to a GLSL `ivec2` in std140 layout."] align(8) IVec2(x, y) + #[doc = "Corresponds to a GLSL `ivec3` in std140 layout."] align(16) IVec3(x, y, z) + #[doc = "Corresponds to a GLSL `ivec4` in std140 layout."] align(16) IVec4(x, y, z, w) + + #[doc = "Corresponds to a GLSL `uvec2` in std140 layout."] align(8) UVec2(x, y) + #[doc = "Corresponds to a GLSL `uvec3` in std140 layout."] align(16) UVec3(x, y, z) + #[doc = "Corresponds to a GLSL `uvec4` in std140 layout."] align(16) UVec4(x, y, z, w) + + #[doc = "Corresponds to a GLSL `bvec2` in std140 layout."] align(8) BVec2(x, y) + #[doc = "Corresponds to a GLSL `bvec3` in std140 layout."] align(16) BVec3(x, y, z) + #[doc = "Corresponds to a GLSL `bvec4` in std140 layout."] align(16) BVec4(x, y, z, w) + #[doc = "Corresponds to a GLSL `dvec2` in std140 layout."] align(16) DVec2(x, y) #[doc = "Corresponds to a GLSL `dvec3` in std140 layout."] align(32) DVec3(x, y, z) #[doc = "Corresponds to a GLSL `dvec4` in std140 layout."] align(32) DVec4(x, y, z, w) diff --git a/src/std430/primitives.rs b/src/std430/primitives.rs index fe646e9..35ae651 100644 --- a/src/std430/primitives.rs +++ b/src/std430/primitives.rs @@ -47,6 +47,18 @@ vectors! { #[doc = "Corresponds to a GLSL `vec3` in std430 layout."] align(16) Vec3(x, y, z) #[doc = "Corresponds to a GLSL `vec4` in std430 layout."] align(16) Vec4(x, y, z, w) + #[doc = "Corresponds to a GLSL `ivec2` in std140 layout."] align(8) IVec2(x, y) + #[doc = "Corresponds to a GLSL `ivec3` in std140 layout."] align(16) IVec3(x, y, z) + #[doc = "Corresponds to a GLSL `ivec4` in std140 layout."] align(16) IVec4(x, y, z, w) + + #[doc = "Corresponds to a GLSL `uvec2` in std140 layout."] align(8) UVec2(x, y) + #[doc = "Corresponds to a GLSL `uvec3` in std140 layout."] align(16) UVec3(x, y, z) + #[doc = "Corresponds to a GLSL `uvec4` in std140 layout."] align(16) UVec4(x, y, z, w) + + #[doc = "Corresponds to a GLSL `bvec2` in std140 layout."] align(8) BVec2(x, y) + #[doc = "Corresponds to a GLSL `bvec3` in std140 layout."] align(16) BVec3(x, y, z) + #[doc = "Corresponds to a GLSL `bvec4` in std140 layout."] align(16) BVec4(x, y, z, w) + #[doc = "Corresponds to a GLSL `dvec2` in std430 layout."] align(16) DVec2(x, y) #[doc = "Corresponds to a GLSL `dvec3` in std430 layout."] align(32) DVec3(x, y, z) #[doc = "Corresponds to a GLSL `dvec4` in std430 layout."] align(32) DVec4(x, y, z, w)