Function VisualServerSingleton.textureSetData

Sets the texture's image data. If it's a CubeMap, it sets the image data at a cube side.

void textureSetData (
  const(RID) texture,
  Image image,
  const(long) layer = 0L
) nothrow @nogc;