C# Class Axiom.RenderSystems.DirectX9.D3DGpuProgram

Direct3D implementation of a few things common to low-level vertex & fragment programs
Inheritance: Axiom.Graphics.GpuProgram
ファイルを表示 Open project: mono-soc-2011/axiom

Protected Properties

Property Type Description
device SlimDX.Direct3D9.Device
externalMicrocode SlimDX.Direct3D9.ShaderBytecode

Private Properties

Property Type Description

Protected Methods

Method Description
D3DGpuProgram ( ResourceManager parent, string name, System.UInt64 handle, string group, bool isManual, IManualResourceLoader loader, SlimDX.Direct3D9 device ) : System
LoadFromMicrocode ( SlimDX.Direct3D9 microcode ) : void

Loads a shader object from the supplied microcode.

LoadFromSource ( ) : void

Loads a D3D shader from the assembler source.

dispose ( bool disposeManagedResources ) : void
load ( ) : void

Overridden to allow for loading microcode from external sources.

Method Details

D3DGpuProgram() protected method

protected D3DGpuProgram ( ResourceManager parent, string name, System.UInt64 handle, string group, bool isManual, IManualResourceLoader loader, SlimDX.Direct3D9 device ) : System
parent Axiom.Core.ResourceManager
name string
handle System.UInt64
group string
isManual bool
loader IManualResourceLoader
device SlimDX.Direct3D9
return System

LoadFromMicrocode() protected abstract method

Loads a shader object from the supplied microcode.
protected abstract LoadFromMicrocode ( SlimDX.Direct3D9 microcode ) : void
microcode SlimDX.Direct3D9 /// GraphicsStream that contains the assembler instructions for the program. ///
return void

LoadFromSource() protected method

Loads a D3D shader from the assembler source.
protected LoadFromSource ( ) : void
return void

dispose() protected method

protected dispose ( bool disposeManagedResources ) : void
disposeManagedResources bool
return void

load() protected method

Overridden to allow for loading microcode from external sources.
protected load ( ) : void
return void

Property Details

device protected_oe property

Reference to the current D3D device object.
protected Device,SlimDX.Direct3D9 device
return SlimDX.Direct3D9.Device

externalMicrocode protected_oe property

Microsode set externally, most likely from the HLSL compiler.
protected ShaderBytecode,SlimDX.Direct3D9 externalMicrocode
return SlimDX.Direct3D9.ShaderBytecode