Бранимир Караџић
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
Бранимир Караџић
2554425bae
Cleanup.
2019-08-17 09:51:50 -07:00
Rinthel
4342db8f3b
VK: descriptor set optimization / refactoring
...
- add support to indirect compute call
- use dynamic uniform buffer instead of uniform
- create depth view for depth/stencil texture
- fix dynamic uniform buffer bug, apply it to compute shader
- refactor descriptor set allocation / setting
- fix image layout reinit
- get and set device feature / fix independent blending
- cleanup
2019-08-17 09:49:01 -07:00
attilaz
75d5662f0b
Metal: added support for binding buffers to vertex/fragment shader stages
...
I have removed the SamplerInfo workaround, because new shaderc preserves texture stages. Some shaders needed recompile with latest shaderc to get the new behavior.
2019-08-16 06:58:44 -07:00
Бранимир Караџић
d7f2ec9386
Fixed frame buffer image.
2019-08-15 21:54:17 -07:00
Бранимир Караџић
e501923756
Fixed back buffer depth format.
2019-08-15 19:18:18 -07:00
Бранимир Караџић
cebb749752
VK: Cleanup.
2019-08-14 08:05:00 -07:00
Бранимир Караџић
981ea06a97
Cleanup.
2019-08-13 19:22:46 -07:00
Rinthel
2fa32d855d
implement compute shader support
2019-08-13 18:44:42 -07:00
Leandro Freire
855623e153
Rename VertexDecl to VertexLayout
2019-08-13 18:42:01 -07:00
Rinthel Kwon
6bd22840e7
VK: fix vertex binding bug
2019-08-12 08:31:23 -07:00