home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 2
General
Concept: Switch MP2 to D3D11/D2D rendering
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="morpheus_xx" data-source="post: 1121299" data-attributes="member: 48495"><p>I'd like to pick up a question related to accessing the backbuffer of the rendered scene: Due to changing the render device from DX9 to DX11, also the access have changed.</p><p></p><p>Before you could access:</p><p>[CODE=CSHARP]Surface backBuffer = SkinContext.Device.GetRenderTarget(0);[/CODE]</p><p></p><p>With DX11+D2D the access is:</p><p>[CODE=CSHARP]Bitmap1 backBuffer = SkinContext.Device11.RenderTarget2D;[/CODE]</p><p></p><p>This bitmap can be used i.e. by a BitmapBrush to "paint" a resized version on a new bitmap.</p><p></p><p>Important: once the switch to DX11 is completed, we will probably remove the public access to the DX9 device, as it is only required for VideoPlayer interop.</p></blockquote><p></p>
[QUOTE="morpheus_xx, post: 1121299, member: 48495"] I'd like to pick up a question related to accessing the backbuffer of the rendered scene: Due to changing the render device from DX9 to DX11, also the access have changed. Before you could access: [CODE=CSHARP]Surface backBuffer = SkinContext.Device.GetRenderTarget(0);[/CODE] With DX11+D2D the access is: [CODE=CSHARP]Bitmap1 backBuffer = SkinContext.Device11.RenderTarget2D;[/CODE] This bitmap can be used i.e. by a BitmapBrush to "paint" a resized version on a new bitmap. Important: once the switch to DX11 is completed, we will probably remove the public access to the DX9 device, as it is only required for VideoPlayer interop. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
General
Concept: Switch MP2 to D3D11/D2D rendering
Contact us
RSS
Top
Bottom