Esempio n. 1
0
 /// <summary>
 /// Constructs a DeviceTexture from this texture.
 /// </summary>
 /// <param name="producer"></param>
 /// <returns>A new <see cref="DeviceTexture2D"/> containing this image's pixel data.</returns>
 public DeviceTexture2D CreateDeviceTexture(DeviceTextureCreator producer)
 {
     return(producer.CreateTexture(Pixels, Width, Height, PixelSizeInBytes, Format));
 }
Esempio n. 2
0
 public abstract DeviceTexture2D CreateDeviceTexture(DeviceTextureCreator producer);