C# 클래스 Axiom.CgPrograms.CgProgram

Specialization of HighLevelGpuProgram to provide support for nVidia's Cg language.
Cg can be used to compile common, high-level, C-like code down to assembler language for both GL and Direct3D, for multiple graphics cards. You must supply a list of profiles which your program must support using SetProfiles() before the program is loaded in order for this to work. The program will then negotiate with the renderer to compile the appropriate program for the API and graphics card capabilities.
상속: Axiom.Graphics.HighLevelGpuProgram
파일 보기 프로젝트 열기: mono-soc-2011/axiom

보호된 프로퍼티들

프로퍼티 타입 설명
cgContext System.IntPtr
cgProgram System.IntPtr
entry string
profiles string[]
selectedCgProfile int
selectedProfile string

공개 메소드들

메소드 설명
CgProgram ( ResourceManager parent, string name, ulong handle, string group, bool isManual, IManualResourceLoader loader, IntPtr context ) : System

Constructor.

SetParam ( string name, string val ) : bool

Method for passing parameters into the CgProgram.

Touch ( ) : void

Only bother with supported programs.

보호된 메소드들

메소드 설명
BuildConstantDefinitions ( ) : void
CreateLowLevelImpl ( ) : void

Create as assembler program from the compiled source supplied by the Cg compiler.

LoadFromSource ( ) : void

PopulateParameterNames ( GpuProgramParameters parms ) : void

SelectProfile ( ) : void

Internal method which works out which profile to use for this program

UnloadImpl ( ) : void

Unloads the Cg program.

메소드 상세

BuildConstantDefinitions() 보호된 메소드

protected BuildConstantDefinitions ( ) : void
리턴 void

CgProgram() 공개 메소드

Constructor.
public CgProgram ( ResourceManager parent, string name, ulong handle, string group, bool isManual, IManualResourceLoader loader, IntPtr context ) : System
parent Axiom.Core.ResourceManager
name string Name of this program.
handle ulong
group string
isManual bool
loader IManualResourceLoader
context System.IntPtr CG context id.
리턴 System

CreateLowLevelImpl() 보호된 메소드

Create as assembler program from the compiled source supplied by the Cg compiler.
protected CreateLowLevelImpl ( ) : void
리턴 void

LoadFromSource() 보호된 메소드

protected LoadFromSource ( ) : void
리턴 void

PopulateParameterNames() 보호된 메소드

protected PopulateParameterNames ( GpuProgramParameters parms ) : void
parms Axiom.Graphics.GpuProgramParameters
리턴 void

SelectProfile() 보호된 메소드

Internal method which works out which profile to use for this program
protected SelectProfile ( ) : void
리턴 void

SetParam() 공개 메소드

Method for passing parameters into the CgProgram.
public SetParam ( string name, string val ) : bool
name string /// Param name. ///
val string /// Param value. ///
리턴 bool

Touch() 공개 메소드

Only bother with supported programs.
public Touch ( ) : void
리턴 void

UnloadImpl() 보호된 메소드

Unloads the Cg program.
protected UnloadImpl ( ) : void
리턴 void

프로퍼티 상세

cgContext 보호되어 있는 프로퍼티

Current Cg context id.
protected IntPtr,System cgContext
리턴 System.IntPtr

cgProgram 보호되어 있는 프로퍼티

Current Cg program id.
protected IntPtr,System cgProgram
리턴 System.IntPtr

entry 보호되어 있는 프로퍼티

Entry point of the Cg program.
protected string entry
리턴 string

profiles 보호되어 있는 프로퍼티

List of requested profiles for this program.
protected string[] profiles
리턴 string[]

selectedCgProfile 보호되어 있는 프로퍼티

protected int selectedCgProfile
리턴 int

selectedProfile 보호되어 있는 프로퍼티

Chosen profile for this program.
protected string selectedProfile
리턴 string