Commit Graph

83 Commits

Author SHA1 Message Date
Бранимир Караџић
466c6a4e95 Happy New Year! 2023-01-14 10:05:12 -08: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
Бранимир Караџић
4c0baf5603 D3D11: Enable compilation on Linux. 2022-09-15 22:13:34 -07:00
Бранимир Караџић
9ad3825cee D3D12: Linux build. 2022-09-14 20:59:59 -07:00
Branimir Karadžić
11ac9f27c7 D3D12: Removed dependency on D3DX12 header. 2022-09-13 22:03:20 -07:00
Бранимир Караџић
4581f14cd4 Happy New Year! 2022-01-15 11:59:06 -08:00
pezcode
2c21f68998 VPRT support for D3D11, D3D12, GL (#2507)
* glsl-optimizer: whitelist ARB_shader_viewport_layer_array_enable

* D3D11: remove duplicate structs and enums

* D3D11: report BGFX_CAPS_VIEWPORT_LAYER_ARRAY

* D3D12: report BGFX_CAPS_VIEWPORT_LAYER_ARRAY

* GL: support for BGFX_CAPS_VIEWPORT_LAYER_ARRAY

* D3D11: multi-layer MSAA resolve

* D3D12: multi-layer MSAA resolve

* D3D12: fix binding multi-layer resolved textures

* GL: fix multi-layer rendertarget creation
2021-05-05 11:58:21 -07:00
Branimir Karadžić
005d119cae Fixed MinGW warning. 2021-02-26 18:48:43 -08:00
Бранимир Караџић
af49c5d264 Happy New Year! 2021-01-14 15:53:49 -08:00
Бранимир Караџић
63a72092d8 Cleanup. 2020-11-14 11:13:44 -08:00
Vas Crabb
f082ca12e3 renderer_d3d12.h: Update __mingw_uuidof declaration for C++17 (#2311) 2020-11-14 11:11:24 -08:00
Julian Xhokaxhiu
2c38e090d2 Various Vulkan/Direct3D 12 enhancements (#2246)
* [VK] Add RT MSAA support

* [VK] Add GenerateMips support

* [VK] Add Screenshot feature

* [D3D12] Add MSAA RT support

* [VK] Fix blit operation on MSAA RT textures

* [D3D12] Fix blit operation on MSAA RT textures
2020-10-04 14:21:12 -07:00
Бранимир Караџић
006548e00f Fixes for D3D12 on Linux. 2020-07-02 19:50:09 -07:00
Бранимир Караџић
2cbcb6ea90 RRenamed BX_CHECK to BX_ASSERT. 2020-06-16 10:06:18 -07:00
Pablo Escobar
eeb5fe7c02 Don't double-quote profiler literals 2020-04-03 21:56:54 +00:00
Minmin Gong
ccdd6676ca Implement the overrideInternal in D3D12 renderer 2020-02-13 07:11:47 +00:00
Бранимир Караџић
82f56b5987 Happy New Year! 2020-01-14 21:37:06 -08: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
Бранимир Караџић
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
Бранимир Караџић
3f3a9450ba Happy New Year! 2019-01-13 17:13:25 -08:00
Branimir Karadžić
4cbd5a5c0a Added frame buffer resolve control. 2018-10-03 17:52:26 -07:00
Branimir Karadžić
f40bf8e862 Added ability to sample stencil part of depth/stencil texture. 2018-08-23 17:59:47 -07:00
Branimir Karadžić
20582d8ff9 D3D12: Fixed swap chain. Issue #1323. 2018-05-03 15:02:56 -07:00
Branimir Karadžić
4f64a4792b NVAPI: Adding support for NV Aftermath. 2018-03-29 20:36:48 -07:00
Branimir Karadžić
df83b98fd6 Added D3D12EnableExperimentalFeatures. 2018-03-20 09:53:45 -07:00
Branimir Karadžić
45c1554d56 D3D12: DXGI usage cleanup. 2018-03-12 17:40:16 -07:00
Branimir Karadžić
480620751b Separating DXGI functionality from D3D11 renderer. 2018-03-10 11:47:21 -08:00
Branimir Karadžić
e7987e3340 Cleanup. 2018-03-06 17:52:26 -08:00
Branimir Karadžić
0480b73b96 D3D12: Added allow tearing support. 2018-03-02 17:57:50 -08:00
Branimir Karadžić
4d4f4b2e59 D3D12: Swap chain WIP. 2018-01-23 18:22:04 -08:00
Branimir Karadžić
0dd6f82a4e D3D12: Fixed texture bindings. 2018-01-19 17:06:25 -08:00
Branimir Karadžić
b259166690 D3D12: Disabled ExecuteIndirect code path. 2018-01-17 17:35:02 -08:00
Branimir Karadžić
9be9848f9b Cleanup. 2018-01-12 22:18:18 -08:00
Branimir Karadžić
052948f173 Cleanup. 2018-01-12 16:38:54 -08:00
Branimir Karadžić
f44c8e2b14 Happy New Year! 2018-01-01 11:16:06 -08:00
Branimir Karadžić
fee8885177 Cleanup. 2017-12-21 18:12:42 -08:00
Branimir Karadžić
0e532da452 D3D12: Added PIX3. 2017-12-21 16:07:37 -08:00
Branimir Karadžić
0d1cf61bb1 Fixed UWP build. 2017-12-13 23:40:39 -08:00
Branimir Karadžić
3f454feae2 D3D12: More optimal indirect command layout. 2017-12-13 17:59:47 -08:00
Branimir Karadžić
b896f4a6f2 D3D12: Implemented multiple vertex streams. 2017-12-13 12:46:49 -08:00
Branimir Karadžić
11d0ec5dd1 UMA direct access WIP. 2017-12-08 22:55:18 -08:00
Branimir Karadžić
88e0bab5a1 D3D11: Detect color spaces. 2017-12-05 17:31:07 -08:00
Branimir Karadžić
b1e04204b9 D3D12: Implemented per view GPU profiler. 2017-09-04 19:52:26 -07:00
Branimir Karadžić
07d799f72e Renamed constants to new style. 2017-06-09 21:57:08 -07:00
Branimir Karadžić
a1184d53c5 Invalidate occlusion queries in flight when new occlusion query with the same id is created. 2017-03-03 18:05:36 -08:00
Branimir Karadžić
b99ebb9535 Cleanup. 2017-02-08 19:55:31 -08:00
Branimir Karadžić
1d7b32e464 Fixed typo. 2017-02-03 18:25:35 -08:00
Branimir Karadžić
3b83f53ab1 Happy New Year! 2017-01-01 00:18:41 -08:00