Commit Graph

614 Commits

Author SHA1 Message Date
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
Branimir Karadžić
425868f391 Cleanup. 2016-09-08 17:00:16 -07:00
Branimir Karadžić
0d9035311f GL: Added GL error flush. 2016-08-31 08:57:53 -07:00
Branimir Karadžić
600ef81fb5 GLES: Fixed RGBA32F detection. 2016-08-30 23:38:51 -07:00
Branimir Karadžić
7749b745f7 GLES: Fixed RGBA32F detection. 2016-08-30 22:29:32 -07:00
Branimir Karadžić
15da3a3d5a Fixed immutable texture array. 2016-08-23 18:20:42 -07:00
Branimir Karadžić
df88bc2106 Cleanup. 2016-08-22 19:42:38 -07:00
Branimir Karadžić
7537b705e5 GL: Added support for texture array. 2016-08-21 14:03:16 -07:00
Branimir Karadžić
63e79499fa Cleanup. 2016-08-20 08:10:20 -07:00
Branimir Karadžić
7b59fb716a Fixed stale VAO issue. 2016-08-18 19:02:57 -07:00
Branimir Karadžić
86084dc65f GL: Detect autogen mipmap texture format support. 2016-07-27 21:22:23 -07:00
Branimir Karadžić
b7a0030c20 GL: Added texture mip autogen. 2016-07-23 16:16:43 -07:00
Branimir Karadžić
08b5e9c851 Fixed mipmap chain generation for textures created with backbuffer ratio size. 2016-07-21 12:57:14 -07:00
Branimir Karadžić
e5aa71db4d Added centroid interpolation modifier. 2016-07-10 20:49:10 -07:00
Branimir Karadžić
e47b474263 Fixed issue #823. 2016-06-27 11:03:45 -07:00
Branimir Karadžić
92d8065850 Cleanup. 2016-06-23 09:24:57 -07:00
Branimir Karadžić
8fd9f38094 GL: Fixed MSAA texture sampling. 2016-06-18 21:51:52 -07:00
Branimir Karadžić
00a2a9c964 Fixed GPU timer read-back. 2016-06-13 16:45:29 -07:00
Branimir Karadžić
d8d17994dc GL: Fixed MSAA texture sampling. 2016-06-13 14:47:37 -07:00
Branimir Karadžić
f3fe5810ad Cleanup. 2016-06-02 21:15:37 -07:00
Branimir Karadžić
918f18c668 Fixed reset flags. 2016-05-31 12:50:28 -07:00