C# 클래스 Duality.Resources.ShaderVarInfo

Provides information about a shader variable.
파일 보기 프로젝트 열기: BraveSirAndrew/duality 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
arraySize int
glVarLoc int
name string
scope ShaderVarScope
type ShaderVarType

공개 메소드들

메소드 설명
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

메소드 상세

InitUniformData() 공개 메소드

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

SetupUniform() 공개 메소드

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

ToString() 공개 메소드

public ToString ( ) : string
리턴 string

프로퍼티 상세

arraySize 공개적으로 프로퍼티

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

glVarLoc 공개적으로 프로퍼티

OpenGL handle of the variables memory location.
public int glVarLoc
리턴 int

name 공개적으로 프로퍼티

The name of the variable, as declared in the shader.
public string name
리턴 string

scope 공개적으로 프로퍼티

The scope of the variable
public ShaderVarScope scope
리턴 ShaderVarScope

type 공개적으로 프로퍼티

The type of the variable
public ShaderVarType type
리턴 ShaderVarType