C# 클래스 Duality.Resources.AbstractShader

상속: Resource
파일 보기 프로젝트 열기: BraveSirAndrew/duality 1 사용 예제들

Private Properties

프로퍼티 타입 설명
ExtractPlatformShader string

공개 메소드들

메소드 설명
Compile ( ) : void

Compiles the shader. This is done automatically when loading the shader or attaching it to a Duality.Resources.ShaderProgram.

LoadSource ( Stream stream ) : void

Loads new shader source code from the specified System.IO.Stream.

LoadSource ( string filePath = null ) : void

Loads new shader source code from the specified file.

SaveSource ( string filePath = null ) : void

Saves the current shader source code to the specified file.

보호된 메소드들

메소드 설명
AbstractShader ( ) : System
AbstractShader ( string sourceCode ) : System
OnCopyTo ( Resource r, Duality provider ) : void
OnDisposing ( bool manually ) : void
OnLoaded ( ) : void

비공개 메소드들

메소드 설명
ExtractPlatformShader ( string allVersions, string platform ) : string

메소드 상세

AbstractShader() 보호된 메소드

protected AbstractShader ( ) : System
리턴 System

AbstractShader() 보호된 메소드

protected AbstractShader ( string sourceCode ) : System
sourceCode string
리턴 System

Compile() 공개 메소드

Compiles the shader. This is done automatically when loading the shader or attaching it to a Duality.Resources.ShaderProgram.
public Compile ( ) : void
리턴 void

LoadSource() 공개 메소드

Loads new shader source code from the specified System.IO.Stream.
public LoadSource ( Stream stream ) : void
stream Stream The to read the source code from.
리턴 void

LoadSource() 공개 메소드

Loads new shader source code from the specified file.
public LoadSource ( string filePath = null ) : void
filePath string The path of the file to read the source code from.
리턴 void

OnCopyTo() 보호된 메소드

protected OnCopyTo ( Resource r, Duality provider ) : void
r Resource
provider Duality
리턴 void

OnDisposing() 보호된 메소드

protected OnDisposing ( bool manually ) : void
manually bool
리턴 void

OnLoaded() 보호된 메소드

protected OnLoaded ( ) : void
리턴 void

SaveSource() 공개 메소드

Saves the current shader source code to the specified file.
public SaveSource ( string filePath = null ) : void
filePath string The path of the file to write the source code to.
리턴 void