[]
        
(Showing Draft Content)

GrapeCity.Documents.DX.Direct3D11.CommonShaderStage-1

Class CommonShaderStage<T>

Namespace
GrapeCity.Documents.DX.Direct3D11
Assembly
GcDocs.DX.Windows.dll

Common Shader class. Provides a common set of methods for a Shader Stage. TODO: check if usage of abstract is not introducing an unacceptable overhead...

public abstract class CommonShaderStage<T> : CommonShaderStageBase, IDisposable where T : DeviceChild

Type Parameters

T

Type of the shader

Inheritance
object
CommonShaderStage<T>
Implements
System.IDisposable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Constructors

CommonShaderStage(IntPtr)

Initializes a new instance of the CommonShaderStage<T> class.

protected CommonShaderStage(IntPtr pointer)

Parameters

pointer System.IntPtr

The pointer.

Methods

Get()

Gets the shader currently assigned to the device.

public T Get()

Returns

T

The shader (null if no shader is assigned).

Get(ClassInstance[])

Gets the shader currently assigned to the device.

public T Get(ClassInstance[] classInstances)

Parameters

classInstances ClassInstance[]

An array that will be used to contain any class instances currently active.

Returns

T

The shader (null if no shader is assigned).

Set(T, ComArray<ClassInstance>)

Assigns a compute shader to the device.

public void Set(T shader, ComArray<ClassInstance> classInstances)

Parameters

shader T

The shader to assign to the device. Assign null to disable the compute shader.

classInstances ComArray<ClassInstance>

An array of class-instance interfaces. Each interface used by a shader must have a corresponding class instance or the shader will get disabled.

Set(T, ClassInstance[])

Assigns a compute shader to the device.

public void Set(T shader, ClassInstance[] classInstances)

Parameters

shader T

The shader to assign to the device. Assign null to disable the compute shader.

classInstances ClassInstance[]

An array of class-instance interfaces. Each interface used by a shader must have a corresponding class instance or the shader will get disabled.

Set(T)

Assigns a compute shader to the device.

public void Set(T shader)

Parameters

shader T

The shader to assign to the device. Assign null to disable the compute shader.