Table of Contents

Class VertexShader

Namespace
HelixToolkit.SharpDX.Shaders
Assembly
HelixToolkit.SharpDX.dll

Vertex Shader

public sealed class VertexShader : ShaderBase, IDisposable
Inheritance
VertexShader
Implements
Inherited Members

Constructors

VertexShader(Device, string, byte[])

Vertex Shader

public VertexShader(Device device, string name, byte[] byteCode)

Parameters

device Device
name string
byteCode byte[]

Fields

NullVertexShader

public static readonly VertexShader NullVertexShader

Field Value

VertexShader

Type

public static readonly VertexShaderType Type

Field Value

VertexShaderType

Methods

Bind(DeviceContextProxy, bool)

Binds shader to pipeline

public void Bind(DeviceContextProxy context, bool bindConstantBuffer = true)

Parameters

context DeviceContextProxy

The context.

bindConstantBuffer bool

BindSampler(DeviceContextProxy, int, SamplerStateProxy?)

Binds the sampler.

public void BindSampler(DeviceContextProxy context, int slot, SamplerStateProxy? sampler)

Parameters

context DeviceContextProxy

The context.

slot int

The slot.

sampler SamplerStateProxy

The sampler.

BindSampler(DeviceContextProxy, string, SamplerStateProxy?)

Binds the sampler.

public void BindSampler(DeviceContextProxy context, string name, SamplerStateProxy? sampler)

Parameters

context DeviceContextProxy

The context.

name string

The name.

sampler SamplerStateProxy

The sampler.

BindSamplers(DeviceContextProxy, IList<KeyValuePair<int, SamplerStateProxy>>)

Binds the samplers.

public void BindSamplers(DeviceContextProxy context, IList<KeyValuePair<int, SamplerStateProxy>> samplers)

Parameters

context DeviceContextProxy

The context.

samplers IList<KeyValuePair<int, SamplerStateProxy>>

The samplers.

BindTexture(DeviceContextProxy, int, ShaderResourceViewProxy?)

Binds the texture.

public void BindTexture(DeviceContextProxy context, int slot, ShaderResourceViewProxy? texture)

Parameters

context DeviceContextProxy

The context.

slot int

The slot.

texture ShaderResourceViewProxy

The texture.

BindTexture(DeviceContextProxy, string, ShaderResourceViewProxy?)

Binds the texture.

public void BindTexture(DeviceContextProxy context, string name, ShaderResourceViewProxy? texture)

Parameters

context DeviceContextProxy

The context.

name string

The name.

texture ShaderResourceViewProxy

The texture.

BindTextures(DeviceContextProxy, IList<KeyValuePair<int, ShaderResourceViewProxy>>)

Binds the textures.

public void BindTextures(DeviceContextProxy context, IList<KeyValuePair<int, ShaderResourceViewProxy>> textures)

Parameters

context DeviceContextProxy

The context.

textures IList<KeyValuePair<int, ShaderResourceViewProxy>>

The textures.

OnDispose(bool)

Disposes of object resources.

protected override void OnDispose(bool disposeManagedResources)

Parameters

disposeManagedResources bool

If true, managed resources should be disposed of in addition to unmanaged resources.

Operators

implicit operator VertexShaderType(VertexShader)

public static implicit operator VertexShaderType(VertexShader s)

Parameters

s VertexShader

Returns

VertexShaderType