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
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
deviceDeviceThe device.
namestringThe name.
byteCodebyte[]The byte code.
streamOutputElementsStreamOutputElement[]The stream output elements.
bufferStridesint[]The buffer strides.
rasterizedStreamintThe rasterized stream.
Fields
NullGeometryShader
public static readonly GeometryShader NullGeometryShader
Field Value
Type
public static readonly GeometryShaderType Type
Field Value
Methods
Bind(DeviceContextProxy, bool)
Binds shader to pipeline
public void Bind(DeviceContextProxy context, bool bindConstantBuffer = true)
Parameters
contextDeviceContextProxyThe context.
bindConstantBufferbool
OnDispose(bool)
Disposes of object resources.
protected override void OnDispose(bool disposeManagedResources)
Parameters
disposeManagedResourcesboolIf true, managed resources should be disposed of in addition to unmanaged resources.
Operators
implicit operator GeometryShaderType(GeometryShader)
public static implicit operator GeometryShaderType(GeometryShader s)