C# 클래스 Axiom.Graphics.GpuProgramManager

Summary description for GpuProgramManager.
상속: Axiom.Core.ResourceManager
파일 보기 프로젝트 열기: WolfgangSt/axiom 1 사용 예제들

공개 메소드들

메소드 설명
Create ( string name, string group, GpuProgramType type, string syntaxCode ) : Axiom.Graphics.GpuProgram

Creates a new GpuProgram.

Create ( string name, string group, GpuProgramType type, string syntaxCode, bool isManual, IManualResourceLoader loader ) : Axiom.Graphics.GpuProgram

Creates a new GpuProgram.

CreateParameters ( ) : GpuProgramParameters

Creates a new GpuProgramParameters instance which can be used to bind parameters to your programs.

Program parameters can be shared between multiple programs if you wish.

CreateProgram ( string name, string group, string fileName, GpuProgramType type, string syntaxCode ) : Axiom.Graphics.GpuProgram

Create a new, unloaded GpuProgram from a file of assembly.

Use this method in preference to the 'load' methods if you wish to define a GpuProgram, but not load it yet; useful for saving memory.

CreateProgramFromString ( string name, string group, string source, GpuProgramType type, string syntaxCode ) : Axiom.Graphics.GpuProgram

Create a new, unloaded GpuProgram from a string of assembly code.

Use this method in preference to the 'load' methods if you wish to define a GpuProgram, but not load it yet; useful for saving memory.

GetByName ( string name ) : Axiom.Graphics.GpuProgram

Gets a GpuProgram with the specified name.

IsSyntaxSupported ( string syntaxCode ) : bool

Returns whether a given syntax code (e.g. "ps_1_3", "fp20", "arbvp1") is supported.

Load ( string name, string group, string fileName, GpuProgramType type, string syntaxCode ) : Axiom.Graphics.GpuProgram

Loads a GPU program from a file of assembly.

This method creates a new program of the type specified as the second parameter. As with all types of ResourceManager, this class will search for the file in all resource locations it has been configured to look in.

LoadFromString ( string name, string group, string source, GpuProgramType type, string syntaxCode ) : Axiom.Graphics.GpuProgram

Loads a GPU program from a string containing the assembly source.

This method creates a new program of the type specified as the second parameter. As with all types of ResourceManager, this class will search for the file in all resource locations it has been configured to look in.

LoadMicrocodeCache ( System stream ) : void
SaveMicrocodeCache ( System stream ) : void

보호된 메소드들

메소드 설명
GpuProgramManager ( ) : System.Collections.Generic

Internal constructor. This class cannot be instantiated externally.

Protected internal because this singleton will actually hold the instance of a subclass created by a render system plugin.

_create ( string name, System.UInt64 handle, string group, bool isManual, IManualResourceLoader loader, GpuProgramType type, string syntaxCode ) : Axiom.Core.Resource

Internal method for created programs, must be implemented by subclasses

dispose ( bool disposeManagedResources ) : void

Called when the engine is shutting down.

메소드 상세

Create() 공개 메소드

Creates a new GpuProgram.
public Create ( string name, string group, GpuProgramType type, string syntaxCode ) : Axiom.Graphics.GpuProgram
name string /// Name of the program to create. ///
group string
type GpuProgramType /// Type of the program to create, i.e. vertex or fragment. ///
syntaxCode string /// Syntax of the program, i.e. vs_1_1, arbvp1, etc. ///
리턴 Axiom.Graphics.GpuProgram

Create() 공개 메소드

Creates a new GpuProgram.
public Create ( string name, string group, GpuProgramType type, string syntaxCode, bool isManual, IManualResourceLoader loader ) : Axiom.Graphics.GpuProgram
name string /// Name of the program to create. ///
group string
type GpuProgramType /// Type of the program to create, i.e. vertex or fragment. ///
syntaxCode string /// Syntax of the program, i.e. vs_1_1, arbvp1, etc. ///
isManual bool
loader IManualResourceLoader
리턴 Axiom.Graphics.GpuProgram

CreateParameters() 공개 메소드

Creates a new GpuProgramParameters instance which can be used to bind parameters to your programs.
Program parameters can be shared between multiple programs if you wish.
public CreateParameters ( ) : GpuProgramParameters
리턴 GpuProgramParameters

CreateProgram() 공개 메소드

