segunda-feira, 2 de abril de 2012 08:34
I would like to enable the multisample anti-aliasing on the DirectX sample metro app. (downloaded from http://code.msdn.microsoft.com/windowsapps/Direct3D-Tutorial-Sample-08667fb0)
But I always got the DXGI_ERROR_INVALID_CALL by CreateSwapChainForCoreWindow() when I set SampleDesc.Count = 2 in DXGI_SWAP_CHAIN_DESC1 structure.
According to the remarks of http://msdn.microsoft.com/zh-tw/library/hh404528.aspx, it looks like the MSAA is not support in flip model.
But I still got the same error code if I use any other setting in SwapEffect.
Does it mean the MSAA is not support in metro apps? Or did I do anything wrong in swap chain setting?
- Editado JanChen segunda-feira, 2 de abril de 2012 08:43
Todas as Respostas
terça-feira, 3 de abril de 2012 02:35Moderador
The document said:
you must set the Count member of the DXGI_SAMPLE_DESC structure that the SampleDesc member specifies to one and the Quality member of DXGI_SAMPLE_DESC to zero because multiple sample antialiasing (MSAA) is not supported
Jesse Jiang [MSFT]
MSDN Community Support | Feedback to us
terça-feira, 3 de abril de 2012 02:56
Thanks for your reply.
I have read the document and know the MSAA is not support in flip model.
But I still got DXGI_ERROR_INVALID_CALL when I tried to create swap chain with other mode, like DXGI_SWAP_EFFECT_DISCARD.
What I want to do is to create a swap chain with MSAA in my metro app. Is there any document can tell me how to enable it?
terça-feira, 3 de abril de 2012 03:18
Then you can see the error msg: WinRT only support DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL
terça-feira, 3 de abril de 2012 03:39
terça-feira, 3 de abril de 2012 03:49
Yes, I think so.
see the comment
swapChainDesc.SwapEffect = DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL; // all Metro style apps must use this SwapEffect
- Marcado como Resposta JanChen terça-feira, 3 de abril de 2012 04:07
terça-feira, 3 de abril de 2012 03:51
I think it's for performance reason and maybe the pixel on device is smaller than LCD :)
terça-feira, 3 de abril de 2012 04:13
Thank you very much.
I would like to suggest Microsoft to add this feature because it is very important in games or other DX apps development.
The resolution of tablet devices is getting higher an higher now. If there is no MSAA support, the 3D game quality would be very bad.
- Editado JanChen terça-feira, 3 de abril de 2012 04:13
terça-feira, 3 de abril de 2012 05:11It seems Render To Texture still support MSAA, if u really need it.