C# Class Axiom.RenderSystems.DirectX9.HLSL.HLSLProgram

Summary description for HLSLProgram.
Inheritance: Axiom.Graphics.HighLevelGpuProgram
Afficher le fichier Open project: WolfgangSt/axiom

Protected Properties

Свойство Type Description
columnMajorMatrices bool
entry string
microcode SlimDX.Direct3D9.ShaderBytecode
optimizationLevel OptimizationLevel
parametersMap GpuProgramParameters.GpuConstantDefinitionMap
preprocessorDefines string
target string

Méthodes publiques

Méthode Description
CreateParameters ( ) : GpuProgramParameters

Creates a new parameters object compatible with this program definition.

Unlike low-level assembly programs, parameters objects are specific to the program and therefore must be created from it rather than by the HighLevelGpuProgramManager. This method creates a new instance of a parameters object containing the definition of the parameters this program understands.

HLSLProgram ( ResourceManager parent, string name, System.UInt64 handle, string group, bool isManual, IManualResourceLoader loader ) : System

Creates a new instance of HLSLProgram

SetParam ( string name, string val ) : bool

Sets a param for this HLSL program.

Méthodes protégées

Méthode Description
dispose ( bool disposeManagedResources ) : void

Private Methods

Méthode Description
BuildConstantDefinitions ( ) : void
CompileMicrocode ( ) : void
CreateLowLevelImpl ( ) : void
LoadFromSource ( ) : void
PopulateDef ( ConstantDescription d3DDesc, GpuProgramParameters def ) : void
ProcessParamElement ( ConstantTable constantTable, EffectHandle parent, string prefix, int index ) : void
UnloadHighLevelImpl ( ) : void
buildDefines ( string defines ) : List

Method Details

CreateParameters() public méthode

Creates a new parameters object compatible with this program definition.
Unlike low-level assembly programs, parameters objects are specific to the program and therefore must be created from it rather than by the HighLevelGpuProgramManager. This method creates a new instance of a parameters object containing the definition of the parameters this program understands.
public CreateParameters ( ) : GpuProgramParameters
Résultat Axiom.Graphics.GpuProgramParameters

HLSLProgram() public méthode

Creates a new instance of HLSLProgram
public HLSLProgram ( ResourceManager parent, string name, System.UInt64 handle, string group, bool isManual, IManualResourceLoader loader ) : System
parent Axiom.Core.ResourceManager the ResourceManager that owns this resource
name string Name of the program
handle System.UInt64 The resource id of the program
group string the resource group
isManual bool is the program manually loaded?
loader IManualResourceLoader the loader responsible for this program
Résultat System

SetParam() public méthode

Sets a param for this HLSL program.
public SetParam ( string name, string val ) : bool
name string
val string
Résultat bool

dispose() protected méthode

protected dispose ( bool disposeManagedResources ) : void
disposeManagedResources bool
Résultat void

Property Details

columnMajorMatrices protected_oe property

determines which packing order to use for matrices
protected bool columnMajorMatrices
Résultat bool

entry protected_oe property

Entry point to compile from the program.
protected string entry
Résultat string

microcode protected_oe property

Holds the low level program instructions after the compile.
protected ShaderBytecode,SlimDX.Direct3D9 microcode
Résultat SlimDX.Direct3D9.ShaderBytecode

optimizationLevel protected_oe property

the optimization level to use.
protected OptimizationLevel optimizationLevel
Résultat OptimizationLevel

parametersMap protected_oe property

protected GpuProgramParameters.GpuConstantDefinitionMap parametersMap
Résultat GpuProgramParameters.GpuConstantDefinitionMap

preprocessorDefines protected_oe property

the preprocessor definitions to use to compile the program
protected string preprocessorDefines
Résultat string

target protected_oe property

Shader profile to target for the compile (i.e. vs1.1, etc).
protected string target
Résultat string