Commit Graph

45 Commits

Author SHA1 Message Date
Yun Hsiao Wu df6465c723 remove debug code (#10293)
they use overly-strict memory orders, which is not good to keep around
anyways
2022-03-10 09:42:26 +08:00
Yiwen 8e81f9cfdb add a new interface to query format feature info (#4169)
* create a seperated branch to solve the Issue 8203

* Add format feature for query

* fix bugs and add formatFeature info for metal backend.

* 1. fix some bugs; 2. correct some condition judgements; 3. remove some uncessary comments;

* fix a bug of textureExclusive, fix some typos.

* clean the code, correct some formatFeatures.

* fix bugs in metal backend, fix bugs found on windows.

* Use a proper log funciton in DeviceValidator. Fix code format.

* fix perfect-forwarding in CondVar interface
2022-01-25 19:02:33 +08:00
minggo f08555248f fix conflict 2022-01-24 17:23:03 +08:00
Yun Hsiao Wu 14a17c9d22 license upgrade (#4210) 2022-01-24 17:18:47 +08:00
Zeqiang Li 4b1422a7f3 event init & mem align (#4116) 2021-12-21 11:08:11 +08:00
Yun Hsiao Wu 5524b5c5d4 nx adaptation framework (#4050) 2021-12-14 15:04:57 +08:00
minggo ac7418f1c1 fix conflict 2021-11-30 10:48:30 +08:00
oahcy 5379e6ef35 引擎适配linux平台 (#4035) 2021-11-29 17:17:15 +08:00
Yun Hsiao Wu dbcb157efb misc gfx fixes (#3991)
* better hashing strat

* gfx: unify states hash

* vk: upload texture in multiple chunks if needed

* gfx: states lifecycle management
2021-10-19 14:14:46 +08:00
Yun Hsiao Wu 283e936c09 mq: more accurate switch chunk size (#3956) 2021-10-08 18:33:57 +08:00
minggo ea980f509c merge v3.3.2 2021-09-24 12:38:10 +08:00
江战 5074a5a826 V3.4.0 usec++14 (#3898)
This reverts commit fff4cc8fc94fb9b1a8424a2b89e9966184c6c4ce.
2021-09-18 13:53:58 +08:00
Zeqiang Li 3e28c2821a api min required -> ios 10.0 (#3885)
* ios 10 alignas
* ios 10 api
2021-09-15 16:03:12 +08:00
江战 1bac46bb23 Use c++14 by default (#3880) 2021-09-13 10:41:27 +08:00
Yun Hsiao Wu da2f03ff73 gfx: swapchain refactor (#3751)
* gfx: swapchain

* acquire/release/surface on swapchain

* fix swapchain texture creation

* acquire/present back on device

* formats are swapchain-specific

* swapchain: vk works

* enable device agent

* format fix

* update gfxdef

* fix enum decl

* pipeline adapt

* minor

* vk: compress attr locations directly in SPIR-V

* gles3 adjust

* InputAssembler owns an DrawInfo

* gles2 adapt

* texture keep track of its hash

* device cached states

* format

* glslang finalize

* buffer view adapt

* fg: subpass support

* minor

* 3.4 adapt

* profiler adapt

* buffer update frequency detection

* minor

* base commit

* swapchain works on metal

* spirv

* mtltexture issue

* remote test code

* depthtexture

* revert ifdef USE_METAL

* ios swapchain header

* fix some triple buffer issues

* resize accept surface transform

Co-authored-by: Zeqiang Li <Zeqiang-li@outlook.com>
2021-08-31 19:40:32 +08:00
minggo ee9201b490 fix typo (#3771) 2021-07-26 16:33:53 +08:00
Yun Hsiao Wu 5c88f24b3f misc gfx & fg improvements (#3703) 2021-07-13 14:07:47 +08:00
Zeqiang Li 63ca1034a9 reduce persistent memory (#3662) 2021-07-09 16:00:42 +08:00
minggo 7244eb2a5e fix some memory leak (#3686) 2021-07-06 14:34:52 +08:00
Yun Hsiao Wu d7db4dc817 gfx: resolve attachments (#3684) 2021-07-06 14:02:59 +08:00
minggo 028ec8443d Misc (#3683)
* improve codes:
1. remove unneeded codes
2. fix potential memory leak
2021-07-05 10:21:01 +08:00
Yun Hsiao Wu b2fe7ba5c9 gfx: sRGB texture support (#3619) 2021-06-17 18:10:06 +08:00
Yun Hsiao Wu 1ebe420662 structure adjustments (#3532) 2021-06-02 09:39:13 +08:00
Yun Hsiao Wu 6eedb24f9f gfx: object id / typed id (#3508)
* unified objectID/typedID

* record command buffers for validation

* update auto fix doc
2021-05-10 15:07:31 +08:00
cary 43c6e02f80 Fix noexcept error. (#3426)
* Fix noexcept error.
2021-04-19 17:46:59 +08:00
Yun Hsiao Wu e1c240f2d0 Clang-Tidy adaptations (#3379)
* gfx: CommandBuffer.draw accept DrawInfo

* clang-tidy config

* tidy adapt

* enable function name check

* better workflow
2021-04-12 09:41:28 +08:00
Yun Hsiao Wu 8034bd59d8 [chore] gfx layer adjustments (#3323)
* [chore] move common routines to gfx base

* [chore] remove device pointer inside every gfx resources

* [chore] file structure

* gfx: empty backend

* [chore] device creator abstraction
2021-03-19 16:24:43 +08:00
Yun Hsiao Wu ab32b3083e vk: update barrier manager ref on destroy (#3304)
* vk: update barrier manager ref on destroy
2021-03-09 15:55:50 +08:00
cary e5fe94e743 Fix the material and resources of the deferred pipeline. (#3294) 2021-03-03 08:46:00 +08:00
Yun Hsiao Wu ea88ba33c6 codebase structure update (#3289)
* structure

* fix jsb auto binding license issue
2021-03-01 12:00:10 +08:00
Yun Hsiao Wu a674efe2dc fix conflicts 2021-02-07 10:57:40 +08:00
Yun Hsiao Wu d0fb6d5281 fix format 2021-02-05 16:41:01 +08:00
Yun Hsiao Wu e0fdfef054 license upgrader 2021-02-05 14:08:22 +08:00
Yun Hsiao Wu fc034ea606 performance test works 2021-01-11 17:12:40 +08:00
Yun Hsiao Wu 55722500c9 structure 2021-01-11 17:12:39 +08:00
Yun Hsiao Wu 0155b1942c structure 2021-01-11 17:12:39 +08:00
Yun Hsiao Wu d9f91be676 device agent allocator pool 2021-01-11 17:12:35 +08:00
pandamicro 879ff18171 Initial implementation of Metal parallel encoding 2021-01-11 17:12:34 +08:00
Yun Hsiao Wu 6cdc76c13a format 2021-01-11 17:12:31 +08:00
Yun Hsiao Wu 803ac271e7 format 2021-01-11 17:12:31 +08:00
Yun Hsiao Wu 5beb75c452 format 2021-01-11 17:12:31 +08:00
Yun Hsiao Wu 73dc8167fb robust improv 2021-01-11 17:12:27 +08:00
Yun Hsiao Wu 0875fcdc58 fix destruction process 2021-01-11 17:12:27 +08:00
Yun Hsiao Wu df14320156 vk: pre-allocated descriptor sets 2021-01-11 17:12:26 +08:00
Yun Hsiao Wu f4bc1e096f structure 2021-01-11 17:12:26 +08:00