C# Класс EffectEditor.EffectComponents.EffectComponent

An effect component - a function and information about return values
Наследование: IComparable
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
AvailableToPixelShader bool
AvailableToVertexShader bool
Code String
IsInline bool
MinimumPixelShaderProfile string
MinimumVertexShaderProfile string
Name String
Parameters List
ReturnType List

Открытые методы

Метод Описание
CompareTo ( object obj ) : int
EffectComponent ( ) : System

Creates an empty effect component

FromFile ( String fileName ) : EffectComponent

Loads an effect component from file

FunctionHelperString ( ) : String

Gets a string to help with coding

FunctionString ( ) : String

Gets the function as a string

OutputStruct ( ) : String

Gets the output structure definition as a string

Save ( String fileName ) : void

Saves the component to a file

ToString ( ) : string

Описание методов

CompareTo() публичный Метод

public CompareTo ( object obj ) : int
obj object
Результат int

EffectComponent() публичный Метод

Creates an empty effect component
public EffectComponent ( ) : System
Результат System

FromFile() публичный статический Метод

Loads an effect component from file
public static FromFile ( String fileName ) : EffectComponent
fileName String The name of the file
Результат EffectComponent

FunctionHelperString() публичный Метод

Gets a string to help with coding
public FunctionHelperString ( ) : String
Результат String

FunctionString() публичный Метод

Gets the function as a string
public FunctionString ( ) : String
Результат String

OutputStruct() публичный Метод

Gets the output structure definition as a string
public OutputStruct ( ) : String
Результат String

Save() публичный Метод

Saves the component to a file
public Save ( String fileName ) : void
fileName String The name of the file
Результат void

ToString() публичный Метод

public ToString ( ) : string
Результат string

Описание свойств

AvailableToPixelShader публичное свойство

Whether or not this component is available to a pixel shader
public bool AvailableToPixelShader
Результат bool

AvailableToVertexShader публичное свойство

Whether or not this component is available to a vertex shader
public bool AvailableToVertexShader
Результат bool

Code публичное свойство

The code for this component, without the function signature (this is auto-generated)
public String Code
Результат String

IsInline публичное свойство

Whether or not the function should be inline
public bool IsInline
Результат bool

MinimumPixelShaderProfile публичное свойство

The minimum pixel shader profile required to run this component (if available to pixel shaders)
public string MinimumPixelShaderProfile
Результат string

MinimumVertexShaderProfile публичное свойство

The minimum vertex shader profile required to run this component (if available to vertex shaders)
public string MinimumVertexShaderProfile
Результат string

Name публичное свойство

the name of this component Spaces are not allowed
public String Name
Результат String

Parameters публичное свойство

The parameters required by this component
public List Parameters
Результат List

ReturnType публичное свойство

The return type of this component (always a struct for simplicity on the backend)
public List ReturnType
Результат List