Commit Graph

51 Commits

Author SHA1 Message Date
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 1552345596 Merge branch 'v3.4.2' into v3.5.0_merge_v3.4.2
Conflicts:
	cocos/platform/android/jni/JniCocosActivity.cpp
	cocos/platform/apple/JsbBridgeWrapper.mm
	cocos/platform/ohos/jni/JniCocosAbility.cpp
	cocos/renderer/gfx-metal/MTLCommandBuffer.mm
	external/config.json
2022-01-24 15:01:01 +08:00
DolaMay 5321d81d95 Position Delete & Normal Compress: V3.4.1 native (#4135)
* fix cluster check bugs

* Position Delete & Normal Compress
2022-01-07 22:56:18 +08:00
qiuguohua 063a79df84 Sync v3.4 to develop (#270)
* [ci] compile ios verbose (#3978)

* [v3.4.0] [ci] compile ios verbose (#3974

* Merge the code of v3.3.1 platform adaptation layer into the development branch (#3958)

* 1、Merge platform adaptation layer code into the development branch
2、It passed the test in windows and ohos system

* 1、Merge platform adaptation layer code into the development branch
2、It passed the test in windows and ohos system

* 1、Fix github compile windows error

* 1、Fix github compile windows error

* 1. Adjust the code format;
2. Fix js automatic generation binding
3. Adjust github CI compilation

* 1. Adjust the code format;
2. Fix js automatic generation binding
3. Adjust github CI compilation

* Solve mac and ios compilation failure

* Fix the problem of compilation of Windows-side simulator

* 1. Adapt the simulator to a new adaptation layer;
2. Fix the compilation warning of ios, and the implicit conversion failed;
3. Fix the mac compilation error, due to the problem of adding the link identification -all_load;

* 1.Add the isDisplayStats and setDisplayStats method to the screen interface

* Fix clang-tidy compilation warning

* Fix clang-tidy compilation warning

* Repair the emulator, compatible with mac and win

* 1、Repair detailed errors, including name modification and calling method modification
2、Delete redundant files in the template directory
3、Change the vibrate interface to vibrator
4、Fix word spelling errors

* Rename interfaces to modules

* Replace CC_ASSERT with CCASSERT

* Replace CC_ASSERT with CCASSERT

Co-authored-by: qiuguohua <>

* Remove all_flag in IOS (#4014)

* gfx: onAcquire callback (#4038)

* Solve the conflict between cocos/platform and template

Co-authored-by: minggo <nudtzxm@gmail.com>
Co-authored-by: 江战 <40414978+PatriceJiang@users.noreply.github.com>
Co-authored-by: Yun Hsiao Wu <yunhsiaow@gmail.com>
2021-11-30 10:13:49 +08:00
Yun Hsiao Wu 34c4bf7373 draw profiler only once 2021-11-11 15:56:43 +08:00
Yun Hsiao Wu a297dea9b6 fix cluster demo on vk 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
GengineJS ea219cc323 fbo scale > 1, profiler misalignment problem and bloom viewport setti… (#4001)
* fbo scale > 1, profiler misalignment problem and bloom viewport setting error problem

* To optimize the pipeline sampler

* Change renderArea to static

* update renderarea
2021-10-22 19:19:57 +08:00
李吉林 859974a4ca V3.4.0 metal occlusion query (#3993)
* add occlusion query for metal and defer
Co-authored-by: lijilin <jilin.li@cocos.com>
2021-10-19 18:26:49 +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
李吉林 bed27fcccf V3.4.0 occlusion query2 (#3975)
* occlusion query
Co-authored-by: lijilin <jilin.li@cocos.com>
2021-10-13 18:21:03 +08:00
Yun Hsiao Wu 3296cef8f4 fix deferred pipe (#3955) 2021-10-08 14:08:50 +08:00
DolaMay 1aed070f8f cluster native v340 code (#3923)
* cluster native v340 code

* pclint errors and review comments correct

* compile errors

* clang tidy bug fix

* cluster add enable and disable api

* add marco to switch cluster feature

* Code review: simplify fg read logic
2021-09-30 10:16:50 +08:00
minggo c0fa3af246 Fxaa (#3928)
* Adaptation fxaa

Co-authored-by: zhengxiangkui <476393671@qq.com>
2021-09-28 11:05:55 +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 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 d261e62ecc merge v3.3.0 and fix conflict 2021-08-13 22:28:13 +08:00
Yun Hsiao Wu 2056271bac misc pipeline fixes (#3811) 2021-08-10 09:49:18 +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
Zeqiang Li 785839843c leaks when quit (#3755) 2021-07-23 09:34:06 +08:00
cary 6f95ccf9ea Fix the rendering bug of vulkan backend for Android platform. (#3753) 2021-07-22 09:46:53 +08:00
Zeqiang Li 7a3cfdeab2 fix deferred pipeline crash on mac (#3745) 2021-07-20 17:38:01 +08:00
江战 aa009ac26b 3.3 js message queue (#3731) 2021-07-16 15:20:23 +08:00
cary 5b9211b0d4 Fix some issues of deferred pipeline. (#3716) 2021-07-14 17:10:13 +08:00
minggo 43c288196e Merge v3.1.2 (#3691)
* add jsb binding for v3.1.2 (#3611)

* update (#3615)

* optimize cleanTracks method (#3620)

* Fix setMaterial memory leak (#3622)

* fix RenderAdditiveLightQueue memory leaks for v3.1.2 (#3616)

* fix shadows GFXBuffer memory leaks for v3.1.2 (#3630)

* [ci skip][AUTO]: updating jsbinding automatically: dea52c7b (#3633)

Co-authored-by: cocos-robot <engine-deploy@cocos.com>

* fix erase shared body (#3635)

* Native PCF change sync to native-engine for v3.1.2 (#3652)

* support getAABB and getBoundingShpere (#3563) (#3671)

* fix compiling error

Co-authored-by: troublemaker52025 <troublemaker52025@outlook.com>
Co-authored-by: mmyduckx <308303735@qq.com>
Co-authored-by: wangyuzhi233 <78699242+wangyuzhi233@users.noreply.github.com>
Co-authored-by: Cocos Robot <48829427+cocos-robot@users.noreply.github.com>
Co-authored-by: cocos-robot <engine-deploy@cocos.com>
Co-authored-by: jiaxin.lai <goodlaijiaxin@qq.com>
2021-07-13 09:43:25 +08:00
ref-ptr 001bd64fff CameraUBO和GlobalUBO更新机制替换为Buffer::update的memcpy (#3629) 2021-06-18 17:51:04 +08:00
cary f406185c87 Merge SSPR to v3.3. (#3601)
* support SSPR by hw
Co-authored-by: dddpppccc <291274416@qq.com>
2021-06-09 15:31:42 +08:00
cary d77dbb3a53 implement scene management in native(#3584) 2021-06-02 17:22:33 +08:00
cary 9041eabd06 Fix the problem that 3D model are not displayed on vulkan. (#3483) 2021-04-28 17:11:30 +08:00
GengineJS 86d4fd524e [Fix] deferred rt adaptor (#3474) 2021-04-26 13:32:37 +08:00
GengineJS c1302a3fcc [Feature] change deferred quad calculation (#3463)
* [Feature] Deferred rt adaptor

* [Feature] change deferred quad calculation

* Replaced with the swap

* [Remove] Removed pipeline offscreen judgment
2021-04-25 16:17:32 +08:00
lawrence-liuyue 87e772a8d6 fix memory leak bug (#3458) 2021-04-25 10:54:23 +08:00
cary 90e915f45c Optimize the performance of the typed array pool on the native. (#3443)
* Optimize the performance of the typed array pool on the native.

* update name
2021-04-22 10:30:10 +08:00
Yun Hsiao Wu 90f345b768 format & type fixes (#3428)
* separate script for windows

* buffer.update const qualifier

* fix ES2 MRT supprot

* vk: subpass support

* better enum operators
2021-04-19 22:23:23 +08:00
GengineJS c61e064ee1 [Feature] Optimize the shadow collect process of shadowMap (#3422) 2021-04-19 19:02:45 +08:00
troublemaker52025 97ea27b812 Add Linear depth for nativeEngine in v3.1 (#3404)
* fix native-engine for linearDepth
2021-04-19 14:55:45 +08:00
cary 59f9881e58 Optimize the performance of the memory pool. (#3414) 2021-04-19 09:37:47 +08:00
lawrence-liuyue 7108d53a70 modify quad uv coord of deferred pipeline (#3400) 2021-04-16 18:54:49 +08:00
mmyduckx 5ef2ab11bf Fix more warings (#3396) 2021-04-15 09:40:29 +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
cary 52c1c70838 Fix the render problem of deferred pipeline. (#3328) 2021-03-18 10:28:51 +08:00
cary cc7d347dbb Fix the mutithread problem of deferred pipeline. (#3321) 2021-03-15 17:32:55 +08:00
cary c10d771fd2 Fix render error of deferred pipeline on vulkan. (#3319) 2021-03-15 09:53:28 +08:00
cary 3385ffbdd8 Fix shader compile error. (#3298) 2021-03-04 10:20:46 +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 e0fdfef054 license upgrader 2021-02-05 14:08:22 +08:00
Yun Hsiao Wu cae4a77261 fix conflicts 2021-02-03 17:46:26 +08:00