Table of Contents

Class ComputeInformation

Namespace
SharpDX.Direct2D1
Assembly
SharpDX.Direct2D1.dll
[Guid("5598b14b-9fd7-48b7-9bdb-8f0964eb38bc")]
public class ComputeInformation : RenderInformation
Inheritance
ComputeInformation
Inherited Members

Constructors

ComputeInformation(nint)

public ComputeInformation(nint nativePtr)

Parameters

nativePtr nint

Properties

ComputeShader

Sets the compute shader to the given shader resource. The resource must be loaded before this call is made.

public Guid ComputeShader { set; }

Property Value

Guid

Methods

SetConstantBuffer(DataStream)

Sets the constant buffer data from a SharpDX.DataStream.

public void SetConstantBuffer(DataStream dataStream)

Parameters

dataStream DataStream

The DataStream that contains the constant buffer data

SetConstantBuffer<T>(T)

Sets the constant buffer data from a struct value.

public void SetConstantBuffer<T>(T value) where T : struct

Parameters

value T

Value of the constant buffer

Type Parameters

T

Type of the constant buffer

SetConstantBuffer<T>(ref T)

Sets the constant buffer data from a struct value.

public void SetConstantBuffer<T>(ref T value) where T : struct

Parameters

value T

Value of the constant buffer

Type Parameters

T

Type of the constant buffer

SetResourceTexture(int, ResourceTexture)

Sets the resource texture corresponding to the given shader texture index to the given texture resource. The texture resource must already have been loaded with ID2D1EffectContext::CreateResourceTexture method. This call will fail if the specified index overlaps with any input. The input indices always precede the texture LUT indices.

public void SetResourceTexture(int textureIndex, ResourceTexture resourceTexture)

Parameters

textureIndex int

No documentation.

resourceTexture ResourceTexture

No documentation.

Operators

explicit operator ComputeInformation(nint)

public static explicit operator ComputeInformation(nint nativePtr)

Parameters

nativePtr nint

Returns

ComputeInformation