Commit Graph

779 Commits

Author SHA1 Message Date
hyde zhou
39f46507e2 add enum comments generation (#10922) 2022-05-01 08:11:14 +08:00
Cocos Robot
307eb701a1 [ci skip][AUTO]: Automated clang-format update: 48787d3a22 (#10655) (#10660)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-04-06 10:28:01 +08:00
timlyeee
d0195edb4f set V3.5.0 simulator window position to center (#10655)
* set simulator window position to center.

* add mac support
2022-04-06 09:59:36 +08:00
bofeng-song
d8bdec5162 fix android crash due to eglSurface unavailable (#10621)
* skip setRendererAvailable &  isRendererAvailable (#10482)

* fix android crash due to eglSurface unavailable
2022-04-01 14:52:46 +08:00
timlyeee
61988646c1 add main.mm back while main function is needed for simulator (#10577)
* add main.mm back while main function is needed for simulator

* add license
2022-03-29 20:17:03 +08:00
qiuguohua
9a5f43d80c Modify the application interface name and remove the js keyword (#10556)
* Modify the application interface name and remove the js keyword
2022-03-29 15:08:49 +08:00
Cocos Robot
c62f828551 [ci skip][AUTO]: Automated clang-format update: bdf9ae46e7 (#10543) (#10548)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-03-28 18:12:33 +08:00
qiuguohua
051e034f3f Put main.cpp in the template (#10543)
* Put main.cpp in the template
2022-03-28 18:03:51 +08:00
Zeqiang Li
fac0f58a71 skip getraw (#10429) 2022-03-22 11:16:27 +08:00
timlyeee
7d7f32e24e rename windows process name (#10422)
* remove file description in game.rc, the process name  will keep the same as project name
* add macro definition GAME_NAME for creating window, as no other way to read it.
2022-03-22 10:29:25 +08:00
Yun Hsiao Wu
198034ec2c refactor access type array to access flags (#10103) 2022-02-16 09:56:46 +08:00
Yun Hsiao Wu
2902e37d52 more validations (#4230) 2022-02-08 10:31:29 +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
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
ChiaNing
017f12c863 Add drawCall to UI batch (#3912)
* Add drawCall to UI batch

* fix DynamicOffsets bind bug

* remove uiphase in forward

* debug remove

* fix VK device _caps
2021-09-29 22:32:54 +08:00
江战
bf39eb506b 3.4.0 run genbindings (#3937) 2021-09-29 20:18:32 +08:00
Kun Lin
78ae4e587d Bloom (#3934)
* Bloom

* Fix for code review
2021-09-29 11:44:31 +08:00
江战
b24c278f88 remove password authentication (#3932) 2021-09-28 15:03:19 +08:00
minggo
c0fa3af246 Fxaa (#3928)
* Adaptation fxaa

Co-authored-by: zhengxiangkui <476393671@qq.com>
2021-09-28 11:05:55 +08:00
江战
17a101227a fix path (#3927) 2021-09-27 20:50:01 +08:00
江战
5074a5a826 V3.4.0 usec++14 (#3898)
This reverts commit fff4cc8fc94fb9b1a8424a2b89e9966184c6c4ce.
2021-09-18 13:53:58 +08:00
李吉林
fa210fa955 add octree scene manager (#3891)
* add octree scene manager
Co-authored-by: lijilin <jilin.li@cocos.com>
2021-09-17 11:20:05 +08:00
timlyeee
ad048dff55 Change Windows Simulator from X86 to X64 (#3866)
* change simulator version from x86 to x64
* Fix some bugs for x64 version simulator
2021-09-07 09:58:52 +08:00
mmyduckx
ae02dfc02e remove old icon format in cmake (#3856)
* remove icon in cmake

* add camke config for AppIcon
2021-09-01 15:20:02 +08:00
mmyduckx
f049a58ae2 update icon for all platforms and Appsimulator (#3853) 2021-08-31 19:46:25 +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
27a48968e7 ES2: fix uniform array upload & half float texture (#3823) 2021-08-12 15:29:45 +08:00
timlyeee
8fa3d5b8d6 Fix simulator restart issue (#3814)
* Fix simulator restart issue
* fix conversion error
2021-08-10 13:52:02 +08:00
timlyeee
b9ed0af4fa Fix glslang errors and Edit-box errors (#3802)
* Update cmake list for dynamic library update

* as glslang and tbb become dynamic library, the cmake should copy dll from glslang folder too.
* "gulp gen simulator" command will automatically generate by user's comupter so sometime it will generate x64 version's simulator. no it's update to  generate Win32 version
* Edit-Box was using wrong parameters GWL_WNDPROC, so x64 version will hit an error. details below:https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setwindowlongptra

* small optimize gulp

* change config

* Update cmake list for dynamic library update

* as glslang and tbb become dynamic library, the cmake should copy dll from glslang folder too.
* "gulp gen simulator" command will automatically generate by user's comupter so sometime it will generate x64 version's simulator. no it's update to  generate Win32 version
* Edit-Box was using wrong parameters GWL_WNDPROC, so x64 version will hit an error. details below:https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setwindowlongptra

* add glslang header

* Revert "Update cmake list for dynamic library update"

This reverts commit 5eceb132c2411d7e479f6744e33048fabaafe780.

* fix rebase error
2021-08-05 17:22:46 +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