Jump to content

  • Log In with Google      Sign In   
  • Create Account

Awesome job so far everyone! Please give us your feedback on how our article efforts are going. We still need more finished articles for our May contest theme: Remake the Classics

[MSAA] WPF Texture Sharing


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
No replies to this topic

#1 Dynamo_Maestro   Members   -  Reputation: 538

Like
0Likes
Like

Posted 02 November 2012 - 08:28 AM

See WPF examples in SharpDX / SlimDX for code etc

From http://msdn.microsoft.com/en-us/library/windows/desktop/ff476531(v=vs.85).aspx (towards the bottom of the page)

Textures being shared from D3D9 to D3D11 have the following restrictions.
Textures must be 2D
Only 1 mip level is allowed
Texture must have default usage
Texture must be write only
MSAA textures are not allowed
Bind flags must have SHADER_RESOURCE and RENDER_TARGET set
Only R10G10B10A2_UNORM, R16G16B16A16_FLOAT and R8G8B8A8_UNORM formats are allowed


When using SharpDX / SlimDX with WPF, you have to surface share with D3Dimage in order for things to get rendered, changing MSAA count / quality on your shared render target results in a dx error as MSAA textures are not allowed. Changing present params on the D3D9 device which you will be sharing with doesnt make a difference either and theres no efficient way to access WPFs swap chain.

How would I go about allowing MSAA on my scene / textures?

Edited by Dynamo_Maestro, 02 November 2012 - 08:37 AM.


Sponsor:



Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS