Gets the data from the texture.
Declaration Syntax
Generic Template Parameters
- T
- Type of data in the array
Parameters
- data (array<T>[]()[][])
- The array of data
- mipLevel (Int32)
- Mip map level to read from
- left (Int32)
- Right-most width position in the texture at which to acess. (0 or greater)
- right (Int32)
- Right-most width position in the texture at which to acess. (width or less)
- top (Int32)
- Top-most height position in the texture at which to acess. (0 or greater)
- bottom (Int32)
- Bottom-most height position in the texture at which to acess. (height or less)
- front (Int32)
- Front-most depth position in the texture at which to acess. (0 or greater)
- back (Int32)
- Back-most depth position in the texture at which to acess. (depth or less)
- startIndex (Int32)
- Starting index in the array to start reading from.
- elementCount (Int32)
- Number of elements to write.
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)