Commit Graph

2715 Commits

Author SHA1 Message Date
Sandy Carter
a38e873f8a rebind instance data buffer if index buffer changes
Fix case of drawing different indices of same vertex buffer using same
instance data.

This can happen in the case of conditionally drawing subsets of vertex
buffer stored in different index buffers while re-using non-transient
instance buffers.
2020-02-01 09:18:51 -08:00
Abraham Stolk
bb07e99907 Fix clear range. 2020-01-30 12:18:28 -08:00
Abraham Stolk
2efeada1c0 This fixes a buffer overflow in an array of write descriptor sets. 2020-01-30 12:18:28 -08:00
Алексей Тулинов
ac9c330100 Fixes #2000. Restored old behavior of handling shaders with "#version 430" in them. 2020-01-29 19:23:31 -08:00
James Fulop
b9ab564c47 cleanup: fix redundancy in error message 2020-01-24 21:27:46 -08:00
JW
97bafaa7b8 Check for GLX vblank extensions more properly.
Previously, the code checked for an extension by checking if the pointer returned from
glXGetProcAddress was NULL or not.

But in truth, you can get a non-NULL pointer even if that extension is not supported.
Now, we parse the glXQueryExtensionsString() results.

GLFW code that does similar checks, for reference: 51bb76c7c3/src/glx_context.c (L208)

