Table of Contents

Class GeometryShader

Namespace
HelixToolkit.SharpDX.Shaders
Assembly
HelixToolkit.SharpDX.dll
public sealed class GeometryShader : ShaderBase, IDisposable
Inheritance
GeometryShader
Implements
Inherited Members

Constructors

GeometryShader(Device, string, byte[])

Initializes a new instance of the GeometryShader class.

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

Parameters

device Device

The device.

name string

The name.

byteCode byte[]

The byte code.

GeometryShader(Device, string, byte[], StreamOutputElement[]?, int[]?, int)

Initializes a new instance of the GeometryShader class. This is used for stream out geometry shader

public GeometryShader(Device device, string name, byte[] byteCode, StreamOutputElement[]? streamOutputElements, int[]? bufferStrides, int rasterizedStream = -1)

Parameters

device Device

The device.

name string

The name.

byteCode byte[]

The byte code.

streamOutputElements StreamOutputElement[]

The stream output elements.

bufferStrides int[]

The buffer strides.

rasterizedStream int

The rasterized stream.

Fields

NullGeometryShader

public static readonly GeometryShader NullGeometryShader

Field Value

GeometryShader

Type

public static readonly GeometryShaderType Type

Field Value

GeometryShaderType

Methods

Bind(DeviceContextProxy, bool)

Binds shader to pipeline

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

Parameters

context DeviceContextProxy

The context.

bindConstantBuffer bool

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 GeometryShaderType(GeometryShader)

public static implicit operator GeometryShaderType(GeometryShader s)

Parameters

s GeometryShader

Returns

GeometryShaderType