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
Cloud Wu
cb89ae4a90
Fix memory leak in iOS
2019-09-06 08:28:43 -07:00
Jonathan Young
3ea69999e6
Fix uninitialized Vulkan sampler hash.
2019-09-05 06:54:53 -07:00
kingscallop
0c90be66d0
Fix gl_FragColor for example 41
...
Support gl_FragColor with glsl fragment shaders with version 430. (Fixes example 41 using opengl)
2019-09-01 15:07:06 -07:00
kingscallop
fe045d0c98
Fix gpu_shader4 for some drivers
...
- Add gl_InstanceID (GL_ARB_draw_instanced) support for drivers that don't implement GL_EXT_gpu_shader4 extension (e.g. mesa driver 'i915' on Pentium G3258).
- Don't emit the glsl extension GL_EXT_gpu_shader4 if it isn't supported by the driver (e.g. mesa driver 'i915'). In case the shader uses gl_VertexID, bump up the shader version to 130.
2019-09-01 15:06:35 -07:00
Jonathan Young
d23c203981
Use correct texture mip dimensions in Vulkan renderer. 1x0 was possible for the lowest mip if the texture had a 2:1 or greater aspect ratio.
2019-08-30 07:22:57 -07:00
Бранимир Караџић
7758c6a69c
Fixed warnings.
2019-08-28 21:00:39 -07:00
Бранимир Караџић
016f29eea7
Cleanup.
2019-08-24 11:29:45 -07:00
Бранимир Караџић
31b2d37456
VK: Added more supported caps.
2019-08-23 20:48:58 -07:00
Бранимир Караџић
3f6d8a516d
Added configuration for GL min version.
2019-08-23 20:31:32 -07:00
Attila Kocsis
63045c63b7
Using runtime check to get displaySyncEnabled availability instead
...
of using deployment target.
note: '@available' was needed to silent warning. it was recommended fix by xcode. Every other method I have tried had warning. (using respondsToSelector or our macOSVersionEqualOrGreater function)
2019-08-23 06:57:18 -07:00
Rinthel
f453c55e7c
reflect review
2019-08-18 07:55:27 -07:00
Rinthel
b35efb53a1
refactor swapchain
2019-08-18 07:55:27 -07:00
Бранимир Караџић
ff7497fb3e
Fixed build.
2019-08-17 17:58:49 -07:00
Leandro Freire
214a125432
Use underscore on arguments
2019-08-17 12:32:16 -07:00
Leandro Freire
1db46f4fe6
Rename variables and constants
2019-08-17 12:32:16 -07:00