Commit Graph

57 Commits

Author SHA1 Message Date
Branimir Karadžić
4baed6e076 Happy New Year! (#3550) 2026-01-14 16:26:51 +00:00
Loppin Vincent
a76903d622 Fix some DXBC opcode info (#3443)
Co-authored-by: Vincent Loppin <vincent.loppin@csgroup.eu>
2025-07-17 17:37:15 +02:00
Бранимир Караџић
860bafb23f Happy New Year! 2025-01-13 15:45:40 -08:00
Бранимир Караџић
042ebe8814 Cleanup. 2024-12-07 22:49:45 -08:00
Бранимир Караџић
2ad67a4dfd Cleanup. 2024-03-29 16:36:55 -07:00
pheonix
0b049d4897 Use bx::bit_cast where appropriate for type punning, applying packed struct for arrays when necessary (#3212) 2024-02-24 15:47:04 -08:00
Бранимир Караџић
83dfadf673 Happy New Year! 2024-01-14 01:56:36 -08:00
Бранимир Караџић
e9e2e224ee Replaced macros with C++17 attributes. 2023-12-02 20:16:56 -08:00
Бранимир Караџић
466c6a4e95 Happy New Year! 2023-01-14 10:05:12 -08:00
luzpaz
e7936efa6a Fix typos (#2839)
Found via `codespell -q 3 -S ./3rdparty,*.ttf -L attribut,ba,clude,conly,indext,inout,lod,nclude,retur,struc,unknwn,utput`
2022-07-12 14:21:31 -07:00
Branimir Karadžić
fe8cab2522 Manually merged PR #2710. 2022-04-26 19:15:15 -07:00
luzpaz
6875e96bcb Fix various typos (#2719)
Found via `codespell -q 3 -S ./3rdparty,*.ttf -L attribut,ba,clude,conly,indext,inout,lod,nclude,retur,utput`
2022-02-05 11:34:15 -08:00
Бранимир Караџић
4581f14cd4 Happy New Year! 2022-01-15 11:59:06 -08:00
Бранимир Караџић
8392a44b3a Fixed assert macros, and improved error handling. 2021-10-25 18:59:32 -07:00
Бранимир Караџић
af49c5d264 Happy New Year! 2021-01-14 15:53:49 -08:00
Cedric Guillemet
2556e68724 fix STAT wrong chunk copy (#2328)
Co-authored-by: Cedric Guillemet <ceguille@microsoft.com>
2020-12-14 10:31:16 -08:00
Branimir Karadžić
52a33b8bd3 Fixed warnings. 2020-11-29 21:16:39 -08:00
Cedric Guillemet
9e90a360e5 fix uint32 for none windows env (#2309)
Co-authored-by: Cedric Guillemet <ceguille@microsoft.com>
2020-11-13 10:25:59 -08:00
Cedric Guillemet
77184d5743 Added support for Resource Definition and Stats in DXBC (#2307)
Co-authored-by: Cedric Guillemet <ceguille@microsoft.com>
2020-11-13 06:47:09 -08:00
kingscallop
436b7fab9e Adds UAV support for D3D12, Vulkan and reworked for OpenGL, D3D11 (#2119)
* Adds UAV support for D3D12, Vulkan and reworked support for OpenGL, D3D11

UAV support is now uniform across compute and draw.
To set a UAV you just use bgfx::setImage() and IMAGE2D in the shader, just like in compute.
Due to these changes shaders will have to be recompiled.

The changes include:
	- D3D11 requires patching of the UAV slot number (which is now done by modifying the DXBC instead of using a macro)
	- If the DXBC binary includes a debug chunk, that is also patched to match the new slot number
	- All the other renderers don't need any kind of patching
	- There are some shader annotations to better convert the UAV format used in hlsl to spirv

Possibility of further enhancements:
	- bgfx::setViewFrameBuffer() only supports binding to a framebuffer or, using BGFX_INVALID_HANDLE, to bind the default backbuffer. This doesn't allow for the case where there is no need to bind to either one of them, for example when using a fragment shader only to read and write to an UAV.

* Bump shader version, because they need to be recompiled.
2020-10-04 21:51:41 -07:00
Бранимир Караџић
2cbcb6ea90 RRenamed BX_CHECK to BX_ASSERT. 2020-06-16 10:06:18 -07:00
Бранимир Караџић
82f56b5987 Happy New Year! 2020-01-14 21:37:06 -08:00
James Fulop
e6ba3e49af add an assert to catch unknown opcodes earlier 2019-11-26 18:50:33 -08:00
Бранимир Караџић
cda981b8e3 Cleanup. 2019-02-07 18:04:28 -08:00
Бранимир Караџић
3f3a9450ba Happy New Year! 2019-01-13 17:13:25 -08:00
Branimir Karadžić
99b21b5ecc Fixed #1431. 2018-09-28 07:57:07 -07:00
Eugeny Novikov
a10c536af4 Fixed RCP operands count. (#1431)
if we have the wrong RCP operands count, bgfx::read will return the wrong size and the library will crush.
2018-07-09 10:09:51 -07:00
Branimir Karadžić
69764d7bb5 DXBC: Automatically calculate instruction size. 2018-04-06 16:35:10 -07:00
Branimir Karadžić
a0fd120bc5 DXBC: Fixed custom data encoding. Fixed operand modifier parsing. 2018-02-06 16:37:13 -08:00
Branimir Karadžić
d925e1a4b5 DXBC: Added immediate constant buffer support. 2018-02-05 18:06:33 -08:00
Branimir Karadžić
9d167c7a38 DXBC: Added operand modifier annotation. 2018-01-30 17:30:29 -08:00
Branimir Karadžić
e5a983d25a Cleanup. 2018-01-29 21:39:17 -08:00
Branimir Karadžić
cfba15778e D3D12: Fixed shader patching. 2018-01-10 16:38:21 -08:00
Branimir Karadžić
f44c8e2b14 Happy New Year! 2018-01-01 11:16:06 -08:00
Branimir Karadžić
0e532da452 D3D12: Added PIX3. 2017-12-21 16:07:37 -08:00
Branimir Karadžić
45b41f62d1 Cleanup. 2017-12-07 19:02:43 -08:00
Branimir Karadžić
d6cdf71273 GCC7 fallthrough. 2017-06-27 20:52:37 -07:00
Branimir Karadžić
79ba213379 dxbc: Fixed udiv. 2017-03-31 12:40:23 -07:00
Branimir Karadžić
b99ebb9535 Cleanup. 2017-02-08 19:55:31 -08:00
Branimir Karadžić
3b83f53ab1 Happy New Year! 2017-01-01 00:18:41 -08:00
Branimir Karadžić
0ba8b1895b Cleanup. 2016-09-02 19:49:01 -07:00
Branimir Karadžić
1f2d56278c Cleanup. 2016-03-22 21:52:11 -07:00
Branimir Karadžić
3afc13e521 D3D12: Skip patching DXBC with Aon9 chunk. 2016-03-09 21:33:20 -08:00
Branimir Karadžić
e14c5b1c3e Spir-V WIP. 2016-03-05 00:17:06 -08:00
Branimir Karadžić
98e7cd542c DXBC: Removed use of bx::CrtAllocator. 2016-01-25 09:30:14 -08:00
Branimir Karadžić
4bb2b623d3 Happy New Year! 2016-01-01 00:11:04 -08:00
Branimir Karadžić
2c2b22b711 DXBC: Added missing chunks. 2015-10-27 09:15:11 -07:00
Branimir Karadžić
0cfc61b8ac DXBC: Added missing chunk. Fixed #536. 2015-10-24 11:24:08 -07:00
Branimir Karadžić
f0ae846837 Fixed clang warning. 2015-10-09 20:03:22 -07:00
Richard Gale
973b6e542f Changes needed for WinRT 2015-10-09 11:33:21 -07:00