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
Бранимир Караџић
66deeb10c2
21-deferred: Fixed depth format selection.
2020-09-05 12:15:07 -07:00
Hugo Amnov
b62302631e
Add Webgpu backend ( #2132 )
...
* WebGPU first draft (shaderc bin version 8)
* WebGPU scripts
2020-05-08 08:53:53 -07:00
Бранимир Караџић
82f56b5987
Happy New Year!
2020-01-14 21:37:06 -08:00
Leandro Freire
33ac8934ff
Fixed tabs/spaces
2019-08-17 14:56:23 -07:00
Leandro Freire
d7c70c49e3
Add url to examples
2019-08-17 13:27:38 -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
Branimir Karadžić
078ca46e6f
Fixed framebuffer RW example.
2019-02-18 13:40:41 -08:00
Бранимир Караџић
f02169a4b4
Cleanup.
2019-02-17 21:48:20 -08:00
Бранимир Караџић
ce3d44b227
Cleanup.
2019-02-17 09:28:02 -08:00
Бранимир Караџић
e3e7e9aaf4
Cleanup.
2019-02-17 09:03:09 -08:00
Бранимир Караџић
d5151445da
Cleanup.
2019-02-17 08:56:26 -08:00
Hugo Amnov
58563b0b1b
FrameBuffer Read/Write access WIP
2019-02-17 16:50:26 +01:00
Бранимир Караџић
dfc9f93800
Cleanup.
2019-02-13 21:43:00 -08:00
Бранимир Караџић
82550fa842
21-deferred: Added texture array frame buffer option.
2019-02-07 18:04:19 -08:00
Бранимир Караџић
f6f6a22119
Adding bounds overlap tests.
2019-02-03 19:47:33 -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
Бранимир Караџић
7b3e5f84d6
Cleanup.
2019-01-03 15:16:29 -08:00
Branimir Karadžić
147a379067
Cleanup.
2018-12-21 21:05:26 -08:00
Branimir Karadžić
a1b4cfc06c
Switching to new Vec3.
2018-11-13 22:38:41 -08: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ć
4433b5bcdc
Separating sampler flags from texture creation flags.
2018-08-20 17:12:26 -07:00
Branimir Karadžić
5bb6a14876
Changed bgfx::init to take init parameters as structure instead of arguments.
2018-04-17 15:42:18 -07:00
Branimir Karadžić
584b8b34f0
Added support for independent RGB channel write control.
2018-02-13 12:35:23 -08:00
Branimir Karadžić
d04301dfda
Fixed VGA color order, and clarified docs.
2018-01-25 20:34:17 -08:00
Branimir Karadžić
49a75f2fb1
bx math API cleanup.
2018-01-13 15:33:50 -08:00
Branimir Karadžić
f44c8e2b14
Happy New Year!
2018-01-01 11:16:06 -08:00
James Fulop
6aa7c87758
Samples cleanup. Bringing debug text back on some samples, rearranging debug drawing around ImGui Example Dialog. Fix mouse state trampling in 22-windows. ( #1300 )
2017-12-27 11:41:40 -08:00
Branimir Karadžić
547d1d2b11
Cleanup.
2017-12-02 18:15:31 -08:00
Branimir Karadžić
907f835881
Removed use of obsolete ImGui API.
2017-12-01 21:04:27 -08:00
Branimir Karadžić
7c9b2b7257
API change: Simplified destroy functions to use overload resolution.
2017-07-17 22:29:43 -07:00
Branimir Karadžić
a274c9a6c5
Replaced BX_OVERRIDE with override.
2017-07-15 00:17:29 -07:00
Branimir Karadžić
0fad539078
Cleanup.
2017-06-29 23:19:20 -07:00
Branimir Karadžić
917385f79e
Cleanup.
2017-06-29 22:23:18 -07:00
Branimir Karadžić
43fb2f6f4b
Cleanup.
2017-06-26 22:51:56 -07:00
Branimir Karadžić
5f666a5ee2
Combined all examples. Issue #1143 .
2017-06-25 21:44:04 -07:00
Branimir Karadžić
30b6d07e29
Cleanup.
2017-06-12 22:43:07 -07:00
attilaz
c40c83d337
fixed imgui window position ( #1151 )
...
With SetWindowPos there was a strange flickering of the window when the user tried to grab the window. This is fixed with SetNextWindowPos.
2017-06-10 16:01:42 -07:00
Branimir Karadžić
07d799f72e
Renamed constants to new style.
2017-06-09 21:57:08 -07:00
Branimir Karadžić
3fbcddb4ef
Renamed constants to new style.
2017-06-09 20:08:52 -07:00
Branimir Karadžić
b0f8c68f29
21-deferred: Switched to use new imgui.
2017-06-01 20:54:29 -07:00
Branimir Karadžić
68c6b46a65
Exposed vertex stream argument to API.
2017-05-14 11:48:59 -07:00
Branimir Karadžić
8499319009
Cleanup.
2017-03-31 21:01:08 -07:00
Branimir Karadžić
5375aa5a03
Fixed warnings.
2017-03-12 18:25:23 -07:00
Branimir Karadžić
0838dad5ab
Fixed build.
2017-02-14 20:27:31 -08:00
Branimir Karadžić
5bfcf44d83
Cleanup.
2017-02-02 18:09:52 -08:00
Brian Harris
ffd3771a09
Updated makefiles to build spirv ( #1025 )
2017-01-20 09:29:09 -08:00
Branimir Karadžić
b9b8a6e871
Cleanup.
2017-01-04 08:34:25 -08:00