Commit Graph
7459 Commits
Author SHA1 Message Date
Бранимир Караџић 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 DehaisandChristophe 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