Symphony Of Empires
Eng3D::GLSL::Type Class Reference

#include <glsl_trans.hpp>

Public Types

enum class  PrimitiveType {
  NONE , INT , FLOAT , BOOL ,
  VEC2 , VEC3 , VEC4 , MAT4 ,
  SAMPLER2D , SAMPLER2DARRAY , SAMPLER3D , SAMPLER3DARRAY
}
 Since GLSL doesn't allow complex structures we can rely on a simple table of primitives. More...
 

Public Attributes

std::string name
 
Eng3D::GLSL::Type::PrimitiveType primitive_type = Eng3D::GLSL::Type::PrimitiveType::NONE
 

Detailed Description

Definition at line 76 of file glsl_trans.hpp.

Member Enumeration Documentation

◆ PrimitiveType

Since GLSL doesn't allow complex structures we can rely on a simple table of primitives.

Enumerator
NONE 
INT 
FLOAT 
BOOL 
VEC2 
VEC3 
VEC4 
MAT4 
SAMPLER2D 
SAMPLER2DARRAY 
SAMPLER3D 
SAMPLER3DARRAY 

Definition at line 80 of file glsl_trans.hpp.

Member Data Documentation

◆ name

std::string Eng3D::GLSL::Type::name

Definition at line 91 of file glsl_trans.hpp.

◆ primitive_type

Definition at line 92 of file glsl_trans.hpp.


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