Commit Graph

5114 Commits

Author SHA1 Message Date
Cocos Robot af23ee705d [ci skip][AUTO]: Automated code generating update: 2a51caedb255a578de9da01a8709b5866e87bf3f (#11259) (#11300)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-05-31 14:35:27 +08:00
mmyduckx 63e5694cfe Sync shadow info (#11259)
* sync ts shadowInfo planeDirection&planeHeight
2022-05-31 14:27:41 +08:00
Cocos Robot 893b9012bb [ci skip][AUTO]: Automated code generating update: 7953d3cad0ae59507d0d7db869fac8262fc3f54d (#11286) (#11293)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-05-31 10:13:52 +08:00
kenshin bb611b381d Update Downloader-java.cpp (#11240) 2022-05-31 09:58:02 +08:00
James Chen fdc977ee78 [v3.6] Cleanup code, fix typo and add missing property bindings (#11254)
* Fix typo: Fog::setfogRange -> Fog::setFogRange

* Model::getInstancedAttributeBlock should return reference.

* Update scene.ini

* Fix errors in scene.ini.

* Put Node::_children private.

* Update access level, return value, typo.

* revert Ambient.h

* Remove an unused method: RenderScene::removeModel(index_t idx);

* Update scene.ini

* Add missing propery bindings in Shadows & AmbientInfo.

* Remove unused accessor in Ambient.h
2022-05-31 09:57:30 +08:00
qiuguohua bb16068bab Modify platfrom to platform (#11283)
* Modify platfrom to platform
2022-05-30 18:22:17 +08:00
江战 60a918965c seval_to_Data accept arraybuffer (#11280) 2022-05-30 16:17:58 +08:00
Cocos Robot eac66a91a4 [ci skip][AUTO]: Automated code generating update: b2ecfc0d54f5cc82da8a80f7f37576bc3231e7fe (#11021) (#11275)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-05-30 13:32:53 +08:00
hyde zhou 243547ffac V3.6.0 pipeline (#11021)
* 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

* fix misuse of drawAPI on metal (#10195)

* 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

* decouple GlobalDescriptorSetManager from RenderPipeline

* formatting

* move interface onGlobalPipelineStateChanged from PipelineSceneData to Pipeline

* 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>

* add setViewport setScissor

* scene transversal modified

* accidentally omitted

* remove pipeline event from pipeline, decouple terrain from render pipeline

* shadingScale moved from PipelineSceneData to Pipeline

* Pipeline removed from PipelineSceneData

* pipelineEvent refactored

* fix typo

* rendergraph executes

* interface changed

* fix submit

* Update the draw function

* pipeline runtime added to pipeline

* automatically barrier

* typo

* comment

* forgot sth important

* add classic/custom pipeline switch

* web pipeline can be enabled

* relax pipeline interface

* pipeline use gfx::Color

* decouple native RenderPipeline

* fix clang tidy

* add get pipelineSceneData

* present refactored

* added executor example

* half way done

* find slot

* merge & sort layout

* layout graph updated

* enable native usesCustomPipeline

* change mergedbs

* fix comment

* fix eslint error

* fix

* draft

* update the rendergraph compiler

* update the compiler

* update executor

* update to latest

* revert mtlcmdbuffer manually

* valid added

* external node

* add framebuffer

* fix linter

* fix linter

* fix implicit narrow cast

* fix linter

* use native root.pipeline

* use Root to get pipeline instance

* fix ccstd::string

* turn off validation

* cleanup

* ccstd::pmr::string changed

* update the pipeline ubo

* use ccstd::pmr::string

* uses ccstd::pmr::vector

* uses ccstd::pmr::map

* reconstruction

* external res

* compile issue

* clang tidy

* fix ccstd::pmr::string hash

* fix potential issue

* Fixed some rendering errors of webpipeline in the editor

* Optimize attachment load/storeOp logic

* update executor

* WebPipeline bug fixed in editor

* Fix the problem of resource cache error when camera is deleted or added

* webpipeline performs logic adjustments and bug fixes

* render graph updated

* descriptor updated

* descriptor updated

* fix member traits

* libstdc++ does not support hashing std::pmr::string on linux

* refactor descriptor

* jsb allocator walkaround

* rename

* descriptor type refactored

* fix default

* adding layout graph builder

* adding native layout builder

* adding native builder

* adding layout graph

* adding descriptor

* adding descriptor layout

* create layout graph builder added

* fix root

* format

* add web layout graph builder

* refactor web layout graph

* fix intrusive ptr

* descriptor set data updated

* debug string added

* adding render graph

* adding resource graph

* adding native pipeline

* graph remove edge temporary fix

* remove_edge simplified

* remove edge simplified

* outIter renamed

* remove edges simplified

* fix reference graph impl

* adding native impl

* remove unused native

* queue added

* adding native pipeline

* adding native pipeline

* fix bug

* render graph setup added

* render graph updated

* fix ccstd::string

Co-authored-by: Zeqiang Li <zeqiang-li@outlook.com>
Co-authored-by: GengineJS <476393671@qq.com>
Co-authored-by: zxx43 <zxx43@hotmail.com>
2022-05-30 11:50:22 +08:00
minggo fe8e4ecd2b Merge pull request #11256 from minggo/v3.6.0-merge-v3.5.1
V3.6.0 merge v3.5.1
2022-05-30 11:48:34 +08:00
Yiwen 791c264de6 Add buffer offset to gfx::BufferTextureCopy. (#11007)
- [x] sync to typescript engine
- [x] sync to jsb
2022-05-30 11:07:50 +08:00
minggo 226d81b6bd sync logic to native 2022-05-30 10:51:27 +08:00
Cocos Robot 878db36f3c [ci skip][AUTO]: Automated code generating update: 4caee626a658b4334e8f91892d4cdebf8e775aeb (#11241) (#11269)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-05-30 10:15:48 +08:00
zhakesi 89621a8084 optimize spine use local mode in native (#11225)
Co-authored-by: zhakesi <zhakesi@foxmail.com>
2022-05-29 13:46:05 +08:00
zhakesi 0065242d91 fix dragonbone animation stop function with paramter null (#11241)
Co-authored-by: zhakesi <zhakesi@foxmail.com>
2022-05-29 13:41:33 +08:00
minggo 77701a2d84 Merge branch 'v3.5.1' into v3.6.0-merge-v3.5.1 2022-05-27 15:23:33 +08:00
mmyduckx b09494503f fix skeletalAnimation memory leak (#11249) 2022-05-27 10:43:09 +08:00
Cocos Robot 2a8008924f [ci skip][AUTO]: Automated code generating update: 4b8992ee0d0fb45c5eff98eb7d49d4d796636ff8 (#11237) (#11252)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-05-27 09:53:49 +08:00
James Chen b65b47c04b [v3.6][native] Cleanup code, minor changes (#11237)
* [v3.6][native] Cleanup code, minor changes
2022-05-27 09:46:04 +08:00
James Chen 2dbb19adee issue #11221: fix two memory leaks in BakedSkinningModel.cpp & v8/ScriptEngine.cpp (#11222)
* issue #11221: fix two memory leaks in BakedSkinningModel.cpp & v8/ScriptEngine.cpp

* issue #11221: fix a memory leak in ScriptEngine::runByteCodeFile.

* Update ScriptEngine.cpp
2022-05-26 13:59:05 +08:00
ChiaNing 48194f1d37 Update bindings-generator environment configuration instructions (#11231)
* Update bindings-generator environment configuration instructions

Co-authored-by: ChiaNing <sun.clooud.mo@gmail.com>
2022-05-26 13:41:25 +08:00
Cocos Robot b3bf4b6148 [ci skip][AUTO]: Automated code generating update: 08ba39c308b2d629740fa05074dc2b917fe14983 (#11179) (#11216)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-05-25 14:09:53 +08:00
James Chen 8f8924c3f4 fixed #10929: Hash computation in native engine causes loss of precision, use 32 bits hash for all platforms (#11179)
* fixed #10929: Hash computation in native engine causes loss of precision. Force use 32 bits hash for all platforms.

* More uint64_t -> ccstd:hash_t

* Some uint64_t -> uint32_t in SkeletalAnimationUtils.h/.cpp

* operator() return ccstd::hash_t now and add some comments.

* size_t -> ccstd::hash_t in StringPool.h, Font.h/.cpp
2022-05-25 13:54:57 +08:00
江战 952bf07ff5 3.6 sebind impl (#11125) 2022-05-25 11:17:36 +08:00
Cocos Robot 40b009b41a [ci skip][AUTO]: Automated code generating update: ab0055cbd8e80569ea217a785e5ba6036da325d7 (#11197) (#11208)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-05-24 18:53:53 +08:00
James Chen 024737aebc fixed #11195: Rename cc::optional, cc::any, cc::variant to ccstd::optional, ccstd::any, ccstd::variant (#11197)
* Move Any.h/Optional.h/Variant.h to base/std and rename them to lowercase.

* fixed #11195: Rename cc::optional, cc::any, cc::variant to ccstd::optional, ccstd::any, ccstd::variant

* Format code.
2022-05-24 18:47:16 +08:00
Cocos Robot 0244869ce4 [ci skip][AUTO]: Automated code generating update: c5279179db25d64b05c7c2bcb6ea1cb818663a28 (#11200) (#11202)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-05-24 18:04:32 +08:00
troublemaker52025 7558741239 fix light flashes at instanced model for v3.5.1 (#11203) 2022-05-24 17:35:53 +08:00
minggo 2de0ae1f72 Merge pull request #11192 from minggo/v3.6.0_merge_v3.5.1
V3.6.0 merge v3.5.1
2022-05-24 16:42:57 +08:00
Cocos Robot a86ddc03ca [ci skip][AUTO]: Automated code generating update: ef790b6029dbdc46599f006e13c136596dce0dba (#11104) (#11189)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-05-24 13:38:55 +08:00
minggo 7814949998 Merge branch 'v3.5.1' into v3.6.0_merge_v3.5.1 2022-05-24 11:53:57 +08:00
James Chen b0fe68ec43 fixed #11183: [v3.6][bug] Pass.getPassHash is invoked frequently (#11184) 2022-05-24 10:18:35 +08:00
Zhang mingzhen c09995b45a supplement JSB documents (#11153)
Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2022-05-23 09:37:07 +08:00
mmyduckx 204543cfd8 fix restart buffer & shader leak and add prompts (#11164)
* fix restart buffer & shader lead and add prompts
2022-05-20 16:10:40 +08:00
minggo 9b0233cca4 Startup shutdown (#11150)
* Adjust exit process
- detelte objects in reserve order
- delete some global objects, may refactor in future

* remove unneeded codes
2022-05-20 10:31:39 +08:00
Yiwen 9780ad2164 Fix the logic error that the RenderWindow's fbo uses a user-defined depth attachment but (#11147)
not the swapchain's depth attachment regardless of the swapchain's state.
2022-05-19 15:22:32 +08:00
李吉林 25cc44e315 refactor DebugRenderer exiting (#11145) 2022-05-19 11:41:50 +08:00
James Chen 70343e9c7c fixed 3d-tasks/12347: [bug] Yellow robots which enables InstanceDraw could not be shown in JointTextureLayout test case (#11136) 2022-05-19 09:24:58 +08:00
mmyduckx 9c0e425adb fix ios accelerometer not work (#11142)
* fix-ios-accelerometer not work

* remove all CC_TARGET_OS_TVOS related codes
2022-05-19 09:24:30 +08:00
minggo ac92997d96 do not handle Root in engine (#11140) 2022-05-18 18:20:55 +08:00
James Chen 48f7c674cc boost_hash_range return size_t which is 64bit on 64bit devices, so need to cast it to uint64_t. (#11137) 2022-05-18 17:22:46 +08:00
bofeng-song b3c62b9597 Suspend game thread after it has been running in the background for a… (#11112)
* Suspend game thread after it has been running in the background for a specified amount of time
* Use the macro switch to decide whether to enable thread pause  & remove unneeded code
2022-05-18 15:43:55 +08:00
Cocos Robot e300d17167 [ci skip][AUTO]: Automated code generating update: 14e696cfcc8e46b0aecb3c95683c3fe0773334b0 (#11128) (#11130)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-05-18 15:16:02 +08:00
minggo fac5bf833a Subsystem startup shutdown (#11128)
* refactor startup/shutdown process of BuiltinResMgr
* refactor startup/shutdown process of ProgramLib
2022-05-18 11:09:55 +08:00
Cocos Robot cbc500d020 [ci skip][AUTO]: Automated code generating update: cd5f758d5fbd96f9598e388e28886c2be9b69a96 (#11123) (#11127)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-05-18 09:57:12 +08:00
minggo 75dcf062c6 refactor startup/shutdown process of gfx device (#11123)
* refactor startup/shutdown process of gfx device
2022-05-17 17:29:09 +08:00
mmyduckx 22cc2e4878 add SharedPreferences related stroage implement (#11097) 2022-05-17 11:35:48 +08:00
minggo b33e91fb15 refactor startup/shutdown process of DebugRenderer (#11114)
* refactor startup/shutdown process of DebugRenderer
2022-05-16 19:32:01 +08:00
minggo c3a6205ce2 Refactor startup/shutdown process of ScriptEngine (#11108)
* refactor startup/shutdown process of ScriptEngine
2022-05-16 17:39:44 +08:00
minggo b6debf5d3f refactor Profiler startup/shutdown (#11105) 2022-05-16 11:36:33 +08:00