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

Std430 Layout traits. More...

#include <std430_layout_traits.hpp>

Public Types

using context_type = std430_layout_context
 std430 layout context type

Static Public Member Functions

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

Detailed Description

Std430 Layout traits.

Member Typedef Documentation

◆ context_type

Member Function Documentation

◆ after_add()

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

std430 layout after_add action

◆ after_add_struct()

void std430_layout_traits::after_add_struct ( size_t & currentOffset,
size_t size,
size_t alignment,
context_type & ctx )
staticnoexcept

std430 layout after_add_struct action

◆ before_add()

void std430_layout_traits::before_add ( size_t & currentOffset,
context_type & ctx )
staticnoexcept

std430 layout before_add action

◆ get_array_alignment()

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

std430 layout array alignment

◆ get_scalar_alignment()

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

std430 layout scalar alignment

◆ get_struct_alignment()

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

std430 layout struct alignment

◆ get_vec_alignment()

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

std430 layout vec alignment