[]
        
(Showing Draft Content)

GrapeCity.Documents.DX.Direct3D11.Texture2D

Class Texture2D

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

ID3D11Texture2D

[Guid("6f15aaf2-d208-4e89-9ab4-489535d34f9c")]
public class Texture2D : Resource, IDisposable, IUnknown
Inheritance
object
Texture2D
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

Texture2D(IntPtr)

Initializes a new instance of the Texture2D class.

public Texture2D(IntPtr nativePtr)

Parameters

nativePtr System.IntPtr

The native pointer.

Properties

Description

GetDescription

public Texture2DDescription Description { get; }

Property Value

Texture2DDescription

Methods

CalculateSubResourceIndex(int, int, out int)

Calculates the sub resource index for a particular mipSlice and arraySlice.

public override int CalculateSubResourceIndex(int mipSlice, int arraySlice, out int mipSize)

Parameters

mipSlice int
arraySlice int
mipSize int

Returns

int

Create(Device, Texture2DDescription, DataBox[])

Initializes a new instance of the Texture2D class.

public static Texture2D Create(Device device, Texture2DDescription description, DataBox[] data)

Parameters

device Device

The device with which to associate the texture.

description Texture2DDescription

The description of the texture.

data DataBox[]

An array of initial texture data for each subresource.

Returns

Texture2D

Create(Device, Texture2DDescription, params DataRectangle[])

Initializes a new instance of the Texture2D class.

public static Texture2D Create(Device device, Texture2DDescription description, params DataRectangle[] data)

Parameters

device Device

The device with which to associate the texture.

description Texture2DDescription

The description of the texture.

data DataRectangle[]

An array of initial texture data for each subresource.

Returns

Texture2D

Create(Device, ref Texture2DDescription)

Initializes a new instance of the Texture2D class.

public static Texture2D Create(Device device, ref Texture2DDescription description)

Parameters

device Device

The device with which to associate the texture.

description Texture2DDescription

The description of the texture.

Returns

Texture2D

GetDescription(out Texture2DDescription)

void ID3D11Texture2D::GetDesc([Out] D3D11_TEXTURE2D_DESC* pDesc)

public void GetDescription(out Texture2DDescription descRef)

Parameters

descRef Texture2DDescription

Operators

explicit operator Texture2D(IntPtr)

Performs an explicit conversion from System.IntPtr to Texture2D.

public static explicit operator Texture2D(IntPtr nativePointer)

Parameters

nativePointer System.IntPtr

Returns

Texture2D