GLSL Struct 1.4.0
glslstruct
Loading...
Searching...
No Matches
glslstruct::scalar_layout_traits Struct Reference

Scalar Layout traits. More...

#include <scalar_layout_traits.hpp>

Public Types

using context_type = scalar_layout_context
 scalar layout context type

Static Public Member Functions

static size_t get_scalar_alignment (ValueType valueType, context_type &ctx) noexcept
 scalar layout scalar alignment
static size_t get_vec_alignment (ValueType valueType, size_t length, context_type &ctx) noexcept
 scalar layout vec alignment
static size_t get_array_alignment (size_t elemBaseAlignment, context_type &ctx) noexcept
 scalar layout array alignment
static size_t get_struct_alignment (const context_type &ctx) noexcept
 scalar layout struct alignment
static void after_add (size_t &currentOffset, size_t size, size_t alignment, context_type &ctx) noexcept
 scalar layout after_add action

Detailed Description

Scalar Layout traits.

Member Typedef Documentation

◆ context_type

Member Function Documentation

◆ after_add()

void scalar_layout_traits::after_add ( size_t & currentOffset,
size_t size,
size_t alignment,
context_type & ctx )
staticnoexcept

scalar layout after_add action

◆ get_array_alignment()

size_t scalar_layout_traits::get_array_alignment ( size_t elemBaseAlignment,
context_type & ctx )
staticnoexcept

scalar layout array alignment

◆ get_scalar_alignment()

size_t scalar_layout_traits::get_scalar_alignment ( ValueType valueType,
context_type & ctx )
staticnoexcept

scalar layout scalar alignment

◆ get_struct_alignment()

size_t scalar_layout_traits::get_struct_alignment ( const context_type & ctx)
staticnoexcept

scalar layout struct alignment

◆ get_vec_alignment()

size_t scalar_layout_traits::get_vec_alignment ( ValueType valueType,
size_t length,
context_type & ctx )
staticnoexcept

scalar layout vec alignment