Gets the data from the texture.
Declaration Syntax
Generic Template Parameters
- T
- Type of data in the array.
Parameters
- data (array<T>[]()[][])
- Array of data.
- mipLevel (Int32)
- Mip map level to access.
- subimage (Nullable<(Of <(<'Rectangle>)>)>)
- Rectangle representing a sub-image of the 2D texture to read from, if null the whole image is read from.
- startIndex (Int32)
- Starting index in the array to start writing to.
- elementCount (Int32)
- Number of elements to read.
Exceptions
Exception | Condition |
---|---|
ArgumentException | Thrown if the format byte size of the type to read and the texture do not match, the subimage
dimensions are invalid, or if the total size to read and the total size in the texture do not match |
TeslaException | Thrown if there was an error reading from the texture. |
Assembly: Tesla.Direct3D10 (Module: Tesla.Direct3D10) Version: 0.5.0.0 (0.5.0.0)