[]
        
(Showing Draft Content)

GrapeCity.Documents.DX.Direct3D11.Texture1D

Class Texture1D

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

ID3D11Texture1D

[Guid("f8fb5c27-c6b3-4f75-a4c8-439af2ef564c")]
public class Texture1D : Resource, IDisposable, IUnknown
Inheritance
object
Texture1D
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

Texture1D(IntPtr)

Initializes a new instance of the Texture1D class.

public Texture1D(IntPtr nativePtr)

Parameters

nativePtr System.IntPtr

The native pointer.

Properties

Description

GetDescription

public Texture1DDescription Description { get; }

Property Value

Texture1DDescription

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, Texture1DDescription, DataBox[])

Initializes a new instance of the Texture1D class.

public static Texture1D Create(Device device, Texture1DDescription description, DataBox[] data)

Parameters

device Device

The device with which to associate the texture.

description Texture1DDescription

The description of the texture.

data DataBox[]

An array of initial texture data for each subresource.

Returns

Texture1D

Create(Device, Texture1DDescription, params DataStream[])

Initializes a new instance of the Texture1D class.

public static Texture1D Create(Device device, Texture1DDescription description, params DataStream[] data)

Parameters

device Device

The device with which to associate the texture.

description Texture1DDescription

The description of the texture.

data DataStream[]

An array of initial texture data for each subresource.

Returns

Texture1D

Create(Device, Texture1DDescription, params IntPtr[])

Initializes a new instance of the Texture1D class.

public static Texture1D Create(Device device, Texture1DDescription description, params IntPtr[] data)

Parameters

device Device

The device with which to associate the texture.

description Texture1DDescription

The description of the texture.

data System.IntPtr[]

An array of initial texture data for each subresource.

Returns

Texture1D

Create(Device, ref Texture1DDescription)

Initializes a new instance of the Texture1D class.

public static Texture1D Create(Device device, ref Texture1DDescription description)

Parameters

device Device

The device with which to associate the texture.

description Texture1DDescription

The description of the texture.

Returns

Texture1D

GetDescription(out Texture1DDescription)

void ID3D11Texture1D::GetDesc([Out] D3D11_TEXTURE1D_DESC* pDesc)

public void GetDescription(out Texture1DDescription descRef)

Parameters

descRef Texture1DDescription

Operators

explicit operator Texture1D(IntPtr)

Performs an explicit conversion from System.IntPtr to Texture1D.

public static explicit operator Texture1D(IntPtr nativePointer)

Parameters

nativePointer System.IntPtr

Returns

Texture1D