Commit Graph

52 Commits

Author SHA1 Message Date
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
minggo d8824f8a11 fix coding style (#3371) 2021-04-02 09:55:12 +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 a674efe2dc fix conflicts 2021-02-07 10:57:40 +08:00
Yun Hsiao Wu defdc8d5b0 Merge branch 'v3.1' of https://github.com/cocos-creator/engine-native into device-proof 2021-02-07 10:33:25 +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 8c96bfa860 editor adapt 2021-02-03 16:38:40 +08:00
Yun Hsiao Wu 1c1406eab6 vk: more synchronization fixes (#3263) 2021-01-28 16:38:18 +08:00
Yun Hsiao Wu 6ebd9a1985 misc fixes 2021-01-26 16:58:00 +08:00
Yun Hsiao Wu d9f00368cc fix ios build 2021-01-25 18:24:18 +08:00
Yun Hsiao Wu a3a6b149d0 barrier as explicit state object 2021-01-25 15:38:03 +08:00
Yun Hsiao Wu b35d292940 vk: remove all thsvsCmdPipelineBarrier 2021-01-25 11:35:31 +08:00
Yun Hsiao Wu 6d5c823b82 vk: disable all barrier deduction for now 2021-01-25 10:35:44 +08:00
Yun Hsiao Wu ec0088baaf vk: barrier refactor 2021-01-21 23:51:40 +08:00
Yun Hsiao Wu 4a14924bc2 mage barrier deduction 2021-01-19 16:25:53 +08:00
Yun Hsiao Wu 4d7a2c219a storage image support 2021-01-15 14:56:02 +08:00
Yun Hsiao Wu ee05ce4fa0 better storage buffer support 2021-01-14 14:33:22 +08:00
Yun Hsiao Wu a5496ea1d2 compute shader: GLES3 2021-01-13 16:23:50 +08:00
Yun Hsiao Wu 8811ee9bb8 fix cb allocator init 2021-01-11 17:12:43 +08:00
Yun Hsiao Wu f4df2d64ab concurrency between passes 2021-01-11 17:12:43 +08:00
Yun Hsiao Wu f267aad9aa not working: synced secondary recording 2021-01-11 17:12:42 +08:00
Yun Hsiao Wu 874ac84a42 working device agent JSB binding 2021-01-11 17:12:41 +08:00
Yun Hsiao Wu be4dd54d86 vk: wait idle before swapchain reset 2021-01-11 17:12:40 +08:00
Yun Hsiao Wu 3d80ca5670 adapt 2021-01-11 17:12:36 +08:00
Yun Hsiao Wu e0c28d4b62 gl: full secondary cb 2021-01-11 17:12:30 +08:00
Yun Hsiao Wu ccab942007 vk: triple buffer 2021-01-11 17:12:28 +08:00
Yun Hsiao Wu 778ef759bb parallel submission framework 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
Yun Hsiao Wu 646120089d fix device.destroy 2021-01-11 17:12:25 +08:00
Yun Hsiao Wu 1a65678152 more fixes 2021-01-04 11:01:24 +08:00
Yun Hsiao Wu fc6d6e6767 fix back buffer index 2021-01-04 11:01:23 +08:00
Yun Hsiao Wu b44ed112a7 vk: async attempt2 2021-01-04 11:01:22 +08:00
Yun Hsiao Wu 53e96339d4 device init on main thread 2021-01-04 11:01:18 +08:00
Yun Hsiao Wu 33a18bb64b vk: async attempt 2021-01-04 11:01:15 +08:00
Yun Hsiao Wu f666baf79d working single thread 2021-01-04 11:01:15 +08:00
Yun Hsiao Wu 546735a58c thread lib 2021-01-04 11:01:12 +08:00
Yun Hsiao Wu 9d3d6647dd merge latest device layer (#3145) 2020-12-28 17:23:16 +08:00
Yun Hsiao Wu 7384716c86 fix light pass index (#3017)
* fix light pass index

* vk: fix vertex attribute offset
2020-11-12 12:55:45 +08:00
Yun Hsiao Wu 0cde2f9aac vk: handle android window events (#2992)
* fix GL state cache

* vk: handle android window events
2020-11-07 21:05:14 +08:00
Yun Hsiao Wu 76c5a91e58 vk: should wait for color output finish before transfering (#2961) 2020-10-29 19:49:38 +08:00
Yun Hsiao Wu f82ddea5bc pipeline adaptations for pre-rotation (#2958) 2020-10-29 13:46:09 +08:00
Yun Hsiao Wu e62ae5170b fix pipeline include typo (#2950)
whew that's one good way to mess it up
2020-10-28 09:54:01 +08:00
Yun Hsiao Wu c10fb33a1f vk: pre-rotation on android (#2940) 2020-10-24 14:20:59 +08:00
Yun Hsiao Wu 5c596a3e48 vk: don't recreate swapchain on suboptimal result (#2938)
we've not implemented pre-rotation yet.
2020-10-21 20:48:09 +08:00
Yun Hsiao Wu fb791ad01b discrete descriptor set layout bindings (#2920) 2020-10-20 15:06:57 +08:00
Yun Hsiao Wu 19ba9138d5 vk: move wait fence to acquire time (#2922)
* vk: move wait fence to acquire time
2020-10-20 15:06:20 +08:00