C# Class Duality.Resources.ShaderVarInfo

Provides information about a shader variable.
Afficher le fichier Open project: BraveSirAndrew/duality Class Usage Examples

Méthodes publiques

Свойство Type Description
arraySize int
glVarLoc int
name string
scope ShaderVarScope
type ShaderVarType

Méthodes publiques

Méthode Description
InitUniformData ( ) : float[]

Initializes a uniform dataset based on the type of the represented variable.

SetupUniform ( float data ) : void

Assigns the specified data to the OpenGL uniform represented by this ShaderVarInfo.

ToString ( ) : string

Method Details

InitUniformData() public méthode

Initializes a uniform dataset based on the type of the represented variable.
public InitUniformData ( ) : float[]
Résultat float[]

SetupUniform() public méthode

Assigns the specified data to the OpenGL uniform represented by this ShaderVarInfo.
public SetupUniform ( float data ) : void
data float Incoming uniform data.
Résultat void

ToString() public méthode

public ToString ( ) : string
Résultat string

Property Details

arraySize public_oe property

If the variable is an array, this is its length. Arrays are only supported for ShaderVarType.Int and ShaderVarType.Float.
public int arraySize
Résultat int

glVarLoc public_oe property

OpenGL handle of the variables memory location.
public int glVarLoc
Résultat int

name public_oe property

The name of the variable, as declared in the shader.
public string name
Résultat string

scope public_oe property

The scope of the variable
public ShaderVarScope scope
Résultat ShaderVarScope

type public_oe property

The type of the variable
public ShaderVarType type
Résultat ShaderVarType