Commit Graph

682 Commits

Author SHA1 Message Date
Бранимир Караџић
5648104fe5 Cleanup. 2019-03-08 20:11:23 -08:00
Бранимир Караџић
f1abdd79b6 Cleanup. 2019-03-08 19:50:28 -08:00
Branimir Karadžić
0ccb1a9fed Fixed IDL. 2019-03-05 20:22:14 -08:00
Бранимир Караџић
a283e875e7 IDL: Put back old pre-encoder API to C99. 2019-02-27 11:47:11 -08:00
Бранимир Караџић
d03c20ca68 Added PFN_BGFX_GET_INTERFACE. 2019-02-27 11:15:39 -08:00
Бранимир Караџић
1243551c22 Cleanup. 2019-02-27 00:25:45 -08:00
Бранимир Караџић
29edbaa2fd Switching to IDL generated code. 2019-02-26 23:08:38 -08:00
Бранимир Караџић
8b6e0b3284 Cleanup. 2019-02-26 22:29:23 -08:00
Бранимир Караџић
cc49186d22 Cleanup. 2019-02-21 11:30:05 -08:00
Бранимир Караџић
e3e7e9aaf4 Cleanup. 2019-02-17 09:03:09 -08:00
Hugo Amnov
58563b0b1b FrameBuffer Read/Write access WIP 2019-02-17 16:50:26 +01:00
Бранимир Караџић
dbdb41d5c8 Updated docs. 2019-01-22 09:01:55 -08:00
Cloud Wu
204abeb077 missing new c99 apis 2019-01-18 20:38:39 +08:00
Бранимир Караџић
fd45604047 Added setName for index, vertex, and frame buffers. 2019-01-17 17:30:09 -08:00
Бранимир Караџић
3f3a9450ba Happy New Year! 2019-01-13 17:13:25 -08:00
Бранимир Караџић
a54f8a3f81 Renamed UniformType enum Int1 to Sampler. 2019-01-11 14:14:17 -08:00
Бранимир Караџић
5bcd51bbed Cleanup. 2019-01-06 17:23:18 -08:00
Бранимир Караџић
22fb0f7ad7 Removing VR leftovers. 2018-12-21 23:25:30 -08:00
Бранимир Караџић
abeb00f694 Cleanup. 2018-12-18 20:57:42 -08:00
Бранимир Караџић
2c0da4d2cb Added helper macros. 2018-12-14 21:38:43 -08:00
Branimir Karadžić
7639c5688c Added access parameter for frame buffer attachment. 2018-11-16 17:59:46 -08:00
Branimir Karadžić
82815f1c4c Allow passing platform data via init. 2018-10-15 17:54:04 -07:00
Branimir Karadžić
5e946a0407 Fixed submit depth argument. 2018-10-10 17:52:14 -07:00
Branimir Karadžić
bafcf613ba Added number of blit calls submitted stat. 2018-10-09 18:10:54 -07:00
Branimir Karadžić
6ff2d99c90 Updated docs. 2018-10-03 20:27:23 -07:00
Branimir Karadžić
4cbd5a5c0a Added frame buffer resolve control. 2018-10-03 17:52:26 -07:00
Branimir Karadžić
29585d85ca Added numBackBuffers to initialization parameters. 2018-10-02 16:40:12 -07:00
Branimir Karadžić
1528ba74c0 Updated docs. 2018-09-30 21:34:18 -07:00
Branimir Karadžić
da2720cf93 Cleanup. 2018-09-29 20:38:21 -07:00
Branimir Karadžić
720e5534c0 Fixed caps. 2018-09-29 20:04:24 -07:00
Branimir Karadžić
29b0650a17 Cleanup. 2018-09-27 19:04:23 -07:00
Hugo Amnov
fa2dfdf6c7 Add option to force begin() encoder for a thread (#1497) 2018-09-22 09:52:51 -07:00
Branimir Karadžić
99e6da5b50 Added file/line argument to fatal callback. 2018-09-19 17:54:51 -07:00
Branimir Karadžić
8a2ed7f126 Added init parameter for maximum allowed frame latency. 2018-09-17 17:19:03 -07:00
Branimir Karadžić
119c2bfaf6 Cleanup. 2018-09-14 21:27:18 -07:00
Branimir Karadžić
00b6beab16 Added setInstanceCount. 2018-09-14 21:23:28 -07:00
Branimir Karadžić
d1aba38a27 Clarified docs. 2018-09-12 08:16:32 -07:00
Branimir Karadžić
6adfc48bae Added limit info for maximum number of compute bindings. 2018-09-07 17:07:33 -07:00
Branimir Karadžić
ce8840993b Updated docs. 2018-08-24 19:56:01 -07:00
云风
f48b6c9951 update doc (#1465) 2018-08-24 08:13:01 -07:00
Branimir Karadžić
f40bf8e862 Added ability to sample stencil part of depth/stencil texture. 2018-08-23 17:59:47 -07:00
Branimir Karadžić
8b288f5e51 Cleanup. 2018-08-22 19:59:53 -07:00
Branimir Karadžić
88c6252e42 D3D11/12: Added support for HDR10 display output. 2018-08-22 17:18:11 -07:00
Branimir Karadžić
4433b5bcdc Separating sampler flags from texture creation flags. 2018-08-20 17:12:26 -07:00
Branimir Karadžić
14f9b41f58 Updated docs. 2018-08-10 20:35:25 +03:00
Branimir Karadžić
db0ec1f5db Removed HMD API and OculusVR support. 2018-07-19 20:22:21 -07:00
Branimir Karadžić
fa9df07b67 Cleanup. 2018-07-08 21:23:25 -07:00
NuklearBomb
443933843e Fixes "BGFX_INVALID_HANDLE undeclared" error in C (#1429) 2018-07-08 16:15:34 -07:00
Branimir Karadžić
aacc864ebe Cleanup. 2018-07-07 15:59:01 -07:00
Branimir Karadžić
2dcdab033b Cleanup. 2018-07-03 20:34:08 -07:00
Branimir Karadžić
68e43b7b01 Cleanup. 2018-06-26 09:54:17 -07:00
云风
848bc43a5f Add C99 api : bgfx_vertex_decl_decode and bgfx_vertex_decl_has (#1423) 2018-06-26 09:06:51 -07:00
Branimir Karadžić
8ec1a3a8f4 Allow non-zero terminated strings to be used with bgfx::setName API. 2018-06-20 18:01:06 -07:00
Branimir Karadžić
c130cc8981 Cleanup. 2018-06-19 21:09:44 -07:00
Branimir Karadžić
694735f95c Added init debug&profile prarameters for device creation. 2018-06-18 17:51:02 -07:00
Branimir Karadžić
448c4849ee Cleanup. 2018-06-15 17:51:45 -07:00
Branimir Karadžić
6caa3ec9f7 Updated docs. 2018-06-12 12:22:12 -07:00
Branimir Karadžić
f82d3669bd Cleanup. 2018-06-11 09:32:07 -07:00
Branimir Karadžić
8780912003 Updated API version. 2018-06-11 09:31:04 -07:00
Andrew Willmott
acd99728b7 ATC and ASTC support (#1410)
* ATC & ASTC support

- Add update format enum for bimg additions
- renderer_gl ATC and ATSC support
- renderer_mtl ASTC support
- renderer_vk ASTC support
- updates to other backends for new enums
- Support emulated ATC

* cleanup

* Add texture_compression test files for ATC/ASTC formats

* Update 'update' example for ATC formats

- Generalise tile code a little
- Add ATC variants
- Ignoring ASTC for now as not emulated -- should we add empty
  checkerboard emulate though?
2018-06-11 09:23:41 -07:00
Branimir Karadžić
5995b27015 Updated texture format with new compressed formats. 2018-06-11 09:17:57 -07:00
Branimir Karadžić
9da45ed78c Renamed bgfx::updateDynamic* to just bgfx::update. 2018-06-09 17:29:00 -07:00
Branimir Karadžić
bc456cdbc9 Added topology flip for tristrip. 2018-06-08 16:52:37 -07:00
Branimir Karadžić
305cc6351f Cleanup. 2018-06-07 16:02:28 -07:00
Branimir Karadžić
fbc572ee12 Added bgfx::setVertexCount for auto generated vertices with gl_VertexID. 2018-06-04 18:15:07 -07:00
Branimir Karadžić
e009112aea Updated docs. 2018-05-18 09:34:49 -07:00
Branimir Karadžić
0e0da47e61 Added primitive count to perf stats. 2018-05-17 17:24:10 -07:00
Branimir Karadžić
0a72ce0110 Cleanup. 2018-04-22 08:12:42 -07:00
Branimir Karadžić
28e1839342 Added transient buffer stats. 2018-04-18 16:35:57 -07:00
Branimir Karadžić
077f11cdb4 Cleanup. 2018-04-17 20:40:28 -07:00
Branimir Karadžić
aef6617165 C99: Fixed struct/function shadowing issue. 2018-04-17 19:30:43 -07:00
Branimir Karadžić
bac72eb578 Added bgfx::init default argument. 2018-04-17 16:50:33 -07:00
Branimir Karadžić
5bb6a14876 Changed bgfx::init to take init parameters as structure instead of arguments. 2018-04-17 15:42:18 -07:00
Branimir Karadžić
e5031c5897 Added texture&rt memory stats. 2018-03-28 18:05:49 -07:00
Branimir Karadžić
ba22a5519e Updated docs. 2018-03-07 07:57:35 -08:00
Branimir Karadžić
584b8b34f0 Added support for independent RGB channel write control. 2018-02-13 12:35:23 -08:00
Branimir Karadžić
7e505c2c3c Cleanup. 2018-02-11 14:57:48 -08:00
Branimir Karadžić
3a8857654f Added ability to set offset in instance data buffer. 2018-02-10 15:36:32 -08:00
Branimir Karadžić
a96805e1f5 Updated docs. 2018-02-10 12:10:29 -08:00
Branimir Karadžić
3c053d4e1e Cleanup. 2018-02-08 19:30:09 -08:00
Branimir Karadžić
8adb5fc020 Added maxTextureLayers to caps/limits. 2018-02-08 16:48:54 -08:00
Branimir Karadžić
e563dedb25 Cleanup. 2018-02-03 11:18:21 -08:00
Johan Sköld
76442f2f29 Fixing macOS build. (#1324)
- Fixing compiler errors from C functions with missing argument lists.
- Silencing warning about -Wunused-but-set-variable being unknown.
- Silencing warnings about comma mis-use.
- Silencing warning about implicit cast from unsigned to int.
2018-01-30 21:47:27 -08:00
Branimir Karadžić
d04301dfda Fixed VGA color order, and clarified docs. 2018-01-25 20:34:17 -08:00
Branimir Karadžić
0dc5c8392f Removed unused argument from setImage. 2018-01-19 17:06:58 -08:00
Branimir Karadžić
f44c8e2b14 Happy New Year! 2018-01-01 11:16:06 -08:00
James Fulop
7beeea408e docs cleanup (#1305) 2017-12-31 15:31:08 -08:00
Lectem
070120b59d Fix GCC error: extra ‘;’ [-Werror=pedantic] (#1295)
The macro `BGFX_HANDLE` is used the following way `BGFX_HANDLE(DynamicIndexBufferHandle);`, however it creates an error when using -Werror=pedantic with GCC since the `;` is unneeded.
I removed the `;` as I can't silence this warning without removing pendantic as a whole.
2017-12-17 16:20:57 -08:00
Branimir Karadžić
f7fea65bec Removed obsolete platforms. 2017-12-14 20:40:30 -08:00
Branimir Karadžić
061fc334c6 Updated docs. 2017-12-04 19:00:40 -08:00
Branimir Karadžić
6adb0090d0 Added resource stats. 2017-12-03 19:42:06 -08:00
Branimir Karadžić
0ce8bd136d Updated docs. 2017-12-03 18:16:06 -08:00
Branimir Karadžić
0e5f3457c3 Added support for texture direct access. 2017-12-02 22:12:27 -08:00
Branimir Karadžić
be2c709812 Cleanup. 2017-11-27 19:34:35 -08:00
Branimir Karadžić
b3fcc8350b Fixed issue #1281. 2017-11-27 09:06:57 -08:00
Branimir Karadžić
77c00da989 Changed API to use ViewId (uint16_t) instead of uint8_t. 2017-11-24 11:21:51 -08:00
云风
8abbd0d05c For C, need struct prefix (#1278) 2017-11-15 09:13:56 -08:00
Branimir Karadžić
cd158d5c5f Updated C99 API. 2017-11-09 20:03:44 -08:00
Branimir Karadžić
6480a62844 Added encoder stats. 2017-11-02 22:06:39 -07:00
Branimir Karadžić
0ca7f241f8 Merge branch 'master' into encoder 2017-10-30 09:08:51 -07:00
Branimir Karadžić
3e5f58c649 Updated docs. 2017-10-30 09:08:43 -07:00
Branimir Karadžić
4656a892ef Cleanup. 2017-10-29 21:06:22 -07:00
Branimir Karadžić
0b20e92797 Encoder API WIP. 2017-10-28 18:43:21 -07:00
Branimir Karadžić
f6a97f9d87 Changed setViewOrder API to specify type required for array. 2017-10-22 18:37:51 -07:00
云风
630ec6c1de fix C syntax (#1258) 2017-10-13 09:26:09 -07:00
Branimir Karadžić
bf3f68a596 Merge branch 'master' of github.com:bkaradzic/bgfx 2017-10-12 21:03:15 -07:00
Branimir Karadžić
2d31ca0162 Cleanup. 2017-10-12 14:22:09 -07:00
Branimir Karadžić
3339ebd61f Fixed reference to old function name. Issue #1256. 2017-10-12 09:14:35 -07:00
Branimir Karadžić
1c7f8a3512 Cleanup. 2017-10-11 16:24:40 -07:00
Branimir Karadžić
ba62e07459 Cleanup. 2017-10-06 21:59:03 -07:00
Branimir Karadžić
cfa81f314a Cleanup. 2017-10-06 21:50:38 -07:00
Branimir Karadžić
e374f7c1ca Updated API version. 2017-10-06 18:08:46 -07:00
Branimir Karadžić
4cdab3e971 Exposed internal profiler callbacks. 2017-10-06 18:07:40 -07:00
Branimir Karadžić
aa567d3d72 D3D11: Added GPU memory stats. 2017-09-26 18:09:15 -07:00
Branimir Karadžić
4b4b1c31a6 Added perf timer for API thread. 2017-09-22 21:39:16 -07:00
Branimir Karadžić
b383159633 Updated docs. 2017-09-07 20:42:20 -07:00
Branimir Karadžić
83d0aab77a Updated C99 API. 2017-08-31 22:08:22 -07:00
Branimir Karadžić
3aec2b89bf Added bgfx::setName to set resource debug name. 2017-08-30 21:46:57 -07:00
Branimir Karadžić
3544dc7389 Updated docs. 2017-08-20 15:11:16 -07:00
Branimir Karadžić
9d70d38793 Updated docs. 2017-08-20 15:08:40 -07:00
Branimir Karadžić
167db342bd Added BGFX_DEBUG_PROFILER. 2017-08-20 14:46:33 -07:00
Branimir Karadžić
c930137c54 Internal profiler WIP. 2017-08-13 21:15:39 -07:00
Branimir Karadžić
5e1872f3cf Updated docs. 2017-08-01 11:19:10 -07:00
Branimir Karadžić
0c204d3380 Updated docs. 2017-07-31 16:49:58 -07:00
Branimir Karadžić
46126c1acd Cleanup. 2017-07-30 05:50:41 -07:00
Branimir Karadžić
8272809534 Added 32-bit dispatch dimension. 2017-07-27 14:57:31 -07:00
Branimir Karadžić
a71a1ab1c0 Fixed compute type defines. 2017-07-26 20:53:49 -07:00
Branimir Karadžić
393ee208ca Added timeout period for renderFrame call. 2017-07-18 19:58:28 -07:00
Branimir Karadžić
3b290ebb7e Cleanup. 2017-07-18 18:32:45 -07:00
Branimir Karadžić
7c9b2b7257 API change: Simplified destroy functions to use overload resolution. 2017-07-17 22:29:43 -07:00
Branimir Karadžić
c60d7810c2 Updated docs. 2017-07-17 20:23:44 -07:00
Viktor Kirilov
3ad7b43416 Fix exporting macros for the C99 API (#1204)
* Fix exporting macros for the C99 API when building bgfx as a shared library - now works with MinGW-w64 under windows and also under linux when -fvisibility=hidden is passed to the compiler to hide all symbols by default (which is recommended - it's a good practice)

* merged msvc and mingw configurations since mingw supports __declspec as well
2017-07-14 08:59:59 -07:00
Branimir Karadžić
297336acd4 Updated docs. 2017-07-09 23:27:04 -07:00
Branimir Karadžić
1e0e2555dc Cleanup. 2017-07-02 11:56:12 -07:00
Branimir Karadžić
839c409cd5 Updated docs. 2017-07-02 11:49:41 -07:00
Branimir Karadžić
9215db2154 noop: Fixed embedded dummy shader. 2017-06-21 19:47:36 -07:00
Branimir Karadžić
6910ddba9e WIP: Adding more sort key modes. 2017-06-14 18:10:42 -07:00
Branimir Karadžić
56b01acc70 Updated docs. 2017-06-12 09:59:25 -07:00
Branimir Karadžić
c39c6121a6 Removed obsolete platform. 2017-06-11 22:54:52 -07:00
Branimir Karadžić
07d799f72e Renamed constants to new style. 2017-06-09 21:57:08 -07:00
Branimir Karadžić
24569934a1 Added color2/3 attributes. 2017-06-06 17:25:17 -07:00
Branimir Karadžić
c4f5129e84 Removed support for Native Client. https://developer.chrome.com/native-client/migration 2017-05-30 23:49:53 -07:00
Branimir Karadžić
737af3257d Cleanup. 2017-05-29 10:52:23 -07:00
Branimir Karadžić
68c6b46a65 Exposed vertex stream argument to API. 2017-05-14 11:48:59 -07:00
Branimir Karadžić
38b0d2fe7c Cleanup. 2017-05-03 11:27:28 -07:00
Branimir Karadžić
ac378f9a6a Cleanup. 2017-05-02 11:46:09 -07:00
Branimir Karadžić
45e7bf5df4 Making RG11B10F name consistent with other texture formats. 2017-04-24 20:31:58 -07:00
Branimir Karadžić
68ad150981 Cleanup. 2017-04-15 22:52:17 -07:00
Branimir Karadžić
1327530d70 Bumped version. 2017-04-03 22:54:31 -07:00
Branimir Karadžić
8ce85d2462 Added bimg dependency. 2017-04-03 22:42:27 -07:00