C# Class Axiom.RenderSystems.Xna.XnaGpuProgram

Xna implementation of a few things common to low-level vertex & fragment programs
Inheritance: Axiom.Graphics.GpuProgram
Show file Open project: WolfgangSt/axiom

Protected Properties

Property Type Description
device Microsoft.Xna.Framework.Graphics.GraphicsDevice
shaderCode byte[]

Private Properties

Property Type Description

Public Methods

Method Description
XnaGpuProgram ( ResourceManager parent, string name, System.UInt64 handle, string group, bool isManual, IManualResourceLoader loader, Microsoft.Xna.Framework.Graphics device ) : System

Protected Methods

Method Description
LoadFromShaderCode ( ) : void

Loads a shader object from the supplied shader code.

LoadFromSource ( ) : void

Loads a Xna shader from the assembler source.

load ( ) : void

Overridden to allow for loading microcode from external sources.

Method Details

LoadFromShaderCode() protected abstract method

Loads a shader object from the supplied shader code.
protected abstract LoadFromShaderCode ( ) : void
return void

LoadFromSource() protected method

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

XnaGpuProgram() public method

public XnaGpuProgram ( ResourceManager parent, string name, System.UInt64 handle, string group, bool isManual, IManualResourceLoader loader, Microsoft.Xna.Framework.Graphics device ) : System
parent Axiom.Core.ResourceManager
name string
handle System.UInt64
group string
isManual bool
loader IManualResourceLoader
device Microsoft.Xna.Framework.Graphics
return System

load() protected method

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

Property Details

device protected property

Reference to the current XNA device object.
protected GraphicsDevice,Microsoft.Xna.Framework.Graphics device
return Microsoft.Xna.Framework.Graphics.GraphicsDevice

shaderCode protected property

ShaderCode set externally, most likely from the HLSL compiler.
protected byte[] shaderCode
return byte[]