Ejemplo n.º 1
0
 public static void SetDataCompressed(this ITexture2D texture, int level, IntPtr data, int compressedSize, IBuffer pixelUnpackBuffer = null)
 {
     texture.SetDataCompressed(level, 0, 0, texture.CalculateMipWidth(level), texture.CalculateMipHeight(level), data, compressedSize, pixelUnpackBuffer);
 }
Ejemplo n.º 2
0
 public static void SetData(this ITexture2D texture, int level, IntPtr data, FormatColor format, FormatType type, IBuffer pixelUnpackBuffer = null)
 {
     texture.SetData(level, 0, 0, texture.CalculateMipWidth(level), texture.CalculateMipHeight(level), data, format, type, pixelUnpackBuffer);
 }