Create a new, unloaded GpuProgram from a file of assembly.
Use this method in preference to the 'load' methods if you wish to define a GpuProgram, but not load it yet; useful for saving memory.
public CreateProgram ( string name, string group, string fileName, GpuProgramType type, string syntaxCode ) : Axiom.Graphics.GpuProgram
name string /// The name of the program. ///
group string
fileName string /// The file to load. ///
type GpuProgramType
syntaxCode string /// Name of the syntax to use for the program, i.e. vs_1_1, arbvp1, etc. ///
리턴 Axiom.Graphics.GpuProgram

CreateProgramFromString() 공개 메소드

Create a new, unloaded GpuProgram from a string of assembly code.
Use this method in preference to the 'load' methods if you wish to define a GpuProgram, but not load it yet; useful for saving memory.
public CreateProgramFromString ( string name, string group, string source, GpuProgramType type, string syntaxCode ) : Axiom.Graphics.GpuProgram
name string /// The name of the program. ///
group string
source string /// The asm source of the program to create. ///
type GpuProgramType
syntaxCode string /// Name of the syntax to use for the program, i.e. vs_1_1, arbvp1, etc. ///
리턴 Axiom.Graphics.GpuProgram

GetByName() 공개 메소드

Gets a GpuProgram with the specified name.
public GetByName ( string name ) : Axiom.Graphics.GpuProgram
name string
리턴 Axiom.Graphics.GpuProgram

GpuProgramManager() 보호된 메소드

Internal constructor. This class cannot be instantiated externally.
Protected internal because this singleton will actually hold the instance of a subclass created by a render system plugin.
protected GpuProgramManager ( ) : System.Collections.Generic
리턴 System.Collections.Generic

IsSyntaxSupported() 공개 메소드

Returns whether a given syntax code (e.g. "ps_1_3", "fp20", "arbvp1") is supported.
public IsSyntaxSupported ( string syntaxCode ) : bool
syntaxCode string
리턴 bool

Load() 공개 메소드

Loads a GPU program from a file of assembly.
This method creates a new program of the type specified as the second parameter. As with all types of ResourceManager, this class will search for the file in all resource locations it has been configured to look in.
public Load ( string name, string group, string fileName, GpuProgramType type, string syntaxCode ) : Axiom.Graphics.GpuProgram
name string /// Identifying name of the program to load. ///
group string
fileName string /// The file to load. ///
type GpuProgramType /// Type of program to create. ///
syntaxCode string /// Syntax code of the program, i.e. vs_1_1, arbvp1, etc. ///
리턴 Axiom.Graphics.GpuProgram

LoadFromString() 공개 메소드

Loads a GPU program from a string containing the assembly source.
This method creates a new program of the type specified as the second parameter. As with all types of ResourceManager, this class will search for the file in all resource locations it has been configured to look in.
public LoadFromString ( string name, string group, string source, GpuProgramType type, string syntaxCode ) : Axiom.Graphics.GpuProgram
name string /// Name used to identify this program. ///
group string
source string /// Source code of the program to load. ///
type GpuProgramType /// Type of program to create. ///
syntaxCode string /// Syntax code of the program, i.e. vs_1_1, arbvp1, etc. ///
리턴 Axiom.Graphics.GpuProgram

LoadMicrocodeCache() 공개 메소드

public LoadMicrocodeCache ( System stream ) : void
stream System
리턴 void

SaveMicrocodeCache() 공개 메소드

public SaveMicrocodeCache ( System stream ) : void
stream System
리턴 void

_create() 보호된 추상적인 메소드

Internal method for created programs, must be implemented by subclasses
protected abstract _create ( string name, System.UInt64 handle, string group, bool isManual, IManualResourceLoader loader, GpuProgramType type, string syntaxCode ) : Axiom.Core.Resource
name string Name of the program to create.
handle System.UInt64 Handle of the program
group string resource group of the program
isManual bool is this program manually created
loader IManualResourceLoader The ManualResourceLoader if this program is manually loaded
type GpuProgramType Type of the program to create, i.e. vertex or fragment.
syntaxCode string Syntax of the program, i.e. vs_1_1, arbvp1, etc.
리턴 Axiom.Core.Resource

dispose() 보호된 메소드

Called when the engine is shutting down.
protected dispose ( bool disposeManagedResources ) : void
disposeManagedResources bool
리턴 void