Information about a single active program resource. More...
#include </home/chochlik/devel/oglplus/include/oglplus/program_resource.hpp>
Public Member Functions | |
GLint | GetIntParam (ProgramResourceProperty property) const |
Gets the value of a single property (as an GLint) More... | |
bool | GetBoolParam (ProgramResourceProperty property) const |
Gets the value of a single property (as a boolean value) More... | |
bool | Has (ProgramResourceProperty property) const |
Checks if this resource has the specified property. More... | |
ProgramInterface | Interface (void) const |
Returns the interface of the resource. | |
const String & | Name (void) const |
Returns the name of the resource. More... | |
GLuint | Index (void) const |
Returns the index of the resource. | |
bool | HasType (void) const |
Returns true if the resource has a type. | |
SLDataType | Type (void) const |
Returns the data type of the resource (if applicable) More... | |
GLint | Location (void) const |
Returns the program resource location (if applicable) More... | |
GLint | LocationIndex (void) const |
Returns the program resource location index (if applicable) More... | |
GLint | ArraySize (void) const |
Returns the array size of the resource (if applicable) More... | |
bool | ReferencedBy (ShaderType shader_type) const |
Returns true if the resource is_referenced by shader (if applicable) More... | |
bool | IsPerPatch (void) const |
Returns true if the resource is per-patch (if applicable) More... | |
Information about a single active program resource.
GLint oglplus::ProgramResource::ArraySize | ( | void | ) | const |
Returns the array size of the resource (if applicable)
GL_ARRAY_SIZE
bool oglplus::ProgramResource::GetBoolParam | ( | ProgramResourceProperty | property | ) | const |
Gets the value of a single property (as a boolean value)
GLint oglplus::ProgramResource::GetIntParam | ( | ProgramResourceProperty | property | ) | const |
Gets the value of a single property (as an GLint)
bool oglplus::ProgramResource::Has | ( | ProgramResourceProperty | property | ) | const |
Checks if this resource has the specified property.
bool oglplus::ProgramResource::IsPerPatch | ( | void | ) | const |
Returns true if the resource is per-patch (if applicable)
GL_IS_PER_PATCH
GLint oglplus::ProgramResource::Location | ( | void | ) | const |
Returns the program resource location (if applicable)
GL_LOCATION
GLint oglplus::ProgramResource::LocationIndex | ( | void | ) | const |
Returns the program resource location index (if applicable)
GL_LOCATION_INDEX
const String& oglplus::ProgramResource::Name | ( | void | ) | const |
Returns the name of the resource.
bool oglplus::ProgramResource::ReferencedBy | ( | ShaderType | shader_type | ) | const |
Returns true if the resource is_referenced by shader (if applicable)
GL_REFERENCED_BY_VERTEX_SHADER
GL_REFERENCED_BY_TESS_CONTROL_SHADER
GL_REFERENCED_BY_TESS_EVALUATION_SHADER
GL_REFERENCED_BY_GEOMETRY_SHADER
GL_REFERENCED_BY_FRAGMENT_SHADER
GL_REFERENCED_BY_CONTROL_SHADER
SLDataType oglplus::ProgramResource::Type | ( | void | ) | const |
Returns the data type of the resource (if applicable)
GL_TYPE