Commit Graph

634 Commits

Author SHA1 Message Date
Dario Manesku
72d98681bb Fixing a bug introduced with multiple vertex stream support for OGL backend. (#1072) 2017-03-11 13:26:53 -08:00
Branimir Karadžić
b0e13445db Exposed occlusion query result. 2017-03-06 17:23:22 -08:00
Branimir Karadžić
a7372c8c75 Fixed issue #1064. 2017-03-05 16:17:02 -08:00
Branimir Karadžić
a1184d53c5 Invalidate occlusion queries in flight when new occlusion query with the same id is created. 2017-03-03 18:05:36 -08:00
Branimir Karadžić
1444704901 Cleanup. 2017-03-02 19:29:34 -08:00
Branimir Karadžić
86fc54ccfc Added ability to specify swap chain for screenshot. 2017-03-02 18:02:14 -08:00
Dario Manesku
a956558c93 Multiple vertex stream support for OGL backend. (#1059) 2017-02-28 10:32:36 -08:00
Don Williamson
8a37dd8e87 GL Renderer, OSX, no swap chain: Bind back buffer fbo ready for NSOpenGLContext flushBuffer (#1056) 2017-02-27 16:12:48 -08:00
Branimir Karadžić
bfe5a66b3e Cleanup. 2017-02-09 19:31:19 -08:00
Branimir Karadžić
b99ebb9535 Cleanup. 2017-02-08 19:55:31 -08:00
Branimir Karadžić
aa2a9deb5f Cleanup. 2017-02-08 18:17:59 -08:00
Branimir Karadžić
b62fe2749f Fixed create/destroy windows. 2017-01-26 15:34:11 -08:00
Branimir Karadžić
a8cf2f86a9 Cleanup. 2017-01-20 16:34:27 -08:00
Branimir Karadžić
f63553fecc Cleanup. 2017-01-15 16:22:47 -08:00
Branimir Karadžić
8b3f752af5 Skip rendering when scissor is zero area. 2017-01-11 20:38:38 -08:00
Branimir Karadžić
14dbb67320 Fixed IFH debug flag. 2017-01-10 17:14:50 -08:00
Branimir Karadžić
dcd82ea2b6 Backed out PR #1014. 2017-01-08 15:23:02 -08:00
Branimir Karadžić
0271b449f8 Cleanup. 2017-01-06 20:15:33 -08:00
Dario Manesku
bb1a2f76a1 OGL backend now supports multiple vertex streams. (#1014) 2017-01-06 19:45:50 -08:00
Branimir Karadžić
3b83f53ab1 Happy New Year! 2017-01-01 00:18:41 -08:00
Branimir Karadžić
5a0d824331 Exposed a few more internal performats stats. 2016-12-19 17:18:07 -08:00
Branimir Karadžić
706facc788 Fixed blit with view remapping. 2016-11-20 14:29:37 -08:00
Matthew Endsley
e090bb9851 Use a single render target for VR rendering (#977)
This allows the game to render to a single FB and
pass that into existing post process pipeline.
2016-11-16 18:00:10 -08:00
Branimir Karadžić
e86aee5f2e Don't present backbuffer if it's not affected by rendering. 2016-11-13 20:59:41 -08:00
Branimir Karadžić
025d806c70 Present swap chain only when it's updated. 2016-11-09 14:29:37 -08:00
Harold Comere
fa6977f994 * Fix AsmJS D16 D24S8 format / internal format match (#966) 2016-11-07 09:32:03 -08:00
Branimir Karadžić
daeab5c239 OVR: Fixed redundant clears. 2016-11-05 19:13:35 -07:00
Branimir Karadžić
89515a3617 Fixed issue #963. 2016-11-04 19:54:03 -07:00
Branimir Karadžić
a3113ab94c Added ability to retrieve uniform info. 2016-11-02 00:12:40 -07:00
benoitjacquier
061b805cfb readtexture mip / gl metal noop support 2016-10-24 10:02:08 +02:00
benoitjacquier
9a0e685861 Merge branch 'master' of https://github.com/benoitjacquier/bgfx into readtexture_mip 2016-10-22 12:26:49 +02:00
Branimir Karadžić
ad7da4131e Merge pull request #953 from benoitjacquier/cubemap_as_texturearray
Cubemap as texturearray
2016-10-21 09:10:34 -07:00
benoitjacquier
b19ca48387 Cubemap as texture array OpenGL support + example 2016-10-21 17:34:38 +02:00
benoitjacquier
74298e9940 readTexture mip support / D3D9 / D3D11 2016-10-21 17:22:05 +02:00
Branimir Karadžić
752f3deee7 Fixed issue #952. 2016-10-18 20:36:41 -07:00
Branimir Karadžić
93454bd23b Fixed issue #951. 2016-10-17 19:19:42 -07:00
Branimir Karadžić
e0832ed675 Revert "glInvalidateFramebuffer: iOS (iPad Mini 2, iOS 10.0.1) invalid enum work around" 2016-10-16 18:50:05 -07:00
Branimir Karadžić
c9dffa6379 Merge pull request #949 from joedavisdev/pr/ios-framebuffer-invalidate-fix
glInvalidateFramebuffer: iOS (iPad Mini 2, iOS 10.0.1) invalid enum work around
2016-10-16 18:16:42 -07:00
Joe Davis
2bfc64e5f7 Worked around iOS (iPad Mini 2, iOS 10.0.1) invalid enum error by switching to functionality equivalent GL_DEPTH_ATTACHMENT|GL_STENCIL_ATTACHMENT assignment 2016-10-16 22:48:39 +01:00
Branimir Karadžić
b7e29467c2 Fixed issue #941. 2016-10-15 10:45:16 -07:00
Branimir Karadžić
1c3e28fd9d Cleanup. 2016-09-29 18:30:21 -07:00
Branimir Karadžić
50d867bbc2 Added limits info to caps. 2016-09-24 00:29:59 -07:00
Branimir Karadžić
6ebdf2e0c0 GL: Added vendorId identification. Issue #922. 2016-09-22 23:17:18 -07:00
Branimir Karadžić
449b5b60f0 Cleanup. 2016-09-17 00:24:25 -07:00
Matthew Endsley
6ca7205391 Add BX_OVERRIDE directives to new VR classes 2016-09-16 21:25:25 -07:00
Matthew Endsley
d9dd4bceb5 Add platform agnostic bgfx::VR for renderers to interface
The new platform agnositic class bgfx::VR manages the
functionality that is shared across the various VR platforms.

The individual platform renderers no longer need
to interface with the internal VR tpyes (OVRRenderI) directly

This greatly simplifies the OVR object's surface area which
is now provided by the VRImplI interface. bgfx::VR now manages
core lifecycle issues of the headset.

The notable renderer API changes are the separation of sensor
sampling and rendering. We need these separate so we can control
the timing (later commit) of camera sampling with finer granularity
than at the start of the video frame.
2016-09-16 20:03:12 -07:00
Matthew Endsley
fd6ed06968 Fix opengl OVR texture lifetime issues
Clear mirror and eye textures of OVRRenderI at startup
instead of in the individual renderer interfaces
2016-09-16 15:45:52 -07:00
Branimir Karadžić
37f00de7de Fixed issue #917. 2016-09-15 20:54:00 -07:00
Matthew Endsley
eec95aeef6 Combine OVRBufferI and OVRMirrorI into a single interface
Simplify the renderer interface for VR to separate the OVR
implementation from the overall HMD foundation.

Part of merging OpenVR back upstream.
2016-09-14 17:50:15 -07:00
Branimir Karadžić
1ae77b0cfb WIP: Adding vertex stream support. 2016-09-12 19:38:29 -07:00