Table of Contents

Class GenericMaterialVariable

Namespace
HelixToolkit.SharpDX.Model
Assembly
HelixToolkit.SharpDX.dll
public abstract class GenericMaterialVariable : MaterialVariable, IDisposable
Inheritance
GenericMaterialVariable
Implements
Derived
Inherited Members

Constructors

GenericMaterialVariable(IEffectsManager, IRenderTechnique, GenericMaterialCore, ConstantBufferDescription?, string, string, string, string)

public GenericMaterialVariable(IEffectsManager manager, IRenderTechnique technique, GenericMaterialCore materialCore, ConstantBufferDescription? constantBufferDescription, string materialShaderPassName = "Default", string shadowShaderPassName = "RenderShadow", string wireframePassName = "Wireframe", string depthPassName = "DepthPrepass")

Parameters

manager IEffectsManager
technique IRenderTechnique
materialCore GenericMaterialCore
constantBufferDescription ConstantBufferDescription
materialShaderPassName string
shadowShaderPassName string
wireframePassName string
depthPassName string

Methods

BindMaterialResources(RenderContext, DeviceContextProxy, ShaderPass)

Binds the material textures, samplers, etc,.

public override bool BindMaterialResources(RenderContext context, DeviceContextProxy deviceContext, ShaderPass shaderPass)

Parameters

context RenderContext
deviceContext DeviceContextProxy

The device context.

shaderPass ShaderPass

The shader pass.

Returns

bool

GetDepthPass(RenderType, RenderContext)

Gets the depth pass.

public override ShaderPass GetDepthPass(RenderType renderType, RenderContext context)

Parameters

renderType RenderType

Type of the render.

context RenderContext

The context.

Returns

ShaderPass

GetPass(RenderType, RenderContext)

Gets the pass.

public override ShaderPass GetPass(RenderType renderType, RenderContext context)

Parameters

renderType RenderType

Type of the render.

context RenderContext

The context.

Returns

ShaderPass

GetShadowPass(RenderType, RenderContext)

Gets the shadow pass.

public override ShaderPass GetShadowPass(RenderType renderType, RenderContext context)

Parameters

renderType RenderType
context RenderContext

The context.

Returns

ShaderPass

GetWireframePass(RenderType, RenderContext)

Gets the wireframe pass.

public override ShaderPass GetWireframePass(RenderType renderType, RenderContext context)

Parameters

renderType RenderType
context RenderContext

The context.

Returns

ShaderPass

OnDispose(bool)

protected override void OnDispose(bool disposeManagedResources)

Parameters

disposeManagedResources bool

OnInitialPropertyBindings()

protected override void OnInitialPropertyBindings()

SetSampler(string, SamplerStateDescription)

public bool SetSampler(string name, SamplerStateDescription sampler)

Parameters

name string
sampler SamplerStateDescription

Returns

bool

SetTexture(string, TextureModel?)

public bool SetTexture(string name, TextureModel? texture)

Parameters

name string
texture TextureModel

Returns

bool