Mipmaps on Windows Phone 8

Started by
1 comment, last by Tasaq 10 years, 4 months ago

Hi,

I encountered a problem while porting application to WP8. I am using SharpDX and use down and upsampling method for bluring. The problem is that when I generate mipmaps for render targets I get black (reading from texture returns 0) results, but when I have single level everything works fine, but quality is just terrible. I heard it's a bug in WP8, can someone confirm this? If it's a bug, do you have any neat workaround or am I stuck with 'manual' downsampling?

Advertisement

Please provide more code sample and context, this is really too vague (e.g. "generate mipmaps"? Is it by using DeviceContext.GenerateMips or your own shader using separate texture for each mipmaps or using render target view on mipmaps?...etc.)

Oh, I just noticed that I didn't menton I am using toolkit, I am using RenderTarged2D.New:
This one works


RenderTarget2D rTarget = RenderTarget2D.New(GraphicsDevice, textureWidth, textureHeight, PixelFormat.B8G8R8A8.UNorm);

And this one doesn't


RenderTarget2D rTarget = RenderTarget2D.New(GraphicsDevice, textureWidth, textureHeight, MipMapCount.Auto, PixelFormat.B8G8R8A8.UNorm);

I also want to point out that the code works correctly on PC version. This problem only occurs in WIndows Phone 8.

This topic is closed to new replies.

Advertisement