Commit Graph

796 Commits

Author SHA1 Message Date
timlyeee 8f53542267 fix win64 restart crash (#10233)
* fix win64 restart crash

* supply restart fix from v3.4.2/v3.5(supply a default context)
* temp hack for v8::Arraybuffer(abi conflict).
* remove use of windows dll for x86
2022-03-09 16:07:24 +08:00
hyde zhou f622c7b8b5 [pipeline] custom pipeline update (#10250)
* add layouts

* fix eslint error

* rendergraph creates device resources

* restore resourceGraph

* resource graph updated

* add scene interface

* layout graph updated

* stop use IntrusivePtr<gfx::Swapchain>

Co-authored-by: zxx43 <zxx43@hotmail.com>
Co-authored-by: GengineJS <476393671@qq.com>
2022-03-08 09:50:11 +08:00
hyde zhou 86ef5443e6 V3.6.0 pipeline (#10146)
* add custom render pipeline

* adding render pipeline jsb

* turn off clang-format

* tojs ini generation added

* adding render pipeline interface

* add interface

* refactoring interface

* add math

* format

* adding jsb

* revert include rule

* jsb added

* interface updated

* inheritance added

* remove dependency

* fix cleanPath namespace

* impl moved to render::impl

* remove remove_cvref_t

* enum renamed

* expects ensures renamed

* parameter name changed

* member name format changed

* impl cleaned

* functions renamed

* clang-format on

* impl cleaned

* overloaded renamed

* make range renamed

* VertexOverloaded renamed

* fix sevalue_to_native, use function specialization

* remove nodiscard

* Pipeline Builders renamed

* fix js enum naming bug

* add web pipeline

* add auto generation guard

* add descriptor interface

* fix layout name

* add DescriptorHierarchy

* LayoutGraphData renamed

* impl updated

* fix initialization

* fix member initialization

* fix GraphImpl this->

* this-> removed

* this-> removed

* Tag type renamed

* add license

* fix tag init

* rename

* layout graph renamed

* layout graph updated

* cntr updated

* adding descriptor hierarchy

* add present pass

* update jsb

* add layout graph

* change setter inheritance

* fix web-pipeline diamond inheritance problem

* cleanup

* change namespace

* adding layout graph

* add external resource type

* add factory

* adding native pipeline

* custom pipeline added

* adding UuidGraph

* uuid graph added

* adding pipeline runtime

* add uuid contains, rename addressable

* pipeline interface changed

* rendergraph completes filtering and dependencies

* Change the residency judgment

* RenderTexture changed to RenderWindow

* adding PipelineRuntime

* adding pipeline wrapper

* fix link error

* remove createPipelineRuntime

Co-authored-by: GengineJS <476393671@qq.com>
2022-03-02 13:41:15 +08:00
minggo 164d4ccc14 Rename Vector and Map (#10206)
* Vector -> RefVector
* Map -> RefMap
2022-03-02 09:56:38 +08:00
James Chen 3c5ee10731 [v3.6] Move native/external/config.json to native/external-config.json (#10207)
* Move native/external/config.json to native/external-config.json

* Update CI config.

* Update native/utils/download-deps.js

* Update native/tools/make-package/config.json

* Remove native/.github
2022-03-01 10:34:56 +08:00
James Chen f20c80e850 Remove __jsb_CCPrivateData_class and its relevant code. (#10190)
* Remove __jsb_CCPrivateData_class and its relevant code.
2022-02-28 09:56:22 +08:00
minggo aca0a1bccb Remove memory management (#10125)
* remove NedPooling

* remove Jealloc

* remove some macros

* move memory related macros into Memory.h

* delete MemTrack
2022-02-22 18:12:48 +08:00
hyde zhou 94516f5343 V3.6.0 pipeline (#10131) 2022-02-22 09:58:51 +08:00
Yun Hsiao Wu 40b80138e0 Merge remote-tracking branch 'origin/v3.6.0' into v3.6.0 2022-02-16 16:14:32 +08:00
Yun Hsiao Wu 1d41e392d1 Merge remote-tracking branch 'origin/v3.5.0' into v3.6.0 2022-02-16 15:44:34 +08:00
troublemaker52025 76af77d9b8 fix shadow merge error for v3.6.0 (#10073)
* fix shadow merge error for v3.6.0

* update

* fix ci error

* fix ci error 2

* fix ci error

* fix ci error 3
2022-02-16 12:12:45 +08:00
Yun Hsiao Wu efbb7c880b resolve conflicts 2022-02-16 10:47:38 +08:00
Yun Hsiao Wu 198034ec2c refactor access type array to access flags (#10103) 2022-02-16 09:56:46 +08:00
bofeng-song 7e2fce85f9 sychronize engine to native (#10099)
* sychronize engine to native according to  https://github.com/cocos-creator/engine/pull/10041
2022-02-15 10:09:53 +08:00
江战 add8a68829 genbindings batch (#10106) 2022-02-15 09:45:16 +08:00
minggo e1822484de Merge branch 'v3.5.0' into v3.6_merge_v3.5 2022-02-08 17:48:25 +08:00
timlyeee 83734a835c Fix android and ohos load library bug (#4240) 2022-02-08 17:29:41 +08:00
徐兵 5f5a66a6f0 skybox optimization (#4234)
* skybox optimization
Co-authored-by: xubingbing <bingbing.xu@cocos.com>
2022-02-08 15:27:07 +08:00
timlyeee abd84ac0e1 rename cocos2d to cocos (#4158)
* Rename cocos2d to cocos
2022-02-08 14:27:42 +08:00
James Chen b5e0a34300 Bind BuiltinResMgr to JS. (#4233)
* findClass should find nativeObj 's real type at first.
* Only use cpp version of BuiltinResMgr now.
* Bind BuiltinResMgr to JS.
2022-02-08 10:45:24 +08:00
Yun Hsiao Wu 2902e37d52 more validations (#4230) 2022-02-08 10:31:29 +08:00
minggo 7f24f34b22 Merge branch 'v3.5.0' into v3.6_merge_v3.5.0 2022-01-25 19:52:06 +08:00
Yun Hsiao Wu 464cc90bcc JSB generation keeps licenses, fixed (#4212) 2022-01-24 18:33:01 +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
bofeng-song 661925d420 fix AmbientInfo public field can not export (#4188) 2022-01-18 10:00:12 +08:00
bofeng-song d579a97c8b add _skycolor, _skyIllum, _groundAlbedo for editor (#4183) 2022-01-17 13:53:26 +08:00
minggo 3ec7db4a5d Fix crash when exit (#4177)
* Device owns Sampler and TextureBarrier

* do not detele smart pointer

* destroy program lib when exit program
2022-01-14 20:06:11 +08:00
bofeng-song cdb02a37a0 fix TextureCube crash & skybox not work (#4171) 2022-01-14 13:38:12 +08:00
bofeng-song 1a4a6ad5f2 fix todo: (#4149)
1. only support convert integer string to integer
2.  fix fogInfo sevalue_to_native of jsb_conversions_spec.cpp
3. fix ShadowsInfo sevalue_to_native of jsb_conversions_spec.cpp
4. add leak field of FogInfo & Shadows at scene.ini
5. fix todo of SkeletalAnimationUtils.h
2022-01-11 16:51:47 +08:00
James Chen 88c35244ca Fix asset.addRef/decRef (#4143) 2022-01-08 13:40:30 +08:00
minggo 5410a48a58 Implement more logic in native (#4131)
Co-authored-by: bofeng.song <bofeng.song@chukong-inc.com>
Co-authored-by: dumganhar <dumganhar@gmail.com>
Co-authored-by: mmyduckx <308303735@qq.com>
Co-authored-by: Patrice Jiang <397136899@qq.com>
Co-authored-by: 江战 <40414978+PatriceJiang@users.noreply.github.com>
2022-01-07 18:39:40 +08:00
minggo ac2045b0e0 Merge branch 'v3.5.0' into v3.4.0 2021-12-22 10:31:27 +08:00
ChiaNing 00d28992a4 remove DrawCall in DrawBatch (#4103) 2021-12-16 13:10:25 +08:00
Yun Hsiao Wu 5524b5c5d4 nx adaptation framework (#4050) 2021-12-14 15:04:57 +08:00
李吉林 b8e909a2b7 add geometry renderer (#4086)
* add geometry renderer

* fix clang-tidy
2021-12-07 18:19:03 +08:00
minggo 0db30a6523 merge develop 2021-12-07 15:26:33 +08:00
zhakesi 812825505d fix spine jsb binding (#4079) 2021-12-06 09:54:23 +08:00
minggo ac7418f1c1 fix conflict 2021-11-30 10:48:30 +08:00
李吉林 005fe503c7 add octree setting (#4059)
* add octree setting
2021-11-23 13:33:55 +08:00
GengineJS 8386790150 Restore part of pipeline code (#4040) 2021-11-10 15:37:29 +08:00
qiuguohua eeb9d5c689 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 <>
2021-10-27 10:51:02 +08:00
江战 90e6860e2f add skip_public_fields (#3987) 2021-10-14 09:48:03 +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
Kun Lin 528b9b0b99 Update bloom (#3970)
* Update bloom

* Remove bloom pass for UI camera
2021-10-13 16:59:31 +08:00
Yun Hsiao Wu 134914b53d fix buffer/texture info js binding (#3981) 2021-10-13 16:57:05 +08:00
Yun Hsiao Wu 8f8569f39e gfx: better hashing strategies (#3969) 2021-10-13 16:03:58 +08:00
jk20012001 4c94f2ca56 Support HDR/LDR Light Sources v3.4.0 (#3951)
* Support HDR/LDR Light Sources

* Fix ClangTidy error

* Fix name style error

* Synchronize naming for HDR

* Fix name style and compiling errors

* Remove fpScale, make deferred and forward uniform

* Fix diffusemap binding error

Co-authored-by: pandamicro <lphuabin@gmail.com>
2021-10-12 10:47:28 +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
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