Table of Contents

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

name string
type ShaderStage
isNull bool

Properties

ConstantBufferMapping

public MappingProxy<ConstantBufferProxy> ConstantBufferMapping { get; }

Property Value

MappingProxy<ConstantBufferProxy>

IsNULL

If is null shader

public bool IsNULL { get; protected set; }

Property Value

bool

Name

Shader Name

public string Name { get; }

Property Value

string

SamplerMapping

public MappingProxy<SamplerMapping> SamplerMapping { get; }

Property Value

MappingProxy<SamplerMapping>

ShaderResourceViewMapping

public MappingProxy<TextureMapping> ShaderResourceViewMapping { get; }

Property Value

MappingProxy<TextureMapping>

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

MappingProxy<UAVMapping>

Methods

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.