Inherits from NSObject
Declared in CC3ShaderSemantics.h

Overview

A CC3GLSLVariableConfiguration carries information for configuring a single CC3GLSLVariable.

An implementation of the CC3ShaderSemanticsDelegate protocol will typically contain a collection of instances of this class, or a subclass, to configure the variables associated with a CC3ShaderProgram.

This base implementation maps a variable name to a semantic value. Subclasses may add additional variable configuration information.

Tasks

Properties

name

The name of the variable.

@property (nonatomic, retain) NSString *name

Discussion

Typically this is the name of the variable as declared in the GLSL program source code.

Declared In

CC3ShaderSemantics.h

semantic

A symbolic constant indicating the semantic meaning of this variable. See the description of the same property on the CC3GLSLVariable class for a full description.

@property (nonatomic, assign) GLenum semantic

Discussion

The initial value of this property is kCC3SemanticNone.

Declared In

CC3ShaderSemantics.h

semanticIndex

When the semantic refers to an element of a structure that may have multiple instances, this property indicates to which instance this variable refers. See the description of the same property on the CC3GLSLVariable class for a full description.

@property (nonatomic, assign) GLuint semanticIndex

Discussion

The initial value of this property is zero.

Declared In

CC3ShaderSemantics.h