Answered by:
Is multisample anti-aliasing not support in metro app?

Question
-
Hi,
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?
Thanks.
- Edited by JanChen Monday, April 2, 2012 8:43 AM
Monday, April 2, 2012 8:34 AM
Answers
-
Yes, I think so.
http://msdn.microsoft.com/en-us/library/windows/apps/hh465096.aspx
see the comment
swapChainDesc.SwapEffect = DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL; // all Metro style apps must use this SwapEffect
C++ DX11
- Marked as answer by JanChen Tuesday, April 3, 2012 4:07 AM
Tuesday, April 3, 2012 3:49 AM
All replies
-
Hello,
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 supportedFrom:
http://msdn.microsoft.com/library/hh404528.aspx
Remarks section.Best regards,
Jesse
Jesse Jiang [MSFT]
MSDN Community Support | Feedback to us
Tuesday, April 3, 2012 2:35 AMModerator -
Dear Jesse,
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?
Thanks.
Tuesday, April 3, 2012 2:56 AM -
Tuesday, April 3, 2012 3:18 AM
-
-
Yes, I think so.
http://msdn.microsoft.com/en-us/library/windows/apps/hh465096.aspx
see the comment
swapChainDesc.SwapEffect = DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL; // all Metro style apps must use this SwapEffect
C++ DX11
- Marked as answer by JanChen Tuesday, April 3, 2012 4:07 AM
Tuesday, April 3, 2012 3:49 AM -
I think it's for performance reason and maybe the pixel on device is smaller than LCD :)
C++ DX11
Tuesday, April 3, 2012 3:51 AM -
Dear Raptor,
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.
- Edited by JanChen Tuesday, April 3, 2012 4:13 AM
Tuesday, April 3, 2012 4:13 AM -
It seems Render To Texture still support MSAA, if u really need it.
C++ DX11
Tuesday, April 3, 2012 5:11 AM -
It seems Render To Texture still support MSAA, if u really need it.
C++ DX11
Can you give a brief overview on how this is accomplished? Setting the rendertarget texture's SampleDesc.Count to anything other than 1 causes it to crash.
Checking the device itself with CheckMultiSampleQualityLevels gives me a result of 1 for every count value, meaning no multisampling... and I have Feature_Level_11 enabled on my device.
Lee McPherson
Thursday, November 7, 2013 12:52 AM -
This took me forever to find, so I'll leave it here for the next person that is looking for MSAA in Windows Store apps.
http://code.msdn.microsoft.com/windowsapps/Multisampling-in-Windows-4bc6337bLee McPherson
Thursday, November 7, 2013 2:30 AM