Class ShaderBase
- Namespace
- HelixToolkit.SharpDX.Shaders
- Assembly
- HelixToolkit.SharpDX.dll
public abstract class ShaderBase : DisposeObject, IDisposable
- Inheritance
-
ShaderBase
- Implements
- Derived
- Inherited Members
Constructors
ShaderBase(string, ShaderStage, bool)
public ShaderBase(string name, ShaderStage type, bool isNull = false)
Parameters
namestringtypeShaderStageisNullbool
Properties
ConstantBufferMapping
public MappingProxy<ConstantBufferProxy> ConstantBufferMapping { get; }
Property Value
IsNULL
If is null shader
public bool IsNULL { get; protected set; }
Property Value
Name
Shader Name
public string Name { get; }
Property Value
SamplerMapping
public MappingProxy<SamplerMapping> SamplerMapping { get; }
Property Value
ShaderResourceViewMapping
public MappingProxy<TextureMapping> ShaderResourceViewMapping { get; }
Property Value
ShaderStageIndex
Gets the index of the shader stage.
public int ShaderStageIndex { get; }
Property Value
- int
The index of the shader stage.
ShaderType
Gets the type of the shader.
public ShaderStage ShaderType { get; }
Property Value
- ShaderStage
The type of the shader.
UnorderedAccessViewMapping
public MappingProxy<UAVMapping> UnorderedAccessViewMapping { get; }
Property Value
Methods
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.