GLSL Struct 1.4.0
glslstruct
Loading...
Searching...
No Matches
glslstruct::utils::layout_with_context< Traits > Struct Template Reference

Context container for layout. More...

#include <base_layout.hpp>

Collaboration diagram for glslstruct::utils::layout_with_context< Traits >:
[legend]

Public Types

using context_type = _GLSL_STRUCT_TYPENAME17 Traits::context_type
 context type

Public Member Functions

_GLSL_STRUCT_CONSTEXPR17 layout_with_context () noexcept _GLSL_STRUCT_REQUIRES(std
 default constructor
_GLSL_STRUCT_CONSTEXPR17 layout_with_context (const context_type &ctx)
 constructor with context value

Protected Attributes

context_type _context
 context value

Detailed Description

template<class Traits>
struct glslstruct::utils::layout_with_context< Traits >

Context container for layout.

Template Parameters
Traitslayout traits type

Member Typedef Documentation

◆ context_type

template<class Traits>
using glslstruct::utils::layout_with_context< Traits >::context_type = _GLSL_STRUCT_TYPENAME17 Traits::context_type

context type

Constructor & Destructor Documentation

◆ layout_with_context() [1/2]

template<class Traits>
_GLSL_STRUCT_CONSTEXPR17 glslstruct::utils::layout_with_context< Traits >::layout_with_context ( )
inlinenoexcept

default constructor

◆ layout_with_context() [2/2]

template<class Traits>
_GLSL_STRUCT_CONSTEXPR17 glslstruct::utils::layout_with_context< Traits >::layout_with_context ( const context_type & ctx)
inlineexplicit

constructor with context value

Member Data Documentation

◆ _context

template<class Traits>
context_type glslstruct::utils::layout_with_context< Traits >::_context
protected

context value