Commit graph

893 commits

Author SHA1 Message Date
Branimir Karadžić
524b28a9f7 Cleanup. 2015-01-30 10:31:50 -08:00
Branimir Karadžić
a1d50d6ea4 Cleanup. 2015-01-29 19:54:23 -08:00
Branimir Karadžić
3de816bf34 Added dynamic buffer resizing. 2015-01-28 17:56:29 -08:00
Branimir Karadžić
34ab21c7cf Merge branch 'master' of github.com:bkaradzic/bgfx 2015-01-28 11:53:21 -08:00
Branimir Karadžić
37ec631ec7 Fixed issue #249. 2015-01-28 11:52:58 -08:00
Branimir Karadžić
3b54571447 Reverted bad commit. 2015-01-26 19:46:18 -08:00
Branimir Karadžić
b2a91c4a29 Cleanup. 2015-01-26 19:09:51 -08:00
Branimir Karadžić
02d32dc1bb Fixed vertex buffer update offset. 2015-01-26 09:19:34 -08:00
Branimir Karadžić
5129b8462e Updated DX12 stub. 2015-01-24 22:19:42 -08:00
Branimir Karadžić
f763ec9355 Updated .gitignore. 2015-01-24 22:07:42 -08:00
Branimir Karadžić
3a7e9ff7cd Fixed transient buffer alignment. 2015-01-23 22:40:04 -08:00
Branimir Karadžić
2764d9d2aa Fixed issue #239. 2015-01-23 22:18:07 -08:00
Branimir Karadžić
938c1a0e92 Fixed dynamic index buffer offset. 2015-01-23 17:27:15 -08:00
Branimir Karadžić
6fda797b23 Merge branch 'dev' 2015-01-21 20:41:48 -08:00
Branimir Karadžić
0516b5603b Added max anisotropy reset flag. 2015-01-21 20:39:42 -08:00
Branimir Karadžić
a47839be56 Removed glcontext_ios.h issue #237. 2015-01-20 22:14:27 -08:00
Branimir Karadžić
be8c9576f5 Fixed issue #225. 2015-01-20 22:07:30 -08:00
Branimir Karadžić
6cb953af14 Rename bx::swap to bx::xchg. 2015-01-20 00:04:30 -08:00
Branimir Karadžić
21fff2de4b Cleanup. 2015-01-14 21:31:08 -08:00
Branimir Karadžić
1cf70cbcdd Fixed compiler warning. 2015-01-13 22:49:39 -08:00
Branimir Karadžić
069de61bdb Combined sampler and compute binding. 2015-01-13 22:34:48 -08:00
Branimir Karadžić
99af670622 Cleanup. 2015-01-13 19:43:04 -08:00
Miodrag Milanovic
86d6e003cc Mark DX11 as unsuported if build is created for higher windows version but running on WinXP or lower 2015-01-13 19:35:44 +01:00
Miodrag Milanovic
13ca8fc45b On 32bit we should try DX9 too on Win 8 2015-01-13 16:03:50 +01:00
Branimir Karadžić
4e39749b1e DX11: Fixed initialization error when D3D11 SDK Layers is not present. 2015-01-12 20:46:50 -08:00
Branimir Karadžić
8d70a2abde Added gl_PrimitiveID builtin for fragment shaders. 2015-01-12 19:37:42 -08:00
Branimir Karadžić
904f52ab91 Fixed compile error. 2015-01-11 18:02:34 -08:00
Branimir Karadžić
bb96d76c0a Added discard framebuffer resources after use. 2015-01-11 18:00:08 -08:00
Branimir Karadžić
ff7f967c1b Removed _BIT suffix from BGFX_CLEAR_* flags. 2015-01-10 21:39:45 -08:00
Branimir Karadžić
a038b6d426 Added ability to bind static index buffer to compute. 2015-01-10 20:56:38 -08:00
Branimir Karadžić
ef05e607d6 Added support for GPU compute dynamic index buffer. 2015-01-10 20:38:47 -08:00
Branimir Karadžić
eef76d08cb Added PTC14(A) to emulated formats. 2015-01-10 15:16:08 -08:00
Branimir Karadžić
01ac66258e Added PTC14(A) decoding fallback. 2015-01-09 22:31:52 -08:00
Branimir Karadžić
dbca2689ca Fixed issue#226. 2015-01-08 20:43:36 -08:00
Branimir Karadžić
86765854b0 Fixed missing DX11 defines when building with MinGW on Linux. 2015-01-05 20:59:58 -08:00
Branimir Karadžić
4b1b62e6bd Fixed MinGW build from Linux. 2015-01-04 16:23:00 -08:00
Branimir Karadžić
649d7f74d2 Updated copyright year. 2015-01-02 14:43:11 -08:00
Branimir Karadžić
c25dd466be Updated copyright year. 2015-01-01 15:04:46 -08:00
Branimir Karadžić
efe0bc3c47 Fixed build. 2014-12-28 12:51:06 -08:00
Branimir Karadžić
1be040f2ab Added compute dispatch flags. 2014-12-28 11:36:36 -08:00
Branimir Karadžić
9d83a5307c Fixed example 24-nbody with OVR. 2014-12-28 10:12:24 -08:00
Branimir Karadžić
6e73d4ea34 Predefined uniforms refactoring. 2014-12-27 19:00:41 -08:00
Branimir Karadzic
c8a112d71e X11: Relax polling input. 2014-12-25 09:27:51 -08:00
Miodrag Milanovic
3df7041cba Fixed compile and linking under mingw environment 2014-12-24 11:46:49 +01:00
Branimir Karadžić
857a2b18f1 Android: Fixed GLES3+ build. 2014-12-23 23:32:36 -08:00
Branimir Karadžić
08d97d8c4b OVR: Support for multiple SDK versions. 2014-12-21 18:55:33 -08:00
Branimir Karadžić
83f151f71b Added 24-nbody compute shader example. 2014-12-19 21:09:58 -08:00
Branimir Karadzic
9d1d59604c Implemented missing casts. 2014-12-18 10:22:27 -08:00
Branimir Karadžić
341eb4e609 Fixed issue #202. 2014-12-16 23:25:18 -08:00
Branimir Karadžić
9ae934ffd7 Included bgfx_shader.sh to bgfx_compute.sh. 2014-12-16 20:48:16 -08:00
Branimir Karadžić
efcb10aef6 Fixed compute program destruction. 2014-12-16 20:12:09 -08:00
attilaz
28f17cd8f2 added view id checks 2014-12-15 16:20:49 +01:00
Branimir Karadžić
504af5216b Fix. 2014-12-14 16:47:01 -08:00
Branimir Karadžić
10aeb83a69 Removed psapi.h from non-windows builds. 2014-12-14 16:43:39 -08:00
Branimir Karadžić
d45e245039 Updated RenderDoc to nightly 20141211. Added support for capturing OpenGL. 2014-12-11 20:48:16 -08:00
Branimir Karadžić
bbf4819c01 Fixed issue #208. 2014-12-11 20:17:38 -08:00
attilaz
108f0e7aca check if _mem is NULL 2014-12-11 12:05:30 +01:00
Branimir Karadžić
3ccf3f70bb Cleanup. 2014-12-10 22:44:00 -08:00
Branimir Karadžić
47f100d70f Fixed compute buffer. 2014-12-10 21:09:13 -08:00
Branimir Karadžić
1f96070f28 Cleanup. 2014-12-09 23:19:53 -08:00
Branimir Karadžić
ad47659669 Added compute buffer support. 2014-12-09 23:16:27 -08:00
Branimir Karadžić
1a5dae9862 Fixed issue #200. 2014-12-06 18:12:40 -08:00
Branimir Karadžić
18e9c30a0c Updated OVR SDK 0.4.4. 2014-12-05 19:17:59 -08:00
Branimir Karadžić
254efb5a3d Added bgfx::dbgTextImage API for drawing directly into debug text buffer. 2014-12-04 20:32:19 -08:00
Branimir Karadžić
584a32038f Cleanup. 2014-12-04 19:56:19 -08:00
Branimir Karadžić
1f696d2f7f DX11: Fixed device creation flags. 2014-12-04 19:35:01 -08:00
Branimir Karadžić
cafe34ee2f Merge branch 'master' of github.com:bkaradzic/bgfx 2014-12-02 20:33:23 -08:00
Branimir Karadžić
a7290afc4f DX11: Fixed screen shot. 2014-12-02 20:28:14 -08:00
Branimir Karadzic
38f340b540 Fixed issue #197. 2014-12-01 08:21:13 -08:00
Branimir Karadžić
3e4b82e7fe Fixed typo. Issue #196. 2014-11-30 09:06:47 -08:00
Branimir Karadžić
7c1c180243 Fixed compile error. 2014-11-30 00:03:02 -08:00
Mike Popoloski
3c04ad2d4c Fixing warnings about locals shadowing others of the same name. At least one of these was an actual bug. 2014-11-22 17:34:09 -05:00
Mike Popoloski
8af790201f D3D_FEATURE_LEVEL_11_2 isn't actually a thing. The D3D11.2 features are checked explicitly instead of using a feature level. 2014-11-22 17:13:14 -05:00
Branimir Karadžić
6c7589c0c9 Cleanup. 2014-11-17 21:35:53 -08:00
Branimir Karadžić
70253127e4 D3D11: Moved missing defines into header. 2014-11-17 21:13:55 -08:00
Branimir Karadžić
ddddd458f6 Added D3D_FEATURE_LEVEL_11_1 define when it's not defined. 2014-11-17 19:38:58 -08:00
Mike Popoloski
d1d38fb825 Fixing whitespace issues. 2014-11-17 22:23:28 -05:00
Mike Popoloski
850059c1cd Fixing D3D11 device creation issues on downlevel hardware. 2014-11-17 22:18:35 -05:00
Mike Popoloski
48bfab3713 Fixing compile errors on MSVC. 2014-11-15 15:52:14 -05:00
Mike Popoloski
893035af65 Merge branch 'master' of https://github.com/bkaradzic/bgfx 2014-11-15 13:32:22 -05:00
Mike Popoloski
f55a91db97 Adding specialized codepaths for swapchain creation on WinRT, since it requires DXGI 1.3. 2014-11-14 08:22:32 -05:00
Mike Popoloski
0b55cb1348 Adding WinRT platform function and setting it to use multithreaded rendering. 2014-11-14 08:19:33 -05:00
Branimir Karadžić
545978d661 Cleanup. 2014-11-12 22:16:19 -08:00
Branimir Karadžić
e147e7b2e6 OVR: Added rendering without distortion. 2014-11-12 21:26:28 -08:00
Branimir Karadžić
31efb2991f Updated to OVR 0.4.3. Added support for event char to read keyboard text input. 2014-11-08 20:57:47 -08:00
Branimir Karadžić
b3a9c38d5c Fixed narrowing conversion warning. 2014-11-04 20:01:42 -08:00
Branimir Karadžić
a2153729be Added HMD recenter support. Updated examples to support HMD. 2014-11-02 00:06:18 -07:00
Branimir Karadžić
ea36931ee1 Cleanup. 2014-10-30 21:06:52 -07:00
Branimir Karadzic
f960d0cc31 Cleanup. 2014-10-29 15:50:41 -07:00
Branimir Karadžić
f6cf4df3d3 Added OculusVR support. 2014-10-28 22:08:55 -07:00
Branimir Karadžić
e8ff46840e Cleanup. 2014-10-28 21:41:34 -07:00
Branimir Karadžić
c9bef966ca Cleanup. 2014-10-26 00:55:49 -07:00
Branimir Karadžić
62abe9db5e Cleanup. 2014-10-25 19:16:24 -07:00
Branimir Karadžić
208a348ab2 Fixed compile errors. Added default part of view debug name. Added example how to use view debug name. 2014-10-25 18:07:51 -07:00
Branimir Karadžić
96ecaffee0 Cleanup. 2014-10-22 20:45:08 -07:00
Branimir Karadžić
8a354b0785 Added line strip primitive type. 2014-10-22 19:19:33 -07:00
Branimir Karadžić
41fae47351 Fixed some false positive clang analysis warnings. 2014-10-21 23:38:16 -07:00
Branimir Karadzic
c3ed0050d2 Fixed compile error. 2014-10-21 23:00:23 -07:00
Branimir Karadzic
07f052201a Added clang analyzer config. 2014-10-21 22:58:07 -07:00
Branimir Karadžić
29b7249fc1 Cleanup. 2014-10-18 15:44:45 -07:00
Branimir Karadzic
7c2b232220 Fixed clang build. 2014-10-17 21:39:26 -07:00
Branimir Karadžić
a0068524a9 Fixed MinGW macro collsion. 2014-10-17 21:01:39 -07:00
Branimir Karadžić
5e39e3b16a clang on VS201x. 2014-10-16 19:54:29 -07:00
Branimir Karadžić
7fa124eeab Fixed alignment macro. 2014-10-13 21:31:18 -07:00
Branimir Karadžić
bfa1f9f3af Moved ctor/dtor into init/shutdown to have class ctor fully initialized prior calling initialization code. 2014-10-13 21:14:51 -07:00
Branimir Karadžić
3b01df7293 Cleanup. 2014-10-13 20:05:23 -07:00
Branimir Karadžić
c7901436a5 Fixed issue #169. C99 function name mismatch between header and implementation. 2014-10-12 09:58:57 -07:00
Branimir Karadzic
4ba9212d35 Cleanup. 2014-10-11 22:24:07 -07:00
Branimir Karadžić
ea571fd754 Cleanup. 2014-10-11 15:39:53 -07:00
Branimir Karadzic
1def740a7c Fixed unused variable warning. 2014-10-11 14:14:12 -07:00
Branimir Karadžić
f1533ccc74 Removed emulated flags from caps. 2014-10-11 12:51:32 -07:00
Branimir Karadžić
9126ca8fd7 Added DX12 stub. 2014-10-11 11:24:37 -07:00
Branimir Karadzic
3dd237aefa Updated docs. 2014-10-11 10:12:27 -07:00
Branimir Karadzic
a96837c1ea Fixed VS2013 warning. 2014-10-10 09:26:58 -07:00
Branimir Karadzic
5ea84e8274 Added allocTransform API to return pointer to internal matrix cache. 2014-10-08 20:13:57 -07:00
Branimir Karadzic
f5b8d636a6 GL: Fixed constants commit. 2014-10-08 19:58:29 -07:00
Branimir Karadžić
51d8daf762 Fixed constant buffer allocation logic. 2014-10-08 19:36:59 -07:00
Branimir Karadžić
14a71bd477 Cleanup. 2014-10-07 22:05:35 -07:00
Branimir Karadžić
b1878edd2e Cleanup. 2014-10-06 22:10:55 -07:00
Branimir Karadžić
493c964423 Cleanup. 2014-10-06 19:21:08 -07:00
Branimir Karadžić
d90b754bae Cleanup. 2014-10-05 18:20:05 -07:00
Branimir Karadžić
a05acba1ee Added state cache info to debug panel. 2014-10-05 00:14:21 -07:00
Branimir Karadzic
8dab207b36 OSX: Fixed window resize. 2014-10-01 20:25:56 -07:00
Branimir Karadžić
1b5454bd51 Fixed 22-windows example. 2014-09-30 22:20:16 -07:00
Branimir Karadžić
61ed393f6c DX11: Allow lost device for few frames. 2014-09-30 21:16:24 -07:00
Branimir Karadzic
9ba0956812 GLX: Added swap chain support. 2014-09-28 14:38:52 -07:00
Branimir Karadžić
80f2044a7c Cleanup. 2014-09-28 11:03:47 -07:00
Branimir Karadžić
d705fbc9bd Fixed RenderDoc crash when IntelGPA is present. 2014-09-27 20:40:47 -07:00
Branimir Karadžić
d35c14164b Updated README. 2014-09-27 14:15:56 -07:00
Branimir Karadžić
58b37542c8 Removed *Mask API. 2014-09-27 12:07:40 -07:00
Branimir Karadžić
c659e70bdc Uncomment RenderDoc dlclose. Fixed in RenderDoc nightly 9/26/14. 2014-09-26 20:31:54 -07:00
Branimir Karadžić
4657f97c6f DX11: Integrated RenderDoc capture. 2014-09-25 22:41:53 -07:00
Branimir Karadžić
7362288131 Added EGL swap chain. 2014-09-24 19:22:15 -07:00
Branimir Karadžić
f4c7f69ed7 Added swap chain caps. 2014-09-23 20:35:39 -07:00
bkaradzic
357c2bfce1 Disabled dxerr, causes issues when building without DXSDK. 2014-09-23 07:46:39 -07:00
Branimir Karadžić
3d3a725812 DX9: Fixed swap chain depth creation. 2014-09-22 23:00:42 -07:00
Branimir Karadžić
de3d152b9c Added multiple windows example. 2014-09-22 19:34:10 -07:00
miodragm
11b229c235 Enable DX11 for Win7 as well 2014-09-19 18:20:12 +02:00
Branimir Karadžić
e1d98eb465 Reverting to __uuidof... 2014-09-19 00:07:45 -07:00
Branimir Karadžić
f000f259d7 Fixed missing uuid. 2014-09-18 23:58:20 -07:00
Branimir Karadžić
338bbcb559 Cleanup. 2014-09-18 20:28:41 -07:00
m.milanovic@levi9.com
3e572a9616 Fixed DirectX 11 render compile errors 2014-09-18 15:33:09 +02:00
Branimir Karadžić
8f09044ea4 Fixed 64-bit warning. 2014-09-16 20:51:55 -07:00
Branimir Karadžić
c193bd0b62 Updated C99 header. 2014-09-14 11:31:23 -07:00
Branimir Karadžić
506efdc072 GLES2: Added EXT_draw_buffers support. 2014-09-12 00:02:12 -07:00
Branimir Karadžić
eec4ae9847 Fixing paths. 2014-09-10 21:48:08 -07:00
Branimir Karadžić
db954c9031 Fixed GCC warning. 2014-09-07 23:21:17 -07:00
bkaradzic
ba1c5353e6 Fixed iOS build. 2014-09-07 17:52:02 -07:00
bkaradzic
96e07d3929 Fixed OSX build. 2014-09-07 17:46:52 -07:00
Branimir Karadžić
2c03cf4927 Added multiple windows support. 2014-09-07 17:17:38 -07:00
bkaradzic
529b9274a5 Cleanup. 2014-09-03 00:29:54 -07:00
Branimir Karadžić
d3af45bd56 Cleanup. 2014-09-01 13:22:34 -07:00
Branimir Karadžić
6b00f65849 Increased number of MRT to 8. 2014-09-01 11:24:51 -07:00
Branimir Karadžić
3318053355 Fixed issue #145. 2014-08-28 21:02:55 -07:00
bkaradzic
07f5cd2b70 Merge branch 'master' of github.com:bkaradzic/bgfx 2014-08-27 20:11:33 -07:00
bkaradzic
81c4b7d2ae Fixed VS2012 warning when DXSDK and WindowsSDK are included. 2014-08-27 20:11:23 -07:00
Branimir Karadžić
4fb802e405 Added R11G11B10F format. 2014-08-26 20:56:53 -07:00
Branimir Karadžić
3b73fb2063 Cleanup. 2014-08-25 20:50:36 -07:00
Branimir Karadžić
af8bc1fac0 RPI: Init EGL via dispmanx. 2014-08-24 20:39:35 -07:00
Branimir Karadžić
140e990ab4 Added RaspberryPi platform. 2014-08-24 17:41:41 -07:00
bkaradzic
222fcbe75a Cleanup. 2014-08-23 14:13:23 -07:00
Branimir Karadzic
a59593b1d2 Fixed missing define. 2014-08-23 14:01:52 -07:00
Branimir Karadžić
612eb2f7ed Fixed uniform leak at shutdown. 2014-08-23 10:37:34 -07:00
bkaradzic
d138e01e72 Fixed undefined define. 2014-08-22 11:06:05 -07:00
Branimir Karadžić
2dcfe10acf Fixed undefined defines errors. 2014-08-21 22:05:02 -07:00
Branimir Karadžić
17b2559e35 Cleanup. 2014-08-21 21:02:41 -07:00
Branimir Karadžić
b209308fbc Cleanup. 2014-08-20 20:11:50 -07:00
Matthew Endsley
dc9e29601d Resolve active render target in D3D9 before switch
On D3D9 platforms that work on active render target instead of
a specified surface, the resovle of the previous RT must happen
before the new RT becomes active.
2014-08-20 15:55:32 -07:00
Branimir Karadžić
b5627dc1b5 Made VertexDecl not appear as POD type to compiler. 2014-08-19 20:23:46 -07:00
Branimir Karadžić
66890595b9 Added serialization for vertex decl attribute enums. Binary format changes. Rebuilt all meshes and shaders. 2014-08-17 17:20:15 -07:00
Branimir Karadžić
3295126799 Updated texture container texture format support. 2014-08-12 21:47:01 -07:00
Branimir Karadžić
e42d878fe8 Fixed Issue #128 caused by read from unaligned memory (undefined behavior? when running asmjs). 2014-08-07 20:31:35 -07:00
Branimir Karadžić
659feeec61 Fixed NaCl debug build. 2014-08-06 22:16:17 -07:00
Branimir Karadžić
8c55c8f8a9 FreeBSD ifdefs. 2014-08-06 21:53:32 -07:00
Branimir Karadžić
c16f7a0f1f Manually integrated some FreeBSD changes from @lye #132 pull request. 2014-08-06 21:18:41 -07:00
Branimir Karadžić
d525e96dd9 Manually integrated some FreeBSD changes from @lye #132 pull request. 2014-08-06 21:17:14 -07:00
Branimir Karadžić
5ddec2b790 DX11: Added static linking with D3D libs for WinRT. 2014-08-04 22:01:20 -07:00
Branimir Karadžić
be4729940c Added BC6H and BC7 compressed formats. 2014-08-01 19:24:42 -07:00
bkaradzic
f6e740dee3 Updated README. 2014-07-30 22:44:26 -07:00
Branimir Karadžić
1c04b822bd Cleanup. 2014-07-30 20:37:54 -07:00
Branimir Karadžić
f580110d7f Cleanup. 2014-07-30 20:34:26 -07:00
Branimir Karadžić
1d0a9841d7 Added intel fragment shader ordering. 2014-07-29 21:29:38 -07:00
Branimir Karadžić
a8abead615 Fixed issue#123 2014-07-29 19:26:08 -07:00
Branimir Karadžić
e782f2f873 Fixed preprocessor bug that trucnates macro arguments to first character when concatenating them. 2014-07-28 20:15:01 -07:00
Branimir Karadžić
6c8eeec36e Added caps info for all texture formats. 2014-07-27 20:44:02 -07:00
Branimir Karadžić
ac49c6f129 Added RG8 texture format. 2014-07-25 23:16:11 -07:00
Branimir Karadžić
c2c1f42ecc Cleanup. 2014-07-24 23:31:52 -07:00
Branimir Karadžić
532fdf2198 GLES3.1: Fixed getting compute shader active uniform information. 2014-07-24 21:30:57 -07:00
Branimir Karadžić
ade8f49b6d Added 32-bit texture formats. 2014-07-21 21:13:16 -07:00
Branimir Karadžić
62b620a1a0 Initial compute support. 2014-07-20 20:27:13 -07:00
Branimir Karadžić
2db00e3351 DX9: Fixed texture lod. 2014-07-12 16:41:51 -07:00
Branimir Karadžić
0ebb4923fc Added interpolator qualifier support. 2014-06-25 18:43:26 -07:00
Branimir Karadžić
c7a257c27d Fixed issue#106. 2014-06-24 20:29:43 -07:00
Branimir Karadžić
99b2441378 Added check to prevent multiple calls to bgfx init. 2014-06-22 21:37:38 -07:00
Branimir Karadžić
32ed7f5bf6 GL: Fixed MSAA + stencil. 2014-06-22 18:57:37 -07:00
Branimir Karadžić
1f7152cfc5 Cleanup. 2014-06-22 18:51:14 -07:00
Branimir Karadžić
2e38f2f483 Cleanup. 2014-06-14 18:11:54 -07:00
Branimir Karadžić
0728b91bfa Workaround C4127 MSVC level 4 warning. 2014-06-08 20:57:39 -07:00
Branimir Karadžić
0f330a7a08 Added bgfx platform C99 header. 2014-06-05 22:49:51 -07:00
Branimir Karadžić
82216b2176 Fixed mip calculation. 2014-06-05 21:07:08 -07:00