Commit Graph

37 Commits

Author SHA1 Message Date
santy-wang 0a81bf445e Merge branch 'develop' of github.com:cocos-creator/engine into v3.7.2 2023-03-13 16:51:47 +08:00
Zeqiang Li 71b764ad0d frame fence (#14310) 2023-02-28 17:43:38 +08:00
troublemaker52025 a7b090390e [Feature] add ranged directional light (#14306) 2023-02-23 17:58:47 +08:00
troublemaker52025 682f0a25cd [Feature] add point light (#14220) 2023-02-22 10:12:21 +08:00
jk20012001 42e4a14f82 debug view support with native engine (#13996) 2023-01-09 10:18:21 +08:00
pandamicro afd22296b4 MIT license update and to new year 2023 (#13927)
* Cpp MIT license update and to date
* TS MIT license update and to date
2022-12-28 11:25:12 +08:00
江战 ba7e90475c pipeline js bindings (#13786) 2022-12-15 09:51:04 +08:00
pandamicro 313a1032b7 Separate present time from renderer time in profiler (#13684) 2022-12-06 18:24:02 +08:00
fqamic 71314f0e81 merge xr platform function codes (#13360)
* feat: add xr settings for xrEnv and xrType

* improve: remove redundant code for xr interaction

* improve: remove redundant code for frameMove

* fix: xr jsb bind adapt to swig

* feat: adapt to xr preview mode, add handle simulation event
2022-11-14 17:12:25 +08:00
江战 376f0ca284 use std array to store event listeners (#13283)
* use std array to store event listeners

* fix offAll

* make code debuggable

* make code debuggable

* rename to DECLARE_TARGET_EVENT_BEGIN_WITH_PARENTS
2022-11-10 11:00:33 +08:00
江战 280fd976bc Add EventTarget & EventBus (#13100) 2022-10-28 15:44:33 +08:00
minggo 83a2717fac Fix module import (#13140)
* fix core module import style

* import murmurhash2_32_gc from core module

* do not export visibleRect
2022-10-25 16:38:38 +08:00
hyde zhou 316180b777 [develop] enable native custom pipeline (#13133) 2022-10-25 11:10:14 +08:00
hyde zhou e8366a7a7b [develop] custom pipeline startup refactoring (#12886)
* manually merge bloom, fg culling, native pipeline updates

* fix lint

* camera usage added

* use parent name instead of default & add some phase names

* adding render graph execution

* execute render graph added

* refactoring workflow

* uses interface instead of abstract class

* add setup step

* camera usage added

* adding setup stage

* unify camera get set

* adding ppl setup

* fixed bloom effect

* change descriptor merge

* modify uniform collect as descriptor

* revert

* revert phase

* adding render callback

* update setup workflow

* pipeline builder updated

* refactoring native pipeline setup

* revert jsb

* improve cameraList clear

Co-authored-by: zxx43 <zxx43@hotmail.com>
Co-authored-by: qiuguohua <>
2022-09-27 17:57:21 +08:00
林玮 e7e8036dcd fix: editor and cocos-play issues (#12908)
* fix: editor and cocos-play issues

* * Change 'windowId' to optional.
2022-09-27 17:45:21 +08:00
Zach Lee af54ad1ed2 Feat: Remove the framebuffer hub. Manually update framebuffer after attachment or swapchain changes. (#12812) 2022-09-23 10:15:10 +08:00
林玮 785fd91511 Add multi-windows support (#12243)
Co-authored-by: bofeng.song <bofeng.song@chukong-inc.com>
2022-09-15 14:55:44 +08:00
santy-wang 7bbad4a0a4 Merge branch 'develop' of github.com:cocos-creator/engine into v3.6.1-sync 2022-09-14 11:47:58 +08:00
oahc09 448c093cf4 improve:remove IXRInteraface's dependent from GFXDevice.h (#12690)
* improve:remove IXRInteraface's dependent from GFXDevice.h

* improve:remove IXRInteraface's redundant code from DeviceValidator.h/cpp
2022-09-06 17:44:46 +08:00
minggo 834cfa66af Merge branch 'v3.6.1' into merge_v3.6.1 2022-08-23 14:13:02 +08:00
QingliWang 6a8f53b186 Add features for XR developement. (#12413)
* Change Android mainloop, add global config and template projects for XR.

* Change gfx/gles device's process flow for XR, working with other PRs, waiting.

* Change gfx/Vulkan device's process flow for XR, working with other PRs, waiting.

* Change render process for XR.

* Develop XR input and events.

* Develop 3D feature of UI widgets and raycast effect for XR.

Co-authored-by: fqamic <fqamic@vip.qq.com>
2022-08-22 16:34:45 +08:00
James Chen c7e60d2bcb Use swig to generate js bindings (#12410) 2022-08-16 10:48:12 +08:00
James Chen f644e78e5c [v3.6.0] Refactor native Batcher2d lifecycle (#12011) 2022-07-15 14:17:33 +08:00
Zhang mingzhen b32830a3e8 V3.6.0 batcher2d to native (#11592) 2022-07-08 17:10:48 +08:00
jk20012001 9965af4abb add debug view mode (#11449)
* add debug view mode

* code style

* fix single mode lighting lack of gamma & tonemapping

* comment style

* move from legacyCC to render-pipeline

* fix gamma & tonemapping not matched in debug view modes

* 原生实现

* move to root

* fix CSMLayers

* pack ubo data

* fix binding

* update binding

* update shaders for debug view

* code style

* fix CI
fix fog in composite mode

* resolve conversation

* resolve conversations

* function order

* resolve conversations
2022-06-14 00:13:27 +08:00
hyde zhou 02407dbc70 V3.6.0 pipeline (#11277)
* 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

* transfer env

* switch env

* switch env

* 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

* before applying another idea

* 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

* run test case

* adding native impl

* remove unused native

* queue added

* pass reorder v1.0

* adding native pipeline

* adding native pipeline

* fix bug

* render graph setup added

* render graph updated

* fix ccstd::string

* getFirstChildLayout, num of children must be 1

* remove examples

* structure refactor

* pass reorder & framegraphDispatcher interface

* remove test code

* remove debug code

* ts added object detection

* ts get name added

* RenderGraph setup moved

* add ts layout graph implement

* fix lint

* fix ci: implicit type conversion

* ci

* adding warmup

* turn off custom

* pipeline updated

* format

* try disable clang 64 to 32 narrow warning

Co-authored-by: zxx43 <zxx43@hotmail.com>
Co-authored-by: GengineJS <476393671@qq.com>
Co-authored-by: Zeqiang Li <zeqiang-li@outlook.com>
2022-06-01 19:06:59 +08:00
minggo 271cc5cf23 Remove some format rule (#10919)
* remove some rules
* format all codes with new format rule
2022-05-04 13:09:24 +08:00
李吉林 3457292707 refactor exit process (#10880)
* refactor exit process

* add override

* fix geometry-renderer missing in deferred pipeline

* invoke destroy directly

* fix ESLint error

* add -misc-static-assert for clang-tidy
2022-04-27 14:59:23 +08:00
minggo 444bfe31c4 Refactor CC_NEW/CC_DELETE (#10810)
* replace CC_NEW/CC_DELETE with ccnew/delete
2022-04-21 16:39:34 +08:00
Cocos Robot 24d84664f8 [ci skip][AUTO]: Automated clang-format update: 3de15842004cba2142ec0fecd82876d8f6a28236 (#10402) (#10424)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-03-21 16:04:49 +08:00
minggo 34bf14269c unify stl (#10402)
* add ccstd::vector
* replace cc::vector with ccstd::vector 
* replace std::vector with ccstd::vector
* do not include <vector>
2022-03-21 15:55:02 +08:00
hyde zhou 19e7c7740c [v3.6.0 pipeline] use native implementation of Root::usesCustomPipeline (#10399)
* layout graph updated

* enable native usesCustomPipeline

* fix comment
2022-03-21 09:47:04 +08:00
hyde zhou 573a1f0d7a [v3.6.0 pipeline] refactor native root.h (#10356)
* decouple native RenderPipeline
2022-03-16 16:56:18 +08:00
James Chen bd54a082a3 Update Spidermonkey (97.0.1) backend for se (jswrapper) (#10170)
* Update spidermonkey backend for se.

* Update cmakelist

* Bug fix for se spidermonkey backend.

* Fix constructor binding for spidermonkey backend.

* Fix wrong syntax of calling native function in simple-texture.jsb.ts & builtin-res-mgr.jsb.ts

* Use jsb.createExternalArrayBuffer for caching since it will not be moved during GGC.

* Cleanup se spidermonkey backend

* Add Object::createExternalArrayBuffer for se v8 backend.

* Remove unused code in jsb_assets_manual.cpp

* Add jsb.createExternalArrayBuffer binding.

* Remove unused WebGLRenderingContext registeration.

* Remove unused code in jsb_global_init.cpp

* Add Root::setDevice.

* Invoke ScriptEngine::mainLoopUpdate in Engine.cpp.

* Update CMakeLists.txt

* Make missing return type as an error.

* Cleanup for sm/ScriptEngine.cpp

* prefine.cmake fix for vs.
2022-02-24 18:20:54 +08:00
mmyduckx e332c02ca0 add forward declaration for 3d/scene-graph/scene (#4246)
* add forward declaration for 3d/scene-graph/scene

* fix genbindings error

* define ctor in cpp
2022-02-09 15:41:00 +08:00
bofeng-song cdb02a37a0 fix TextureCube crash & skybox not work (#4171) 2022-01-14 13:38:12 +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