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
Methods
BindMaterialResources(RenderContext, DeviceContextProxy, ShaderPass)
Binds the material resources.
public override bool BindMaterialResources(RenderContext context, DeviceContextProxy deviceContext, ShaderPass shaderPass)
Parameters
contextRenderContextThe context.
deviceContextDeviceContextProxyThe device context.
shaderPassShaderPassThe shader pass.
Returns
Draw(DeviceContextProxy, IAttachableBufferModel, int)
Draws the specified device context.
public override void Draw(DeviceContextProxy deviceContext, IAttachableBufferModel bufferModel, int instanceCount)
Parameters
deviceContextDeviceContextProxyThe device context.
bufferModelIAttachableBufferModelThe buffer model.
instanceCountintThe instance count.
GetDepthPass(RenderType, RenderContext)
Gets the depth pass.
public override ShaderPass GetDepthPass(RenderType renderType, RenderContext context)
Parameters
renderTypeRenderTypeType of the render.
contextRenderContextThe context.
Returns
GetPass(RenderType, RenderContext)
Gets the pass.
public override ShaderPass GetPass(RenderType renderType, RenderContext context)
Parameters
renderTypeRenderTypeType of the render.
contextRenderContextThe context.
Returns
GetShadowPass(RenderType, RenderContext)
Gets the shadow pass.
public override ShaderPass GetShadowPass(RenderType renderType, RenderContext context)
Parameters
renderTypeRenderTypeType of the render.
contextRenderContextThe context.
Returns
GetWireframePass(RenderType, RenderContext)
Gets the wireframe pass.
public override ShaderPass GetWireframePass(RenderType renderType, RenderContext context)
Parameters
renderTypeRenderTypeType of the render.
contextRenderContextThe context.
Returns
UpdateInternalVariables(DeviceContextProxy)
protected override void UpdateInternalVariables(DeviceContextProxy context)
Parameters
contextDeviceContextProxy