Module crevice::std140

source ·
Expand description

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

Structs§

  • Corresponds to a GLSL bvec2 in std140 layout.
  • Corresponds to a GLSL bvec3 in std140 layout.
  • Corresponds to a GLSL bvec4 in std140 layout.
  • GLSL’s bool type.
  • Corresponds to a GLSL dmat2 in std140 layout.
  • Corresponds to a GLSL dmat3 in std140 layout.
  • Corresponds to a GLSL dmat3 in std140 layout.
  • Corresponds to a GLSL dvec2 in std140 layout.
  • Corresponds to a GLSL dvec3 in std140 layout.
  • Corresponds to a GLSL dvec4 in std140 layout.
  • Wrapper type that aligns the inner type to at least 256 bytes.
  • std140 variant of DynamicUniform.
  • Corresponds to a GLSL ivec2 in std140 layout.
  • Corresponds to a GLSL ivec3 in std140 layout.
  • Corresponds to a GLSL ivec4 in std140 layout.
  • Corresponds to a GLSL mat2 in std140 layout.
  • Corresponds to a GLSL mat3 in std140 layout.
  • Corresponds to a GLSL mat4 in std140 layout.
  • Type that computes the buffer size needed by a series of std140 types laid out.
  • Corresponds to a GLSL uvec2 in std140 layout.
  • Corresponds to a GLSL uvec3 in std140 layout.
  • Corresponds to a GLSL uvec4 in std140 layout.
  • Corresponds to a GLSL vec2 in std140 layout.
  • Corresponds to a GLSL vec3 in std140 layout.
  • Corresponds to a GLSL vec4 in std140 layout.
  • Type that enables writing correctly aligned std140 values to a buffer.

Traits§

  • Trait implemented for all types that can be turned into std140 values.
  • Trait implemented for all std140 primitives. Generally should not be implemented outside this crate.
  • Trait implemented for all types that can be written into a buffer as std140 bytes. This type is more general than AsStd140: all AsStd140 types implement WriteStd140, but not the other way around.

Derive Macros§