Table of Contents

Class EmptyMaterialVariable

Namespace
HelixToolkit.SharpDX.Model
Assembly
HelixToolkit.SharpDX.dll
public sealed class EmptyMaterialVariable : MaterialVariable, IDisposable
Inheritance
EmptyMaterialVariable
Implements
Inherited Members

Constructors

EmptyMaterialVariable()

Initializes a new instance of the EmptyMaterialVariable class.

public EmptyMaterialVariable()

Fields

EmptyVariable

public static readonly EmptyMaterialVariable EmptyVariable

Field Value

EmptyMaterialVariable

Methods

BindMaterialResources(RenderContext, DeviceContextProxy, ShaderPass)

Binds the material resources.

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

Parameters

context RenderContext

The context.

deviceContext DeviceContextProxy

The device context.

shaderPass ShaderPass

The shader pass.

Returns

bool

Draw(DeviceContextProxy, IAttachableBufferModel, int)

Draws the specified device context.

public override void Draw(DeviceContextProxy deviceContext, IAttachableBufferModel bufferModel, int instanceCount)

Parameters

deviceContext DeviceContextProxy

The device context.

bufferModel IAttachableBufferModel

The buffer model.

instanceCount int

The instance count.

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

Type of the render.

context RenderContext

The context.

Returns

ShaderPass

GetWireframePass(RenderType, RenderContext)

Gets the wireframe pass.

public override ShaderPass GetWireframePass(RenderType renderType, RenderContext context)

Parameters

renderType RenderType

Type of the render.

context RenderContext

The context.

Returns

ShaderPass

UpdateInternalVariables(DeviceContextProxy)

protected override void UpdateInternalVariables(DeviceContextProxy context)

Parameters

context DeviceContextProxy