Blender V5.3
union_t< T > Struct Template Reference

#include <GPU_shader_shared_utils.hh>

Public Member Functions

const T & operator() () const
T & operator() ()

Public Attributes

T data

Detailed Description

template<typename T>
struct union_t< T >

Wrapper type for members of unions in host shared structure. Passthrough implementation when compiled with host code. See gpu_shader_compat_cxx.hh for the C++ stub implementation. This implementation needs to have the correct base type and can safely cast to it.

Definition at line 126 of file GPU_shader_shared_utils.hh.

Member Function Documentation

◆ operator()() [1/2]

template<typename T>
T & union_t< T >::operator() ( )
inline

Definition at line 134 of file GPU_shader_shared_utils.hh.

References T.

◆ operator()() [2/2]

template<typename T>
const T & union_t< T >::operator() ( ) const
inline

Definition at line 129 of file GPU_shader_shared_utils.hh.

References T.

Member Data Documentation

◆ data

template<typename T>
T union_t< T >::data

Definition at line 127 of file GPU_shader_shared_utils.hh.


The documentation for this struct was generated from the following file: