Commit Graph

2127 Commits

Author SHA1 Message Date
Paul Gruenbacher
5b4a6dc330
Fix bad delete in font_manager.cpp (#2703)
Fix alloc-dealloc-mismatch (operator new [] vs operator delete
2022-01-03 12:52:53 -08:00
Бранимир Караџић
946852cec8 Fixed issue #2696. 2021-12-26 09:02:48 -08:00
XXxR4GALXxx
be3cfd1bd9
Fix "GDI resource leak". (#2694)
"When you no longer need the HBRUSH object, call the DeleteObject function to delete it."
https://docs.microsoft.com/en-us/windows/win32/api/wingdi/nf-wingdi-createsolidbrush
👍
2021-12-25 13:45:19 -08:00
Raziel Alphadios
16ee93b88d
Change TTF init asserts to warns and add some details to the output (#2681)
Co-authored-by: Raziel Alphadios <raziely@gmail.com>
2021-12-08 14:27:13 -08:00
simon chen
5cbaa3bdcd
remove duplicate code (#2679) 2021-12-07 08:55:19 -08:00
Aleš Mlakar
130bc00608
shaderc: Ignore .@data uniforms when compiling for metal (#2677)
Co-authored-by: Aleš Mlakar <ales.ambits@gmail.com>
2021-12-06 09:39:05 -08:00
Aleš Mlakar
f0a38398ae
40-svt: Use BGFX_TEXTURE_BLIT_DST when creating Atlas and Page Table textures so they can be blit to (#2678)
Co-authored-by: Aleš Mlakar <ales.ambits@gmail.com>
2021-12-06 09:38:23 -08:00
Бранимир Караџић
3b1f74bb51 09-hdr: Fixed texture creation. 2021-12-06 08:41:23 -08:00
Бранимир Караџић
73acc9e59b 41-tess: Updated GL shaders. 2021-11-21 07:58:19 -08:00
Бранимир Караџић
17bb4dce49 08-update: Fixed BC texture update. 2021-11-11 15:21:59 -08:00
DarkContact
08b8252f73
Fix font rendering (#2653)
* Fix subpixel font rendering

* remove const
2021-11-09 14:35:48 -08:00
Бранимир Караџић
796d1ceb39 08-update: Cleanup. 2021-11-01 18:27:27 -07:00
Бранимир Караџић
2df0a41918 08-update: Added blit test. 2021-11-01 08:43:22 -07:00
Raziel Alphadios
094d34194c
Cleanup: change POD casts from static_cast to functional/ctor casts, for consistency (#2648)
Co-authored-by: Raziel Alphadios <raziely@gmail.com>
2021-10-31 15:54:10 -07:00
Бранимир Караџић
b2d13fc3b8 21-deferred: Fixed uniform leak. 2021-10-28 18:43:09 -07:00
Branimir Karadžić
1d0d9b7149 21-deferred: Rebuilt shaders. 2021-10-28 18:40:46 -07:00
pezcode
d32d3b19b6
Fix 21-deferred with texture array frame buffer (#2646) 2021-10-28 16:46:57 -07:00
Бранимир Караџић
e71ffa0016 Cleanup. 2021-10-27 17:00:39 -07:00
Raziel Alphadios
9cc470a390
Fix C5055 warnings on C++20 and up (#2637)
* Fix C5055 (operator 'operator-name': deprecated between enumerations and floating-point types) warnings on C++20 and up

* Changed static_casts to functional-style casts

Co-authored-by: Raziel Alphadios <raziely@gmail.com>
2021-10-27 09:33:03 -07:00
Бранимир Караџић
67f462eee8 Cleanup. 2021-10-26 18:44:37 -07:00
Бранимир Караџић
53772163f4 Added cmdRemove. 2021-10-26 18:20:35 -07:00
Бранимир Караџић
948d137dfd Merge branch 'master' of github.com:bkaradzic/bgfx 2021-10-25 18:59:59 -07:00
Бранимир Караџић
8392a44b3a Fixed assert macros, and improved error handling. 2021-10-25 18:59:32 -07:00
Branimir Karadžić
4f1b3f8a1b 37-gpudrivenrendering: Rebuilt shaders. 2021-10-22 11:33:10 -07:00
Tom Schroeder
6573fc44a8
Modified handle initialization to fix compilation error (clang-osx) (#2629) 2021-10-17 15:21:57 -07:00
Бранимир Караџић
c5d1a1a8e3 Moving bounds from bgfx to bx. 2021-10-16 10:41:42 -07:00
Richard Schubert
ffeba57b8a
Fix FSR (#2628)
* Clear full framebuffer

* Fix type coercion

* Use bgfx API properly

* Remove redundant calls
2021-10-15 07:36:46 -07:00
Бранимир Караџић
a1d2c03eba Cleanup. 2021-10-14 21:03:34 -07:00
Бранимир Караџић
84a38eede0 Cleanup. 2021-10-13 19:54:27 -07:00
Бранимир Караџић
6921fc3438 Cleanup. 2021-10-08 19:06:53 -07:00
Branimir Karadžić
5890cef12b 46-fsr: Updated screenshot. 2021-10-06 18:05:00 -07:00
Branimir Karadžić
4717192086 Updated makefile. 2021-10-06 17:40:32 -07:00
Branimir Karadžić
778dffb6ee 46-fsr: Built shaders. 2021-10-06 17:40:15 -07:00
Branimir Karadžić
ad8eb09cf6 Fixed warnings. 2021-10-06 17:39:48 -07:00
Бранимир Караџић
58441ea499 Cleanup. 2021-10-05 19:42:44 -07:00
Richard Schubert
fc513e163b
Add new Example - AMD FidelityFX-FSR (#2612)
* Add new sample

* Add FSR shaders

* Add example template

* Add Antialiasing

* Add multi resolution rendering

* Implement magnifier

* Implement FSR EASU pass

* Implement FSR RCAS pass

* Improve wording of comments and UI

* Remove use of ffx_a.h in cpp

* Remove example external files

* Perform bilinear upsampling by compute shader

* Add FSR 16 Bit support

* Improve magnifier picking

* Fix magnifier picking

* Render magnifier widget

* Renaming of stuff

* Separate magnifier functionality

* Move FSR into separate class

* Reduce scope of FSR resources

* Fix FSR for Vulkan

* Fix OpenGL support

* Update sample screenshot
2021-10-05 09:01:50 -07:00
Бранимир Караџић
f50d84da52 Rebuilt SPIR-V shaders. 2021-10-02 11:31:52 -07:00
Бранимир Караџић
3c9591d9f9 Cleanup. 2021-09-25 22:30:42 -07:00
Бранимир Караџић
23994e7f23 Bounds: Overlap aabb/obb, and obb/obb. 2021-09-25 19:20:06 -07:00
Бранимир Караџић
f1ddf67114 Added initializer types. 2021-09-06 09:03:26 -07:00
Бранимир Караџић
ee0fbea726 Added AGC renderer stub. 2021-08-24 19:35:09 -07:00
pezcode
ec7cb7608e
Fix textureGather in example 39 (#2596) 2021-08-24 19:30:27 -07:00
Бранимир Караџић
568ee4ceac Cleanup. 2021-08-18 09:27:12 -07:00
DarkContact
8f60971dd6
fix deadlock and remove unused bx::Error (#2589) 2021-08-18 09:22:55 -07:00
Martijn Courteaux
078666d373
Allow to create a nvg texture from a BGFX texture. (#2548) 2021-06-25 13:29:51 -07:00
Бранимир Караџић
e0d26507dc Added BGFX_CONFIG_ENCODER_API_ONLY configuration setting to enable/disable non-encoder API. 2021-06-11 08:05:58 -07:00
Branimir Karadžić
f569fe32a6 Rebuilt all embedded shaders. 2021-06-06 14:51:46 -07:00
kingscallop
6440d669a8
Add missing examples in makefile (#2534) 2021-06-05 13:56:29 -07:00
kingscallop
1ab27e277b
Fix hardcoded bgfx dir from include paths in makefiles (#2532)
Only these four makefiles had these hardcoded paths.
All other makefiles don't specify the bgfx dir name.
2021-06-05 13:55:19 -07:00
Бранимир Караџић
ed645ff01a Bounds: Moved pass-thru funcs into .inl header. 2021-06-05 10:29:59 -07:00