Table of Contents

Class ResourceTexture

Namespace
SharpDX.Direct2D1
Assembly
SharpDX.Direct2D1.dll
[Guid("688d15c3-02b0-438d-b13a-d1b44c32c39a")]
public class ResourceTexture : ComObject
Inheritance
ResourceTexture

Constructors

ResourceTexture(EffectContext, Guid, ResourceTextureProperties)

Initializes a new instance of BlendTransform class

public ResourceTexture(EffectContext context, Guid resourceId, ResourceTextureProperties resourceTextureProperties)

Parameters

context EffectContext

The effect context

resourceId Guid

A unique identifier to the resource

resourceTextureProperties ResourceTextureProperties

The description of the resource

ResourceTexture(EffectContext, Guid, ResourceTextureProperties, byte[], int[])

Initializes a new instance of BlendTransform class

public ResourceTexture(EffectContext context, Guid resourceId, ResourceTextureProperties resourceTextureProperties, byte[] data, int[] strides)

Parameters

context EffectContext

The effect context

resourceId Guid

A unique identifier to the resource

resourceTextureProperties ResourceTextureProperties

The description of the resource

data byte[]

The data to be loaded into the resource texture.

strides int[]

Reference to the stride to advance through the resource texture, according to dimension.

ResourceTexture(nint)

public ResourceTexture(nint nativePtr)

Parameters

nativePtr nint

Methods

Update(int[], int[], int[], int, byte[], int)

Updates the specific resource texture inside the specific range or box using the supplied data.

public void Update(int[] minimumExtents, int[] maximimumExtents, int[] strides, int dimensions, byte[] data, int dataCount)

Parameters

minimumExtents int[]

The "left" extent of the updates if specified; if null, the entire texture is updated.

maximimumExtents int[]

The "right" extent of the updates if specified; if null, the entire texture is updated.

strides int[]

The stride to advance through the input data, according to dimension.

dimensions int

The number of dimensions in the resource texture. This must match the number used to load the texture.

data byte[]

The data to be placed into the resource texture.

dataCount int

The size of the data buffer to be used to update the resource texture.

Remarks

The number of dimensions in the update must match those of the created texture.

Operators

explicit operator ResourceTexture(nint)

public static explicit operator ResourceTexture(nint nativePtr)

Parameters

nativePtr nint

Returns

ResourceTexture