Tesla Graphics Engine Documentation (January 2012)
SetData<(Of <(<'T>)>)> Method (data, mipLevel, subimage, startIndex, elementCount)
TeslaTesla.Direct3D10.Graphics.ImplementationD3D10Texture2DImplementationSetData<(Of <<'(T>)>>)(array<T>[]()[][], Int32, Nullable<(Of <<'(Rectangle>)>>), Int32, Int32)
Sets the data to the texture.
Declaration Syntax
public override void SetData<T>(
	T[] data,
	int mipLevel,
	Nullable<Rectangle> subimage,
	int startIndex,
	int elementCount
where T : struct, new()
Generic Template Parameters
Type of data in the array.
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 write to, if null the whole image is written to.
startIndex (Int32)
Starting index in the array to start reading from.
elementCount (Int32)
Number of elements to write.
Exception Condition
ArgumentException Thrown if the format byte size of the type to write and the texture do not match, the subimage dimensions are invalid, or if the total size to write and the total size in the texture do not match
TeslaException Thrown if there was an error writing to the texture.

Assembly: Tesla.Direct3D10 (Module: Tesla.Direct3D10) Version: (