Commit Graph

3291 Commits

Author SHA1 Message Date
Бранимир Караџић
466c6a4e95 Happy New Year! 2023-01-14 10:05:12 -08:00
Branimir Karadžić
eb7f79c358 D3D12: Fixed setting draw scissor. 2022-12-22 20:21:39 -08:00
Ali Seyedof
9eb0d2953e Removed redundant WaitForVBlank from d3d9 (#2998)
Co-authored-by: Ali Seyedof <ali.seyedof@xyzreality.com>
2022-12-16 13:32:06 -08:00
Seyedof
dfbbb64664 Added INDEX32 caps support for d3d9 renderer (#2996)
* Added INDEX32 caps support for d3d9 renderer

* Use UINT16_MAX instead of 1<<16

Co-authored-by: Ali Seyedof <ali.seyedof@xyzreality.com>
2022-12-16 08:43:12 -08:00
pourtheworld
acedbf0af0 renderer_d3d11 fix compute shader input image cubemap format transformation (#2983) 2022-12-10 08:49:12 -08:00
Branimir Karadžić
7911b10c07 D3D12: Probe highest version of device. 2022-12-08 18:57:42 -08:00
kuncarous
7c40b8df62 Vulkan: Fixed R16U format. (#2991) 2022-12-06 13:19:53 -08:00
Branimir Karadžić
6d08be28f7 D3D12: Dump all feature support options. 2022-12-03 09:22:27 -08:00
Branimir Karadžić
30176ceab8 Fixed MSVC warning. 2022-12-02 19:19:13 -08:00
Бранимир Караџић
ab207b67a4 D3D12: Fixed R16U format. #2987 2022-12-01 16:45:55 -08:00
Бранимир Караџић
66de825e6f Fixed issue #2982. 2022-11-30 15:14:40 -08:00
Бранимир Караџић
d09481855e Updated version number. 2022-11-24 08:14:45 -08:00
Jamil Halabi
54ade6e888 Fixed MoltenVK on Mac to reflect new requirements (#2972) 2022-11-22 12:06:30 -08:00
Бранимир Караџић
90e847c46d VK: Fixed some ubsan reported issue. 2022-11-05 07:24:48 -07:00
Бранимир Караџић
7b4ae6c630 Updated version number. 2022-10-29 08:15:02 -07:00
Бранимир Караџић
f6a1289dbc Fixed amalgmated build on Linux. 2022-10-28 12:17:31 -07:00
Бранимир Караџић
c4d4b90e32 shaderc: Fixed SPIR-V uniform array size reflection. Issue #2964. 2022-10-27 19:43:17 -07:00
Бранимир Караџић
d5230bbbda GL: Added more missing ASTC formats. 2022-10-25 19:03:33 -07:00
Бранимир Караџић
42b154d925 GL: Added missing ASTC formats. 2022-10-25 19:00:30 -07:00
Raziel Alphadios
c2bc5177b5 Add support for remaining unsupported ASTC formats (#2963)
* Add support for remaining unsupported ASTC formats
Add new ASTC formats into pixelformats example and ninja scripts
Rebuild ASTC textures

* Update idl and generate
Move comma in pixelformats

Co-authored-by: Raziel Alphadios <raziely@gmail.com>
2022-10-25 17:03:40 -07:00
Бранимир Караџић
4ec3ab3532 Cleanup. 2022-10-15 07:29:00 -07:00
Бранимир Караџић
8e4fc9deb4 Cleanup. 2022-10-14 07:12:32 -07:00
Christophe Dehais
f3ff07a7fc Simplify the sampler object code path selection in GL backend (#2955) 2022-10-14 07:08:26 -07:00
Бранимир Караџић
9e7aa2d2ef WebGL: Use sampler object if it's GLES3. 2022-10-13 18:29:03 -07:00
Christophe Dehais
3868c762f5 Fix textureXXXBias() macro definitions for glsl >= 130 (#2954) 2022-10-13 07:38:50 -07:00
Бранимир Караџић
27602120e9 Deleted bad conversion code. 2022-10-11 07:15:45 -07:00
Бранимир Караџић
a855f1cf2d Cleanup. 2022-10-07 17:30:27 -07:00
Ciro Mondueri
bf411dd393 d3d12: fixes triangle list primitive state change not ackd. after touch call (#2951)
Suppose this is the draw call sequence in a frame:
- triangle strip
- touch (required to apply stencil changes for example)
- triangle list

Touch masks the change (as it's triangle list by default) by setting
changedFlags, but not primIndex. When the triangle list is processed,
the STATE_PT is already set to triangle list, so the test for
changedFlags is skipped and primIndex stays with triangle strip.

The fix detects the change in the STATE_PT and updates primIndex.
2022-10-07 17:28:18 -07:00
Cedric Guillemet
c3afd0e31d Remove alpha-premultiplied postprocess (#2948) 2022-10-06 07:06:45 -07:00
Бранимир Караџић
8a405a0c73 Improved internal handle. 2022-10-05 21:10:19 -07:00
Бранимир Караџић
50250df026 Cleanup. 2022-10-03 20:43:48 -07:00
Branimir Karadžić
a06ee14802 Fixed issue #2944. 2022-10-03 20:19:19 -07:00
Бранимир Караџић
e87f08b1e5 Cleanup. 2022-10-01 08:48:57 -07:00
Бранимир Караџић
76923d21d9 Cleanup. 2022-10-01 08:29:58 -07:00
Бранимир Караџић
2d6c85ac7a Fixed emscripten build. 2022-09-23 10:01:47 -07:00
Бранимир Караџић
79b5ea7351 Cleanup. 2022-09-22 20:32:36 -07:00
Бранимир Караџић
01f308dd58 GL: Fixed instace data offset when i_dataX is missing in shader. 2022-09-20 20:48:48 -07:00
Бранимир Караџић
bd696118bb Fixed warning. 2022-09-18 19:24:08 -07:00
Бранимир Караџић
e4be44e92b Updated API version. 2022-09-18 19:11:58 -07:00
jwdevel
f1f77a6cd3 Record frame num in view stats (#2908)
* Add 'frameNumber' to Frame struct

Previously, the frame number returned from bgfx::frame() was tracked separately in the Context. Now,
we store that information in the Frame. This will allow us to attach the frame number to ViewStats.

* Add frame number to ViewStats

When ViewStats are enabled, we tag each timer query with the current frame number, then include
that information in the final results. In this way, clients can correlate specific work that they
submitted to specific GPU timing information.

NOTE: Some backends not implemented, yet. They will always have 0 for frame number.
The ones which are implemented are:
 * OpenGL
 * Vulkan
 * D3D 9,11,12
 * Noop
2022-09-18 19:09:48 -07:00
Бранимир Караџић
d30032984b D3D9: Enable compilation on Linux. 2022-09-17 19:59:35 -07:00
Бранимир Караџић
7ffeaefad2 API version 116. 2022-09-17 18:18:51 -07:00
pezcode
ba467be036 Add support for indirect draw with indirect count (#2925)
* Add indirect draw with indirect count (BGFX_CAPS_DRAW_INDIRECT_COUNT)

* Update bindings

* VK: Add support for BGFX_CAPS_DRAW_INDIRECT_COUNT

* D3D12: Add support for BGFX_CAPS_DRAW_INDIRECT_COUNT

* GL: Add support for BGFX_CAPS_DRAW_INDIRECT_COUNT

* 48-drawindirect: Use BGFX_CAPS_DRAW_INDIRECT_COUNT if available

* 48-drawindirect: Update shaders
2022-09-17 18:16:19 -07:00
Branimir Karadžić
408988946d Cleanup. 2022-09-16 20:12:31 -07:00
Бранимир Караџић
cbbaba4099 Cleanup. 2022-09-16 19:32:41 -07:00
Бранимир Караџић
c0a7e838b3 D3D11: Enable texture format enumeration on Linux. 2022-09-15 23:29:27 -07:00
Бранимир Караџић
4faed7cc2b Cleanup. 2022-09-15 22:26:41 -07:00
Бранимир Караџић
4c0baf5603 D3D11: Enable compilation on Linux. 2022-09-15 22:13:34 -07:00
Бранимир Караџић
a88c7629c3 Fixed build. 2022-09-15 09:33:44 -07:00
Бранимир Караџић
9ad3825cee D3D12: Linux build. 2022-09-14 20:59:59 -07:00