C# Класс Duality.Resources.AbstractShader

Наследование: Resource
Показать файл Открыть проект Примеры использования класса

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