Table of Contents

Class GenericMaterialCore

Namespace
HelixToolkit.SharpDX.Model
Assembly
HelixToolkit.SharpDX.dll
[DataContract]
public abstract class GenericMaterialCore : MaterialCore, IMaterial, INotifyPropertyChanged
Inheritance
GenericMaterialCore
Implements
Derived
Inherited Members
Extension Methods

Constructors

GenericMaterialCore(ConstantBufferDescription?)

public GenericMaterialCore(ConstantBufferDescription? constantBufferDesc)

Parameters

constantBufferDesc ConstantBufferDescription

GenericMaterialCore(ShaderPass, string)

Initializes a new instance of the GenericMaterialCore class.

public GenericMaterialCore(ShaderPass shaderPass, string modelMaterialConstantBufferName)

Parameters

shaderPass ShaderPass

The shader pass. Currently only supports pixel shader parameter properties

modelMaterialConstantBufferName string

Name of the model material constant buffer in pixel shader.

GenericMaterialCore(string, string, string, ConstantBufferDescription?)

public GenericMaterialCore(string materialShaderPassName, string shadowShaderPassName, string wireframePassName, ConstantBufferDescription? constantBufferDesc)

Parameters

materialShaderPassName string
shadowShaderPassName string
wireframePassName string
constantBufferDesc ConstantBufferDescription

Fields

cbDescription

protected readonly ConstantBufferDescription? cbDescription

Field Value

ConstantBufferDescription

Properties

BoolDict

[DataMember]
public Dictionary<string, bool> BoolDict { get; }

Property Value

Dictionary<string, bool>

FloatDict

[DataMember]
public Dictionary<string, float> FloatDict { get; }

Property Value

Dictionary<string, float>

MaterialPassName

[DataMember]
public string MaterialPassName { get; set; }

Property Value

string

MatrixDict

[DataMember]
public Dictionary<string, Matrix4x4> MatrixDict { get; }

Property Value

Dictionary<string, Matrix4x4>

PropertieNames

public string[] PropertieNames { get; }

Property Value

string[]

SamplerDict

[DataMember]
public Dictionary<string, SamplerStateDescription> SamplerDict { get; }

Property Value

Dictionary<string, SamplerStateDescription>

SamplerNames

public string[] SamplerNames { get; }

Property Value

string[]

ShadowPassName

[DataMember]
public string ShadowPassName { get; set; }

Property Value

string

TextureDict

[DataMember]
public Dictionary<string, TextureModel?> TextureDict { get; }

Property Value

Dictionary<string, TextureModel>

TextureNames

public string[] TextureNames { get; }

Property Value

string[]

Vector2Dict

[DataMember]
public Dictionary<string, Vector2> Vector2Dict { get; }

Property Value

Dictionary<string, Vector2>

Vector3Dict

[DataMember]
public Dictionary<string, Vector3> Vector3Dict { get; }

Property Value

Dictionary<string, Vector3>

Vector4Dict

[DataMember]
public Dictionary<string, Vector4> Vector4Dict { get; }

Property Value

Dictionary<string, Vector4>

WireframePassName

[DataMember]
public string WireframePassName { get; set; }

Property Value

string

Methods

GetSampler(string)

public SamplerStateDescription GetSampler(string name)

Parameters

name string

Returns

SamplerStateDescription

GetTexture(string)

public TextureModel? GetTexture(string name)

Parameters

name string

Returns

TextureModel

SetProperty(string, bool)

public void SetProperty(string name, bool value)

Parameters

name string
value bool

SetProperty(string, int)

public void SetProperty(string name, int value)

Parameters

name string
value int

SetProperty(string, Matrix4x4)

public void SetProperty(string name, Matrix4x4 value)

Parameters

name string
value Matrix4x4

SetProperty(string, Vector2)

public void SetProperty(string name, Vector2 value)

Parameters

name string
value Vector2

SetProperty(string, Vector3)

public void SetProperty(string name, Vector3 value)

Parameters

name string
value Vector3

SetProperty(string, Vector4)

public void SetProperty(string name, Vector4 value)

Parameters

name string
value Vector4

SetProperty(string, float)

public void SetProperty(string name, float value)

Parameters

name string
value float

SetSampler(string, SamplerStateDescription)

public void SetSampler(string name, SamplerStateDescription samplerDesc)

Parameters

name string
samplerDesc SamplerStateDescription

SetTexture(string, Stream)

public void SetTexture(string name, Stream texture)

Parameters

name string
texture Stream