Branimir Karadžić
729c6b98ed
Rebuilt shaders.
2020-10-04 22:39:41 -07: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
Бранимир Караџић
32aa281147
Cleanup.
2020-10-04 15:01:05 -07:00
Branimir Karadžić
082b71676c
Cleanup.
2020-10-04 14:23:33 -07:00
Бранимир Караџић
a1d12fe7f3
Cleanup.
2020-10-04 14:23:00 -07: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
Branimir Karadžić
0f951a8d70
Updated RenderDoc.
2020-10-04 13:53:24 -07:00
Бранимир Караџић
8cb0c2e429
Updated ImGui.
2020-10-02 22:58:01 -07:00
Бранимир Караџић
115661d158
Updated natvis.
2020-09-30 13:49:34 -07:00
Бранимир Караџић
cb6a6ee383
Updated README.
2020-09-28 20:10:01 -07:00
Бранимир Караџић
79dd508f96
Updated ImGui.
2020-09-28 19:48:13 -07:00
Бранимир Караџић
ffb2518d5a
Cleanup.
2020-09-28 10:05:18 -07:00
Christophe Dehais
816026a8bf
Add blitting fallback for OGL ( #2269 )
...
Co-authored-by: Christophe Dehais <christophe.dehais@fittingbox.com>
2020-09-28 09:53:37 -07:00
Бранимир Караџић
27f4a2ee47
Updated ImGui.
2020-09-25 19:56:55 -07:00
Бранимир Караџић
1385c024d2
Updated spirv-tools.
2020-09-25 19:56:23 -07:00
Бранимир Караџић
4b802cb2ab
Updated vulkan headers.
2020-09-25 19:56:11 -07:00
Kitchen
c0bce01cc9
fix texture bind info missed in vertex shader after compiled ( #2270 )
2020-09-24 23:33:57 -07:00
Бранимир Караџић
d03f7c6327
Updated ImGui.
2020-09-23 21:34:53 -07:00
Бранимир Караџић
85a2900a14
Updated cgltf.
2020-09-19 20:18:45 -07:00
Бранимир Караџић
bfc1d0285a
Updated ImGui.
2020-09-19 20:16:57 -07:00
Бранимир Караџић
7621b1d4d8
Updated vulkan headers.
2020-09-19 20:13:47 -07:00
Бранимир Караџић
847d79dc11
Updated spirv-cross.
2020-09-19 20:13:09 -07:00
Бранимир Караџић
88fdc62d2b
Updated spirv-tools.
2020-09-19 20:12:57 -07:00
Бранимир Караџић
1ae1e25174
Updated spirv-headers.
2020-09-19 20:12:41 -07:00
Бранимир Караџић
f6a7cecb32
Updated glslang.
2020-09-19 20:12:22 -07:00
Бранимир Караџић
b2259d7c11
Updated screenshots.
2020-09-19 20:05:25 -07:00
Бранимир Караџић
942daad4e4
Fixed OSX build.
2020-09-17 08:31:03 -07:00
Бранимир Караџић
d402810fcf
Fixed webgl build.
2020-09-17 08:30:01 -07:00
Бранимир Караџић
9b7f950cd6
Cleanup.
2020-09-16 20:03:04 -07:00
Бранимир Караџић
cce003c99f
Fixed warning.
2020-09-16 09:12:09 -07:00
Бранимир Караџић
fa826a4935
Fixed webgl build.
2020-09-16 09:11:15 -07:00
Бранимир Караџић
4c0b7621d9
Fixed Encoder allocation alignment.
2020-09-14 09:30:33 -07:00
Бранимир Караџић
5710681af4
Updated ImGui.
2020-09-10 07:56:32 -07:00
Kitchen
aa24588800
fix d3d12 error when create backbuffer with msaa and srgb format ( #2261 )
2020-09-09 19:29:00 -07:00
云风
95b4e6eaa5
Use getResourceDesc instead of GetDesc, See #1239 ( #2260 )
...
* Use getResourceDesc instead of GetDesc, See #1239
* Fix MSAA on d3d12
2020-09-09 05:52:13 -07:00
Branimir Karadžić
2996246a90
Cleanup.
2020-09-08 07:42:03 -07:00
Branimir Karadžić
73508ac80f
Fixed warnings.
2020-09-07 10:06:47 -07:00
Kitchen
14f8a097fc
fix error when create backbuffer with msaa and srgb format ( #2258 )
2020-09-07 08:05:33 -07:00
Бранимир Караџић
fa3aa2969e
Updated cgltf.
2020-09-07 07:43:26 -07:00
Бранимир Караџић
66deeb10c2
21-deferred: Fixed depth format selection.
2020-09-05 12:15:07 -07:00
Бранимир Караџић
6e3e2836c9
Updated ImGui.
2020-09-05 12:00:13 -07:00
Бранимир Караџић
248d56709e
Updated spirv-cross.
2020-09-05 11:33:56 -07:00
Бранимир Караџић
765b7b02eb
Updated spirv-tools.
2020-09-05 11:33:44 -07:00
Бранимир Караџић
86402fec24
Updated version number.
2020-09-05 11:24:50 -07:00
Бранимир Караџић
9f8fe6a1eb
Fixed range slider.
2020-09-04 16:14:02 -07:00
Бранимир Караџић
d1685a366a
Fixed build.
2020-09-03 23:45:20 -07:00
Бранимир Караџић
8f4750b199
Cleanup.
2020-09-02 20:43:47 -07:00
Wencey Wang
0093a67681
Fix Windows ARM build ( #2254 )
2020-09-02 08:31:39 -07:00
云风
03871f12db
fix gcc warnings ( #2253 )
2020-09-01 20:49:08 -07:00
Бранимир Караџић
4d4ef74fe6
Fixed GCC warning.:
2020-09-01 20:21:58 -07:00