Commit graph

31 commits

Author SHA1 Message Date
Jules Blok
bec7782e5f CompositorD3D: Fix layer composition. 2017-10-17 23:13:39 +02:00
Jules Blok
5600b15426 CompositorBase: Reduce code duplication for texture creation. 2017-08-22 18:02:48 +02:00
Jules Blok
3c8e418ebe CompositorGL: Use the OpenVR mirror textures to render the mirror. 2017-08-22 17:08:29 +02:00
Jules Blok
95b0205ecb CompositorD3D: Add DirectX 12 support. 2017-08-21 02:58:22 +02:00
Jules Blok
af09222fec TextureBase: Use a proper ring buffer for swapchains. 2017-07-05 16:16:08 +02:00
Jules Blok
94d2e6c0cd Compositor: Set the first texture as submitted by default.
Fixes a crash when Giant Cop calls SubmitFrame without committing the swaphcain first.
2017-06-02 14:12:59 +02:00
Jules Blok
f3f6112c73 CompositorBase: Add profiling data. 2017-04-15 18:09:17 +02:00
Jules Blok
08df8fd600 Rename Common to Session.
All declarations not related to the session have been cleaned up.
2017-04-13 03:53:35 +02:00
Jules Blok
0a9c061988 Update to OpenVR 1.0.6 2017-04-11 19:07:19 +02:00
LibreVR
931842baf3 CompositorD3D: Increment the reference counters for the mirror textures. 2016-11-15 01:08:25 +01:00
LibreVR
d8325f1ca7 CompositorD3D: Do not release the device reference upon creation. 2016-11-15 01:08:24 +01:00
LibreVR
7ca494676d Revive: Fix warnings. 2016-09-24 13:29:39 +02:00
LibreVR
f5815d8c70 Revive: Restructure project files. 2016-09-24 13:22:26 +02:00
LibreVR
c0fd5302bb Compositor: Refactor texture handling into a separate class. 2016-09-24 02:03:48 +02:00
LibreVR
e4157efb74 Revert "CompositorD3D: Generate mipmaps for swap chains if allowed."
This reverts commit 873f46901b.
2016-09-24 02:03:48 +02:00
LibreVR
ba79d01bf6 CompositorD3D: Fix alpha blending.
Oculus uses pre-multiplied blending, so there is no need to blend the source.
2016-09-24 02:03:48 +02:00
LibreVR
0ca4b18c14 CompositorD3D: Generate mipmaps for swap chains if allowed. 2016-09-24 02:03:48 +02:00
LibreVR
20077084e6 Compositor: Account for scene layer viewport. 2016-09-24 02:03:48 +02:00
LibreVR
4fd42f9910 Compositor: Composite layers directly without a staging buffer. 2016-09-24 02:03:48 +02:00
LibreVR
0a63097506 CompositorD3D: Don't forget the main mirror texture. 2016-09-12 22:57:53 +02:00
LibreVR
3a4ef2e014 CompositorD3D: Reset and restore the rasterizer state. 2016-09-10 23:52:17 +02:00
LibreVR
0a53eb0ac1 CompositorD3D: No need to clear the screen. 2016-09-10 22:40:20 +02:00
LibreVR
6a017e5c2e CompositorD3D: Restore some more state objects. 2016-09-10 22:36:28 +02:00
LibreVR
600379e2b5 CompositorD3D: Support composition of multiple scene layers.
This method should be further optimized to eleminate the redundant
composition of the first scene layer.
2016-09-10 21:45:29 +02:00
LibreVR
09b1814125 Compositor: Render swapchains to a compositor texture.
This will allow us to merge multiple scene layers before they're submitted to OpenVR.
2016-09-08 23:07:43 +02:00
LibreVR
d026bfb038 CompositorD3D: Simplify RenderMirrorTexture(). 2016-09-08 17:03:18 +02:00
LibreVR
ef54ad06ff CompositorD3D: Add CreateTexture() to reduce code duplication. 2016-09-08 16:55:31 +02:00
LibreVR
82c3723701 CompositorD3D: Compile the mirror shaders once. 2016-09-08 16:36:35 +02:00
LibreVR
14ce00b86b Compositor: Move compositor creation to a static function. 2016-09-06 16:48:15 +02:00
LibreVR
5c1205d148 Revive: Fix warnings. 2016-09-05 23:49:22 +02:00
LibreVR
6b991ec65c Revive: Add CompositorBase to refactor the graphics APIs. 2016-09-05 22:07:41 +02:00