Commit Graph

864 Commits

Author SHA1 Message Date
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
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
c6fc1b069d End debug group before switching context 2019-09-06 18:57:09 -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
Leandro Freire
1db46f4fe6 Rename variables and constants 2019-08-17 12:32:16 -07:00
Leandro Freire
855623e153 Rename VertexDecl to VertexLayout 2019-08-13 18:42:01 -07:00
DanielGavin
e14c077b32 command sync (#1823)
Added command barrier bit when submitting with an indirect buffer - this fixes the flickering on tess-41
2019-07-21 17:33:50 -07:00
Vladimir Vukicevic
3d460e0445 Work around emscripten double-reporting GL error 2019-07-02 01:24:15 +00:00
Bastien Brunnenstein
e9ad3a6eba Use SRGB texture format on backbuffer when MSAA is enabled 2019-06-13 23:51:22 +02:00
Бранимир Караџић
8b6f466493 OS: Fixed texture2DArrayLod. 2019-05-25 19:33:54 -07:00
SnapperTT
14f13ae656 Fixed MRT buffers not being cleared if homogeneousDepth is disabled 2019-05-21 15:58:51 +10:00
SnapperTT
4842c84e56 Fixes blitter not taking into account homogeneousDepth
If the opengl render has been modified to allow glClipControl to create a hetrogeneous depth buffer then anything blitted using the internal blit() functions will set to z=-1 and culled, making things such as debug text invisible. This fixes this
2019-05-01 10:24:49 +10:00
Hugo Amnov
594cc27a65 Implement aliasing vertex buffer with different vertex declaration. 2019-04-16 18:19:55 +02:00
Бранимир Караџић
a1c39c7190 Cleanup. 2019-03-27 09:58:11 -07:00
Jan-Eric Duden
e4f0d6893a FIX asan error (false positive). Use of bx::uint32_cnttz with 0 results in undefined value. 2019-03-27 16:40:41 +01:00
Benjamin Grange
ccbb9ac6bc Fix GL texture array
Bad num layers
2019-03-16 20:43:37 +01:00
Бранимир Караџић
b19afc2e7d Cleanup. 2019-02-20 20:17:40 -08:00
Branimir Karadžić
1b9dd14683 Fixed framebuffer RW. 2019-02-18 13:40:17 -08:00
Бранимир Караџић
9d6205654d GL: Fixed glPush/PopDebugGroup stub. 2019-02-17 14:52:57 -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
Бранимир Караџић
4c899553e3 Cleanup internal profiler. 2019-02-15 16:45:35 -08:00
Бранимир Караџић
dd10b04651 Fixed texture array frame buffer. 2019-02-07 18:02:48 -08:00
attilaz
8aff45398a clearquad uses uniform update instead of vertex update 2019-02-04 17:42:28 +01:00
Бранимир Караџић
9054588331 Fixed texture mip mismatch. 2019-01-30 17:43:28 -08:00
Branimir Karadžić
001cfa1ba1 Cleanup. 2019-01-29 20:46:55 -08:00
Бранимир Караџић
ec4b823db7 Fixed skip mips when crating BC textures. 2019-01-29 17:43:57 -08:00
Branimir Karadžić
1658b6a100 Fixed build. 2019-01-26 17:43:28 -08:00
Бранимир Караџић
3aeb8ce065 GL: Cleanup. 2019-01-26 15:27:04 -08:00
Бранимир Караџић
17a620a609 Cleanup. 2019-01-25 17:18:30 -08:00
Branimir Karadžić
200778511e Cleanup. 2019-01-24 20:35:09 -08:00
Бранимир Караџић
916d159965 Cleanup. 2019-01-24 20:28:26 -08:00
Branimir Karadžić
75bb36d0fb GL: Fixed setting name of write only texture. 2019-01-24 19:43:14 -08:00
Бранимир Караџић
575c6ebda4 GL: Workaround issue with setting texture name. 2019-01-24 19:34:29 -08:00
Бранимир Караџић
a0c2907c22 Added internal debug names for index/vertex buffers, shaders, and textures. 2019-01-22 14:45:33 -08:00
Бранимир Караџић
34c4d62937 Accepted PR #1596. 2019-01-21 09:52:21 -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
Matt Chiasson
2776279b3e VertexBufferGL unbinds correct target if destroyed
it was only unbinding `GL_DRAW_BUFFER` when the vbo target could be either `GL_DRAW_BUFFER` or `GL_DRAW_INDIRECT_BUFFER`.

see 6bff345637/src/renderer_gl.h (L1186) for detail
2018-12-22 14:45:25 -05:00
Бранимир Караџић
22fb0f7ad7 Removing VR leftovers. 2018-12-21 23:25:30 -08:00
Branimir Karadžić
095188a533 Cleanup. 2018-12-18 16:11:41 -08:00
attilaz
ec321a836e added texture functions (array,offset,gather) and image types 2018-12-13 22:30:13 +01:00
Бранимир Караџић
197eae86c9 GL: FIxed binding compute RO image. 2018-12-12 19:04:10 -08:00
Branimir Karadžić
bcfc99d094 Cleanup. 2018-11-25 20:11:03 -08:00
Branimir Karadžić
7639c5688c Added access parameter for frame buffer attachment. 2018-11-16 17:59:46 -08:00
Branimir Karadžić
5ba94e7458 Cleanup. 2018-11-15 20:08:56 -08:00
Branimir Karadžić
a50b76a9a3 Added ability to specify sampler flags for samplers used in compute shader. 2018-11-14 17:04:24 -08:00
Branimir Karadžić
a00cf3fec5 Cleanup. 2018-11-12 19:29:33 -08:00
Branimir Karadžić
01e37098a6 Fixed emscripten issue with glPolygonMode. 2018-11-09 10:15:32 -08:00