fixes #1367
2020-01-24 21:26:56 -08:00
Бранимир Караџић
6a1287e43d Cleanup. 2020-01-23 09:10:05 -08:00
Attila Kocsis
ecc8f791f2 always calling UI API on main thread 2020-01-22 19:55:13 -08:00
Бранимир Караџић
b14f9dc280 Cleanup. 2020-01-21 20:08:48 -08:00
Бранимир Караџић
de9a508409 Cleanup. 2020-01-21 09:16:55 -08:00
Cedric Guillemet
9ee39e8241 PR feedback 2020-01-21 09:11:53 -08:00
Cedric Guillemet
b4cac17b93 default parameters 2020-01-21 09:11:53 -08:00
Cedric Guillemet
4b83e0f5bc discard flags 2020-01-21 09:11:53 -08:00
Бранимир Караџић
82f56b5987 Happy New Year! 2020-01-14 21:37:06 -08:00
Daniele Bartolini
d102296d15 Suppress glxext.h #include-ed by glx.h 2020-01-13 22:00:39 -08:00
Oliver Collyer
7b7dca065b implemented overrideInternal for Metal
The internal pointer is interpreted as being of type id<MTLTexture>.
2020-01-05 08:43:53 -08:00
Бранимир Караџић
aa1aed4ce1 Cleanup. 2019-12-07 07:39:49 -08:00
Giovanni Petrantoni
a965164bc1 Fix mac build, defined was not needed for IOS preprocessor 2019-12-07 07:37:59 -08:00
Giovanni Petrantoni
8c38f21e05 Fixes to texture formats related to mac catalyst builds (metal) 2019-12-07 07:37:59 -08:00
Boris Shirvinskii
6284cde9d6 [iOS] disabling D16 and D24S8 texture formats as it appears they are not supported
tested on the full range of iOS devices from iPhone 5s to iPhone 11
2019-12-04 09:28:01 -08:00
James Fulop
c04b923860 fix preprocessor boolean logic 2019-11-26 18:50:52 -08:00
James Fulop
e6ba3e49af add an assert to catch unknown opcodes earlier 2019-11-26 18:50:33 -08:00
Gary Hsu
9ec0fd243a Fix D3D11 exception with srgb backbuffer 2019-11-15 15:06:11 -08:00
Бранимир Караџић
c7d986f729 Attemp to build D3D11 on Linux. 2019-11-14 21:47:22 -08:00
Paul Gruenbacher
5ca9458605 Update bgfx_compute.sh
fix the indirect define declarations
2019-11-14 18:48:02 -08:00
Бранимир Караџић
7be225bf49 Cleanup. 2019-11-03 16:57:59 -08:00
Бранимир Караџић
6014ca73a0 Cleanup. 2019-11-03 16:51:22 -08:00
Martijn Courteaux
f3ca372d85 Add mtxFromCols3/4 as macros to allow for const global matrices. (#1934) 2019-11-03 16:49:07 -08:00
Sandy
3a78f007ef Fix inconsitency between Backends for RGB5A1 (#1932)
* opengl: Fix color ordering of RGB5A1

* vulkan: Fix color ordering of RGB5A1

* d3d9: Fix color ordering of RGB5A1
2019-11-03 07:10:55 -08:00
Logan McGrath
960390fdae Removing setFrontFacing, using setFrontFacingWinding instead (#1931) 2019-11-03 06:53:48 -08:00
Бранимир Караџић
c3e93e39d1 Fixed issue #1927. 2019-11-01 07:40:50 -07:00
Sandy
c7950c6db3 view stats: Make CPU and GPU timestamps available (#1921)
* view stats: Make GPU begin and end times available

* view stats: Make CPU start and end times available

* view stats: Remove redundant `gpuTimeElapsed`

Value can be derived by `gpuTimeEnd - gpuTimeBegin`

* view stats: Remove redundant `cpuTimeElapsed`

Value can be derived by `cpuTimeEnd - cpuTimeBegin`
2019-10-31 07:30:35 -07:00
Бранимир Караџић
ac81eb1e9d Cleanup. 2019-10-28 18:26:28 -07:00
R. Belmont
02496b75c9 Support disabling vsync on Vulkan, take 2 (#1925)
* Support disabling Vsync on Vulkan [couriersud]

* Add missing lines to fix compiling.
2019-10-28 16:04:36 -07:00
Бранимир Караџић
6097f53378 Revert "Support disabling Vsync on Vulkan [couriersud] (#1924)"
This reverts commit 7ddbefac10.
2019-10-28 08:19:17 -07:00
R. Belmont
7ddbefac10 Support disabling Vsync on Vulkan [couriersud] (#1924) 2019-10-28 08:17:35 -07:00
Бранимир Караџић
510701532b Cleanup. 2019-10-27 08:30:24 -07:00
Бранимир Караџић
8494200645 Updated IDL info / autogenerated comments. 2019-10-25 20:40:02 -07:00
Бранимир Караџић
bd9600e167 Fixed IDL. 2019-10-25 20:13:21 -07:00
Cedric Guillemet
6a883a33fd Front facing (#1904)
* Added BGFX_STATE_FRONT_CCW to defines.h and implemented initial usage only in renderer_d3d11.cpp.

* set front facing for d3d12, gl metal and vulkan

* front facing method Metal

* tabs

* removed tab
idl updated
2019-10-25 20:07:05 -07:00
Бранимир Караџић
6eae48a73c Cleanup. 2019-10-25 14:58:01 -07:00
Sebastian Marketsmueller
85bc4db6f5 fix mip level computation for asmjs and add support for srgb textures in es2/webgl (#1922) 2019-10-25 14:49:12 -07:00
Christophe Dehais
b71cea176b Fix typo in BGFX_CONFIG_MAX_COLOR_PALETTE config override (#1914) 2019-10-18 07:09:07 -07:00
Kitchen
462f803cb6 fix using quad to clear framebuffer, but not correctly set scissor rect bug (#1913)
* fix devide by zero in texture viewer when construct orientation matrix

* fix using quad to clear framebuffer, but not set scissor rect, cause clear failed bug
2019-10-17 15:57:19 -07:00
attilaz
694627885a Added texture functions with bias parameter (#1901)
and fixed a typo
2019-10-04 20:03:51 -07:00
Бранимир Караџић
51ef65d52e Cleanup. 2019-09-30 21:55:10 +02:00
Бранимир Караџић
acda24b16b Removed thread check for getInternalData. 2019-09-13 19:18:51 -07:00
Бранимир Караџић
1e5c99ed76 VK: Added VK device to internal data. 2019-09-12 21:18:18 -07:00
Бранимир Караџић
6533baff7b Cleanup. 2019-09-08 22:10:42 -07:00
Christophe Dehais
c6fc1b069d End debug group before switching context 2019-09-06 18:57:09 -07:00