Commit Graph

7472 Commits

Author SHA1 Message Date
Бранимир Караџић
f953605343 Updated version number. 2020-10-17 22:52:29 -07:00
Бранимир Караџић
3a63498275 Updated spirv-cross. 2020-10-17 22:52:04 -07:00
Бранимир Караџић
d99a5b2f91 Updated spirv-tools. 2020-10-17 22:51:53 -07:00
Бранимир Караџић
8a8f0f3627 Updated spirv-headers. 2020-10-17 22:51:37 -07:00
Бранимир Караџић
d292987459 Updated glslang. 2020-10-17 22:51:22 -07:00
Бранимир Караџић
25b32b391d Updated ImGui. 2020-10-17 22:17:56 -07:00
Бранимир Караџић
626ca46aa0 Bounds: Overlap cone/plane. 2020-10-17 22:16:18 -07:00
pheonix
72b04e3913
Shaderc SPIR-V profile additions (#2284)
* [shaderc] Add SPIR-V profiles to support Vulkan 1.1 and Vulkan 1.2.

* * Add support for Vulkan 1.1 with SPIR-V 1.4.
* Update "spirv" values to correlate with shaderc spirv profile name mappings.
* Expand on spirv profile naming and encoding documentation.
* Address PR notes
2020-10-17 20:02:51 -07:00
generalzzd
0cce398530
generalzzd fix ios compling error (#2288)
Co-authored-by: Zidi <zzd007@hotmail.com>
2020-10-17 20:02:25 -07:00
Christophe Dehais
daa61822d2
Accept GLSL and SPIRV on Windows (#2286)
Co-authored-by: Christophe Dehais <christophe.dehais@fittingbox.com>
2020-10-14 09:16:34 -07:00
Бранимир Караџић
eae703399b Updated version number. 2020-10-14 07:14:51 -07:00
Бранимир Караџић
6e7f0e2c23 Updated ImGui. 2020-10-14 07:14:31 -07:00
Бранимир Караџић
6a8bd755af Cleanup. 2020-10-14 07:12:20 -07:00
Бранимир Караџић
eaddeb98fa Cleanup. 2020-10-11 20:55:01 -07:00
Бранимир Караџић
2b7165a0c3 Merge branch 'master' of github.com:bkaradzic/bgfx 2020-10-11 20:49:13 -07:00
Бранимир Караџић
84557d87eb Updated spirv-cross. 2020-10-11 20:49:02 -07:00
Бранимир Караџић
ce48e02d2e Updated spirv-tools. 2020-10-11 20:48:49 -07:00
Бранимир Караџић
cb828b5276 Updated spirv-headers. 2020-10-11 20:48:37 -07:00
Бранимир Караџић
f38b4b0daf Updated glslang. 2020-10-11 20:48:21 -07:00
pheonix
13bbf02a67
Vulkan API version auto selector (#2283)
* [vulkan] Vulkan API auto-selection for latest available.
- Selects for the maximum vulkan API version available on the host's vulkan driver for a created instance.
- Stores the created instance's vulkan API version on RendererContextVK.
- Created instance's vulkan API version dumped using BX_TRACE in MAJOR.MINOR.PATCH format.
- Physical Device's vulkan API version dumped in MAJOR.MINOR.PATCH format.

* Address code review notes.
- Actually use `vkEnumerateInstanceVersion` if it exists.
- Remove "bgfx supported" vulkan api static array.
2020-10-11 20:38:57 -07:00
Бранимир Караџић
8c2b99d81e Cleanup. 2020-10-09 20:50:03 -07:00
Бранимир Караџић
a94c5d7052 Updated version number. 2020-10-09 20:47:59 -07:00
Бранимир Караџић
3a8e0e2bb1 Fixed blit on cubemaps. 2020-10-09 20:47:50 -07:00
pezcode
09c11bca29
Mip + blit fixes (#2281)
* D3D12: Fix readback for non-zero mip

* Fix blit with non-zero mip

This required clamping the blit extents to the mip size, which is moved out of the renderers now

* Assert formatting
2020-10-09 15:32:50 -07:00
Бранимир Караџић
7f2861eceb Updated version number. 2020-10-09 13:07:58 -07:00
pezcode
2829df055c
Vulkan: Add texture readback (#2280)
* Vulkan: Add texture readback support

* Vulkan: Simplify screenshot code
2020-10-09 13:05:44 -07:00
Бранимир Караџић
5453faacf1 Fixed issue #2279. 2020-10-09 09:52:00 -07:00
Бранимир Караџић
adf93db26b Updated ImGui. 2020-10-09 08:50:40 -07:00
pezcode
3142be44a5
D3D12: Fix readback src pitch calculation (#2278) 2020-10-08 16:47:29 -07:00
Бранимир Караџић
e878147cf9 Added version info to debug stats. 2020-10-05 19:45:22 -07:00
Бранимир Караџић
766ab668f8 Updated version number. 2020-10-05 10:17:31 -07:00
MooZ
9d369ab4a0
Fixed msaa for OpenGL ES targets. (#2277) 2020-10-05 10:17:01 -07:00
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