[]
ID3D11Texture1D
[Guid("f8fb5c27-c6b3-4f75-a4c8-439af2ef564c")]
public class Texture1D : Resource, IDisposable, IUnknown
Initializes a new instance of the Texture1D class.
public Texture1D(IntPtr nativePtr)
nativePtr System.IntPtrThe native pointer.
GetDescription
public Texture1DDescription Description { get; }
Calculates the sub resource index for a particular mipSlice and arraySlice.
public override int CalculateSubResourceIndex(int mipSlice, int arraySlice, out int mipSize)
mipSlice intarraySlice intmipSize intInitializes a new instance of the Texture1D class.
public static Texture1D Create(Device device, Texture1DDescription description, DataBox[] data)
device DeviceThe device with which to associate the texture.
description Texture1DDescriptionThe description of the texture.
data DataBox[]An array of initial texture data for each subresource.
Initializes a new instance of the Texture1D class.
public static Texture1D Create(Device device, Texture1DDescription description, params DataStream[] data)
device DeviceThe device with which to associate the texture.
description Texture1DDescriptionThe description of the texture.
data DataStream[]An array of initial texture data for each subresource.
Initializes a new instance of the Texture1D class.
public static Texture1D Create(Device device, Texture1DDescription description, params IntPtr[] data)
device DeviceThe device with which to associate the texture.
description Texture1DDescriptionThe description of the texture.
data System.IntPtr[]An array of initial texture data for each subresource.
Initializes a new instance of the Texture1D class.
public static Texture1D Create(Device device, ref Texture1DDescription description)
device DeviceThe device with which to associate the texture.
description Texture1DDescriptionThe description of the texture.
void ID3D11Texture1D::GetDesc([Out] D3D11_TEXTURE1D_DESC* pDesc)
public void GetDescription(out Texture1DDescription descRef)
descRef Texture1DDescriptionPerforms an explicit conversion from System.IntPtr to Texture1D.
public static explicit operator Texture1D(IntPtr nativePointer)
nativePointer System.IntPtr