Permalink
Browse files

texture method to generate mipmaps

  • Loading branch information...
kirnosenko committed Jul 10, 2015
1 parent 9d677e4 commit b6d42d0ba653437c7e7075e1a38a3377a96be86d
Showing with 6 additions and 1 deletion.
  1. +6 −1 MonoGame.Framework/Graphics/Texture2D.DirectX.cs
@@ -36,7 +36,12 @@ private void PlatformConstruct(int width, int height, bool mipmap, SurfaceFormat

// Create texture
GetTexture();
}
}

public void GenerateMipMaps(GraphicsDevice device)
{
device._d3dContext.GenerateMips(GetShaderResourceView());
}

private void PlatformSetData<T>(int level, int arraySlice, Rectangle? rect, T[] data, int startIndex, int elementCount) where T : struct
{

0 comments on commit b6d42d0

Please sign in to comment.