Commit Graph

34 Commits

Author SHA1 Message Date
hyde zhou 019d35b22e [V3.5.0 deferred pipeline] fix vulkan crash problem (#10809)
* disable post-process alpha blend

* effects updated

* effects updated

* vk fix added

* disable gles3 fbf

* fix typo

* format and add comments

* add TODO

* fix TODO
2022-04-20 18:26:48 +08:00
hyde zhou 60a3704955 partial specialization (#10525) 2022-03-26 21:53:33 +08:00
Yun Hsiao Wu 198034ec2c refactor access type array to access flags (#10103) 2022-02-16 09:56:46 +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
Yun Hsiao Wu a360e4390a gfx: refactor binding mappings (#4195)
* gfx: refactor binding mappings

* fg: fix scissor merge

* fix genbindings on PyYAML 6.0+
2022-01-21 09:43:55 +08:00
Yun Hsiao Wu 70f01edc0d fix fg gc bug 2021-11-11 15:56:43 +08:00
Yun Hsiao Wu 8877e4f647 restore render area semantic 2021-11-11 15:56:43 +08:00
Yun Hsiao Wu ed77f18027 misc fixes (#4013)
* sampler wrap mode validation

* fg: fewer hashing per frame

* better interface names for query pool

* auto update fbo after rt resize

so that the framegraph reuse logic can work
2021-10-28 09:45:38 +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 8f8569f39e gfx: better hashing strategies (#3969) 2021-10-13 16:03:58 +08:00
Yun Hsiao Wu 5e282a9ce5 fg: use hashmap in resource allocators (#3962)
...to handle hash collisions gracefully.
2021-10-11 15:28:03 +08:00
Yun Hsiao Wu 3296cef8f4 fix deferred pipe (#3955) 2021-10-08 14:08:50 +08:00
江战 b5a846de86 save (#3944) 2021-09-30 09:09:26 +08:00
Yun Hsiao Wu 27e5a5630f fix orientation change (#3940) 2021-09-29 14:13:16 +08:00
Yun Hsiao Wu 23a9d75bee fg: present with move if possible (#3919)
* fg: present with move if possible

* fix ia state cache
2021-09-26 17:37:28 +08:00
江战 5074a5a826 V3.4.0 usec++14 (#3898)
This reverts commit fff4cc8fc94fb9b1a8424a2b89e9966184c6c4ce.
2021-09-18 13:53:58 +08:00
Yun Hsiao Wu 89131fad2d GL: better subpass support (#3887)
* vk: better subpass dependency deduction

* GL: better subpass support

* uint -> uint32_t

* officially make viewport/scissor dynamic by default

* gfx: states store hashes

* gfx: defend against usages after destroy
2021-09-16 09:43:26 +08:00
Yun Hsiao Wu d4441705e6 unify gfx resize event (#3875) 2021-09-09 16:00:21 +08:00
Yun Hsiao Wu 2134db8c4e fix fg exec storage (#3865)
* fix swapchain resize

* fix fg exec storage
2021-09-06 15:28:57 +08:00
Yun Hsiao Wu 47305ec5c5 GL: smarter framebuffer cache (#3860) 2021-09-01 20:47:54 +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
lawrence-liuyue bd98d04639 Framegraph (#3713)
* framegraph, port from dpc

* enable frame graph in deferred pipeline

* apply framegraph in deferred pipeline,  compile completed

* apply framegraph in deferred pipeline,  compile completed

* debug framegraph

* debug sspr

debug sspr

* debug sspr

debug sspr

* port from liuhang

* apply uiphase

* fix CI bugs

* Delete jsb_pipeline_auto.cpp

* Delete jsb_pipeline_auto.h

* Revert "Delete jsb_pipeline_auto.h"

This reverts commit 224b1df83d3d69e65846ff2ca11ce8b804205c84.

* Revert "Delete jsb_pipeline_auto.cpp"

This reverts commit 16cb80ac7a7c5196c711261edd537555eff42da1.

* jsb_pipeline_auto

* fix clangtidy

* fix clangtidy

* fix clang-tidy

* fix clang-tidy

* add comments in Deferredpipeline.h

* Update pipeline.ini

* add transparent pass, add depth in postprocesspass

* fix compile error in mac/android

* Update LightingStage.cpp

* fix render tager bugs

* delete useless code

* fix clang-tidy

* fix viewport bugs in gles
2021-08-05 16:23:59 +08:00
Yun Hsiao Wu 5c88f24b3f misc gfx & fg improvements (#3703) 2021-07-13 14:07:47 +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
minggo aa522396a3 CC_INLINE to inline (#3664) 2021-06-28 16:41:13 +08:00
Zeqiang Li 219ec21abf remove nativeSize() interface (#3590) 2021-06-09 09:54:55 +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 9593a54b76 gfx: lifecyle validations (#3341)
* gfx: lifecyle validations

* better noexcept workaround

* more validations

* device layer reflection

* fix release build
2021-03-26 16:30:09 +08:00
Yun Hsiao Wu a42be36e36 gfx: validator (#3337)
* gfx: validator

* replace c-style casts

regexes used:
(?<!>)\(\(([\w\s\*]+?)\)([\w\[\]\->.:]+)\)
\[\(\w+\)(Feature::\w+)\]
2021-03-22 16:15:31 +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 acbd39ff55 move minimal jsb init into a separate header (#3314) 2021-03-12 09:56:04 +08:00
Yun Hsiao Wu 6b197934ff basic framegraph (#3303) 2021-03-11 11:15:09 +08:00