[]
Initializes a new instance of the Texture2D class.
public static Texture2D Create(Device device, ref Texture2DDescription description)
| Type | Name | Description |
|---|---|---|
| Device | device | The device with which to associate the texture. |
| Texture2DDescription | description | The description of the texture. |
| Type | Description |
|---|---|
| Texture2D |
Initializes a new instance of the Texture2D class.
public static Texture2D Create(Device device, Texture2DDescription description, params DataRectangle[] data)
| Type | Name | Description |
|---|---|---|
| Device | device | The device with which to associate the texture. |
| Texture2DDescription | description | The description of the texture. |
| DataRectangle[] | data | An array of initial texture data for each subresource. |
| Type | Description |
|---|---|
| Texture2D |
Initializes a new instance of the Texture2D class.
public static Texture2D Create(Device device, Texture2DDescription description, DataBox[] data)
| Type | Name | Description |
|---|---|---|
| Device | device | The device with which to associate the texture. |
| Texture2DDescription | description | The description of the texture. |
| DataBox[] | data | An array of initial texture data for each subresource. |
| Type | Description |
|---|---|
| Texture2D |