molecular
Public Types | Public Member Functions | Public Attributes | List of all members
molecular::programgenerator::ProgramGenerator::VariableInfo Struct Reference

Information about a variable. More...

#include <ProgramGenerator.h>

Public Types

enum  Usage { Usage::kUniformOrLocal, Usage::kAttribute, Usage::kOutput }
 

Public Member Functions

 VariableInfo ()=default
 
 VariableInfo (const char *name, const char *type, bool array=false, Usage usage=Usage::kUniformOrLocal)
 

Public Attributes

std::string name
 
std::string type
 
Usage usage = Usage::kUniformOrLocal
 
bool array = false
 

Detailed Description

Information about a variable.

Member Enumeration Documentation

Enumerator
kUniformOrLocal 
kAttribute 
kOutput 

Constructor & Destructor Documentation

molecular::programgenerator::ProgramGenerator::VariableInfo::VariableInfo ( )
default
molecular::programgenerator::ProgramGenerator::VariableInfo::VariableInfo ( const char *  name,
const char *  type,
bool  array = false,
Usage  usage = Usage::kUniformOrLocal 
)
inline

Member Data Documentation

bool molecular::programgenerator::ProgramGenerator::VariableInfo::array = false
std::string molecular::programgenerator::ProgramGenerator::VariableInfo::name
std::string molecular::programgenerator::ProgramGenerator::VariableInfo::type
Usage molecular::programgenerator::ProgramGenerator::VariableInfo::usage = Usage::kUniformOrLocal

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