Commit Graph

7765 Commits

Author SHA1 Message Date
Бранимир Караџић
5ff88cb761 Updated spirv-headers. 2021-04-18 13:27:36 -07:00
Бранимир Караџић
f323398895 Updated glslang. 2021-04-18 13:27:15 -07:00
Hugo Amnov
a176685a2c
Cleanup imgui shaders (#2479)
* Remove unused Imgui shaders

* Cleanup Imgui shaders position attribute
2021-04-18 12:58:00 -07:00
Hugo Amnov
b2d72b1495
Shaderc: Add missing raw compilation targets (#2478) 2021-04-18 11:45:33 -07:00
Бранимир Караџић
c3b8ec0dd0 Revert "Cleanup imgui shaders (#2476)"
This reverts commit 01b7fc0105.
2021-04-18 11:43:51 -07:00
Hugo Amnov
cf8ff18263
WebGPU update (#2477)
* WebGPU: Update to latest changes + Fixes

* WebGPU: Fix RG11B10F format as framebuffer
2021-04-18 11:39:52 -07:00
Hugo Amnov
01b7fc0105
Cleanup imgui shaders (#2476)
* Remove unused Imgui shaders

* Cleanup Imgui shaders position attribute
2021-04-18 11:39:42 -07:00
Hugo Amnov
d8ef330967
Fix embedded shaders compilation (#2475) 2021-04-18 11:38:51 -07:00
Бранимир Караџић
e3f91f2895 Updated version number. 2021-04-17 08:36:19 -07:00
Бранимир Караџић
6a5ab30c6c In debug build assert on texture and frame buffer validation. 2021-04-17 08:35:34 -07:00
Бранимир Караџић
6109697ade Added bgfx::isFrameBufferValid API. 2021-04-16 22:13:26 -07:00
Бранимир Караџић
41df93f81d Cleanup. 2021-04-16 22:05:08 -07:00
pezcode
9e025301a9
Vulkan: add headless and MSAA backbuffer support (#2472)
* Swapchain class

* Headless support

* MSAA backbuffer

* Fix framebuffer resolve

layout transitions were missing and framebuffer mips and layers weren't used

* Fix blit with MSAA resolve source

only the main texture layout was transitioned

* Fix pipeline hash
2021-04-16 09:54:37 -07:00
Daniele Bartolini
83039433ee
Add textureSize() overloads for BgfxI/USampler2D (#2471) 2021-04-15 14:24:42 -07:00
Бранимир Караџић
69fb21f50e Cleanup. 2021-04-13 21:55:56 -07:00
Бранимир Караџић
0ff10648b6 Cleanup. 2021-04-13 20:30:14 -07:00
Бранимир Караџић
82002656dc Updated README. 2021-04-12 20:08:38 -07:00
Бранимир Караџић
b5ca6e4c33 Updated README. 2021-04-12 20:07:56 -07:00
Matt Tytel
c6e17db9d6
Retain reset flags when creating a new metal frame buffer for a window. (#2469) 2021-04-12 12:42:53 -07:00
pezcode
eec0fcd867
Remove unused attributes in debug draw shaders (#2468) 2021-04-11 18:26:23 -07:00
Sam
49fb72842a
Minor alteration to clarify that BGFX_DISCARD_STATE also discards uniforms (#2464)
Signed-off-by: Samuel Hellawell <sshellawell@gmail.com>
2021-04-09 21:51:03 -07:00
pezcode
900afe7644
GL: only unbind instance buffer if it changed (#2463) 2021-04-09 09:36:21 -07:00
Бранимир Караџић
6c9c177e64 Merge branch 'master' of github.com:bkaradzic/bgfx 2021-04-08 20:28:56 -07:00
Бранимир Караџић
9d076b5e0a Updated meshoptimizer. 2021-04-08 20:28:39 -07:00
pezcode
2240c591a1
Vulkan: ignore unused storage buffers (#2460) 2021-04-08 20:26:17 -07:00
pezcode
b298851bf0
Vertex buffer fixes (#2458)
* Vulkan: calculate vertex count from all streams, not just the first

...which might not exist in the first place

* Vulkan: use correct vertex stream offsets and handles

* D3D11: remember stream vertex count when no index buffer is bound
2021-04-08 10:28:42 -07:00
Бранимир Караџић
9ec2472763 Cleanup. 2021-04-07 20:07:28 -07:00
pezcode
cb49df3bca
Bind IMAGE2D_RO correctly as a texture2D without a sampler (#2454) 2021-04-07 20:05:17 -07:00
pezcode
870d14110b
Vulkan: allow writing to gl_FragColor without framebuffer color attachment (#2452) 2021-04-07 07:21:02 -07:00
pezcode
9a91bc3496
Fix example 31-rsm Vulkan shaders (#2453) 2021-04-06 19:46:26 -07:00
Бранимир Караџић
9582f19483 Removed assert when viewport is zero size. 2021-04-05 16:07:23 -07:00
Бранимир Караџић
d61f78e263 Cleanup. 2021-04-05 12:27:48 -07:00
pezcode
db12a1d0e1
Vulkan: alias texture types in shaders + misc fixes (#2447)
* Don't enable optional extensions if BGFX_CONFIG_RENDERER_USE_EXTENSIONS is 0

* Support rendering to slices of 3D textures

* Create transient command pool

* Blit array layers for non-cube textures

* Clean up destroy and release functions

Simplifies CommandQueueVK code, automatically sets handles to NULL after release(), removes the need for explicit StateCacheT instantiations, and enables usage of StateCacheLru

* Fix renderpass hash calculation

* Allow sampling cube array textures

* Make StateCacheLru work with types overloading the address-of operator

* Alias textures to shader sampler type

Requires shaders with shaderc binary version 8 or higher

* Fix 32-bit compilation
2021-04-05 07:40:15 -07:00
pezcode
9d09088488
Additional framebuffer validation (#2448) 2021-04-05 07:23:25 -07:00
Бранимир Караџић
b6771ba403 Updated README. 2021-04-03 18:36:34 -07:00
Бранимир Караџић
ac89c244fb Updated README. 2021-04-03 18:32:50 -07:00
Бранимир Караџић
517942f8e1 Cleanup. 2021-04-02 20:17:42 -07:00
Бранимир Караџић
45c0b29470 Cleanup. 2021-04-02 16:46:42 -07:00
Paul Gruenbacher
3b34b6e68a
Update bgfx_p.h (#2444)
If you do 
```
bgfx::setIndexBuffer()
bgfx::submit(BGFX_DISCARD_NONE)
bgfx::submit()
```

then the second submit will be broken because even though it still uses the correct index buffer it will lose the BGFX_SUBMIT_INTERNAL_INDEX32 state.
Basically all multi-pass calls involving a 32index buffer are broken currently in bgfx master. 
This fixes bug introduced by 5c304dad3b
2021-04-02 16:43:52 -07:00
Бранимир Караџић
1fb245c581 Cleanup. 2021-04-02 12:51:59 -07:00
Бранимир Караџић
0df2e90edb Cleanup. 2021-04-01 20:09:16 -07:00
Branimir Karadžić
117b5ec4ee 05-instancing: Fixed update logic. 2021-04-01 19:16:13 -07:00
Vladimir Vukicevic
cb77d3bb46
Fix crash when hitting max draw call limit (#2440)
* Expand instancing demo to have non-instanced path

* Fix count vs. index off by one error when hitting max draw calls
2021-04-01 19:03:01 -07:00
pezcode
e38920c07b
View rect/scissor and framebuffer validation (#2439)
* Crop view rect and scissor to frame-/backbuffer size

* Validate framebuffer attachments

Check texture size, mip, layer range, layer count mismatch

* Remove framebuffer check from Vulkan backend

* Fix layer check for 3D attachment

* Cleanup
2021-04-01 16:18:09 -07:00
Christophe Dehais
2433b598e7
Fix BGFX_STATE_FRONT_CCW flag being ignored in DX12 and VK (#2438) 2021-04-01 08:47:45 -07:00
simon chen
0b8677ed06
fix update bug when compressed texture create with BGFX_TEXTURE_SRGB (#2437)
Co-authored-by: chenmou.cm <chenmou.cm@alibaba-inc.com>
2021-03-30 19:50:19 -07:00
Бранимир Караџић
3c7e21f1a6 Updated spirv-cross. 2021-03-27 15:38:57 -07:00
Бранимир Караџић
38fcc957b4 Updated spirv-tools. 2021-03-27 15:38:45 -07:00
Бранимир Караџић
d059039774 Updated glslang. 2021-03-27 15:38:33 -07:00
Бранимир Караџић
23b92ce879 Updated ImGui. 2021-03-27 15:11:04 -07:00