Class ComputeShader
- Namespace
- HelixToolkit.SharpDX.Shaders
- Assembly
- HelixToolkit.SharpDX.dll
public sealed class ComputeShader : ShaderBase, IDisposable
- Inheritance
-
ComputeShader
- Implements
- Inherited Members
Constructors
ComputeShader(Device, string, byte[])
Vertex Shader
public ComputeShader(Device device, string name, byte[] byteCode)
Parameters
Fields
NullComputeShader
public static readonly ComputeShader NullComputeShader
Field Value
Type
public static readonly ComputeShaderType Type
Field Value
Methods
Bind(DeviceContextProxy, bool)
Binds shader to pipeline
public void Bind(DeviceContextProxy context, bool bindConstantBuffer = true)
Parameters
contextDeviceContextProxyThe context.
bindConstantBufferbool
BindSampler(DeviceContextProxy, int, SamplerStateProxy)
Binds the sampler.
public void BindSampler(DeviceContextProxy context, int slot, SamplerStateProxy sampler)
Parameters
contextDeviceContextProxyThe context.
slotintThe slot.
samplerSamplerStateProxyThe sampler.
BindSampler(DeviceContextProxy, string, SamplerStateProxy)
Binds the sampler.
public void BindSampler(DeviceContextProxy context, string name, SamplerStateProxy sampler)
Parameters
contextDeviceContextProxyThe context.
namestringThe name.
samplerSamplerStateProxyThe sampler.
BindSamplers(DeviceContextProxy, IList<KeyValuePair<int, SamplerStateProxy>>)
Binds the samplers.
public void BindSamplers(DeviceContextProxy context, IList<KeyValuePair<int, SamplerStateProxy>> samplers)
Parameters
contextDeviceContextProxyThe context.
samplersIList<KeyValuePair<int, SamplerStateProxy>>The samplers.
BindTexture(DeviceContextProxy, int, ShaderResourceViewProxy)
Binds the texture.
public void BindTexture(DeviceContextProxy context, int slot, ShaderResourceViewProxy texture)
Parameters
contextDeviceContextProxyThe context.
slotintThe slot.
textureShaderResourceViewProxyThe texture.
BindTexture(DeviceContextProxy, string, ShaderResourceViewProxy)
Binds the texture.
public void BindTexture(DeviceContextProxy context, string name, ShaderResourceViewProxy texture)
Parameters
contextDeviceContextProxyThe context.
namestringThe name.
textureShaderResourceViewProxyThe texture.
BindTextures(DeviceContextProxy, IList<KeyValuePair<int, ShaderResourceViewProxy>>)
Binds the textures.
public void BindTextures(DeviceContextProxy context, IList<KeyValuePair<int, ShaderResourceViewProxy>> textures)
Parameters
contextDeviceContextProxyThe context.
texturesIList<KeyValuePair<int, ShaderResourceViewProxy>>The textures.
BindUAV(DeviceContextProxy, int, UAVBufferViewProxy?)
Binds the UnorderedAccessView.
public void BindUAV(DeviceContextProxy context, int slot, UAVBufferViewProxy? uav)
Parameters
contextDeviceContextProxyThe context.
slotintThe slot.
uavUAVBufferViewProxyThe uav.
BindUAV(DeviceContextProxy, string, UAVBufferViewProxy?)
Binds the UnorderedAccessView.
public void BindUAV(DeviceContextProxy context, string name, UAVBufferViewProxy? uav)
Parameters
contextDeviceContextProxyThe context.
namestringThe name.
uavUAVBufferViewProxyThe uav.
BindUAVs(DeviceContextProxy, IList<KeyValuePair<int, UAVBufferViewProxy>>)
Binds the UnorderedAccessViews.
public void BindUAVs(DeviceContextProxy context, IList<KeyValuePair<int, UAVBufferViewProxy>> uavs)
Parameters
contextDeviceContextProxyThe context.
uavsIList<KeyValuePair<int, UAVBufferViewProxy>>The uavs.
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 ComputeShaderType(ComputeShader)
public static implicit operator ComputeShaderType(ComputeShader s)