Commit Graph
3221 Commits
Author SHA1 Message Date
Branimir Karadžić e5aa71db4d Added centroid interpolation modifier. 2016-07-10 20:49:10 -07:00
Branimir Karadžić 77033fe74e Cleanup. 2016-07-07 09:13:05 -07:00
attilaz cda786ea94 metal msaa support & rendercommand encoder merge 2016-07-07 14:34:22 +02:00
Branimir Karadžić 1bd97b0d3d Fixed crash during initialization when platform data is not set correctly. 2016-07-06 20:04:07 -07:00
Branimir Karadžić 801f8ebc29 Reimplemented PR #832. 2016-07-05 22:09:55 -07:00
Branimir Karadžić 4e169a6f85 Fixed duplicate sampler state. 2016-07-05 16:57:50 -07:00
Branimir Karadžić 959b9ce35b Fixed compiler warning. 2016-07-05 14:22:31 -07:00
Branimir Karadžić d9d0806a65 Cleanup. 2016-07-05 09:48:42 -07:00
attilaz c1cd627cb7 metal fixes
added cpu/gpu timer
fixed handling iOS device orientation change
fixed BGFX_DEBUG_IFH rendering
acquire drawable just before needed
added sampler comparison where available
2016-07-05 16:21:49 +02:00
Branimir Karadžić 661accb206 Cleanup. 2016-07-04 14:40:38 -07:00
attilaz 9970aab58d metal save screenshot 2016-07-04 13:42:08 +02:00
Branimir Karadžić 897ab8c69b Fixed issue #837. 2016-07-02 20:56:27 -07:00
attilaz c35935da81 metal backend:
- iOS9 fixes
- removing cpu/gpu syncs (wip)
2016-07-01 15:01:54 +02:00
Jonathan Howard ec5b2fa4dc Fixed implicit cast errors in Metal when strictly compiling C++ 2016-06-30 01:23:11 -07:00
Matthew Endsley 297304ebdd Attempt to use DXGI 1.1 when possible
OpenVR requires DXGI 1.1 to share textures using a keyed
mutex to guantee ordering between the compositor and application.
OpenVR will startup with an adpater created by a 1.0 factory, but
will fail when submitting frames to the compositor.

See: https://steamcommunity.com/app/358720/discussions/0/405692224241830277/
2016-06-29 15:03:16 -07:00
attilaz 317bcb0ea9 metal fixes (#827) 2016-06-28 09:06:21 -07:00
Branimir Karadžić 0494d0362c Cleanup. 2016-06-27 19:31:54 -07:00
Stuart Carnie 5a3672e7a2 ensure buffer is 16-byte aligned (#826) 2016-06-27 13:20:05 -07:00
Branimir Karadžić 3feceda054 Fixed issue #823. 2016-06-27 13:19:26 -07:00
Branimir Karadžić e47b474263 Fixed issue #823. 2016-06-27 11:03:45 -07:00
attilaz 6fdc523d39 metal: added caps, added alphaToCoverage support, fixed texture format conversion (#822) 2016-06-27 08:53:11 -07:00
Branimir Karadžić d173832129 Merge branch 'master' of github.com:bkaradzic/bgfx 2016-06-24 15:31:29 -07:00
Branimir Karadžić ef30951693 Fixed issue #820. 2016-06-24 15:31:20 -07:00
attilaz 0871a5ca00 iOS8 fixes (#821) 2016-06-24 06:13:42 -07:00
attilaz 6941d506d2 opaque/alphatest/alphablend sort order (#819) 2016-06-24 03:57:20 -07:00
Branimir Karadžić d4e41c98b2 iOS: Fixed build. 2016-06-23 15:14:12 -07:00
Branimir Karadžić 92d8065850 Cleanup. 2016-06-23 09:24:57 -07:00
attilaz 7a76179273 fixed typo in vertex half vertex format (#818)
added missing texture formats
fixed packed depth/stencil format usage
2016-06-23 08:16:27 -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ć 34ec758be7 Updated bgfx::readTexture to return frame number when result will be available. 2016-06-04 09:27:19 -07:00
Branimir Karadžić 36ead44878 Cleanup. 2016-06-02 21:31:48 -07:00
Branimir Karadžić f3fe5810ad Cleanup. 2016-06-02 21:15:37 -07:00
Branimir Karadžić e46135da8c Added ability to programmatically capture frame with RenderDoc. 2016-06-02 18:46:43 -07:00
Branimir Karadžić 21518f201f texturec: Preserve precision of input texture. 2016-06-02 16:38:26 -07:00
Branimir Karadžić 918f18c668 Fixed reset flags. 2016-05-31 12:50:28 -07:00
Sami Kyöstilä 3d23690216 Give a valid display parameter to eglMakeCurrent (#800) 2016-05-30 16:41:11 -07:00
Branimir Karadžić 10b9d079bf Cleanup. 2016-05-22 17:20:27 -07:00
Sami Kyöstilä 516e287f24 Make it possible to reset the native window (#796)
On Android when the application goes into the background, the EGL
window surface becomes invalid. It is possible to resume rendering when
coming to the foreground by resetting and reinitializing bgfx from
scratch, but this is costly in terms of performance.

This patch provides an alternative by letting the application provide a
new native window, causing bgfx to recreate just the EGL window surface
while keeping the EGL context intact. This allows the application to
resume rendering without needing to reload textures, shaders, etc.

To test, build and run the Hello World example on Android, switch to
another app and then back again. The screen should not remain blank
after switching back.
2016-05-22 17:16:25 -07:00
Branimir Karadžić ea67fa406f Fixed PTC14A decoding. Issue #792. 2016-05-19 15:04:20 -07:00
PendingChaos 768cf72ca7 GL: Fixed a bug where the depth buffer is not written to (#793)
`glDisable(GL_DEPTH_TEST)` disables not just depth testing but depth writing too. In the OpenGL renderer, it is called even when depth writing is enabled. This commit makes it fall back to `glEnable(GL_DEPTH_TEST)` and `glDepthFunc(GL_ALWAYS)` when it is enabled.
2016-05-19 12:15:34 -07:00
Mikulas Florek 16c73cd71b waitRender and waitSubmit in the stats 2016-05-15 17:27:13 +02:00
Branimir Karadžić 579cd6647e KTX: Fixed parser. 2016-05-10 15:07:35 -07:00
Branimir Karadžić 407c37e8d3 Cleanup. 2016-05-08 14:50:04 -07:00
Branimir Karadžić 9beac469af Added check for texture flag missuse. 2016-05-04 20:33:24 -07:00
Branimir Karadžić 1d25dec13e Fixed loading 24-bit DDS texture. 2016-05-04 17:51:16 -07:00
Stephen Hill bd822fffa6 Fixed reuse of va_list in traceVargs
It's not safe to reuse va_list over multiple var-arg calls.
2016-05-01 18:33:01 -04:00
Branimir Karadžić ab3ba43756 GL: Fixed shader patching. 2016-04-26 17:35:01 -07:00
Branimir Karadžić c869e48248 Fixed issue #774. 2016-04-23 11:31:36 -07:00