Commit Graph

6453 Commits

Author SHA1 Message Date
hyde zhou e2d0ec3658 V3.8.2 pipeline (#16244) 2023-11-07 11:36:32 +08:00
江战 7e459d2ab9 ADPF bindings (#16445) 2023-11-02 11:26:36 +08:00
James Chen f73a4e4135 Fix compilation error of CC_ASSERT_EQ in Mesh.cpp (#16444) 2023-10-27 15:06:39 +08:00
Zeqiang Li e9b7fd3ab7 update wgpu external && missing web logic (#16433) 2023-10-20 17:19:30 +08:00
troublemaker52025 b0c25b0852 add bias for planar shadow (#16316) 2023-10-16 17:02:11 +08:00
Ling Zhan 38bcd20e9f V3.8.2 bullet embind (#16350)
* bullet wasm embind

# Conflicts:
#	tests/init.ts

* replace imports with abstract methods of class

* embind performance opt

* wasm split loading

* tweak

* update native/external-config.json 3.8.2-14
2023-10-13 16:16:23 +08:00
qiuguohua f8b5d131f4 Turning off textinput when using SDL (#16421) 2023-10-13 10:20:04 +08:00
Zeqiang Li a73168142c storage image usage fix (#16404) 2023-10-12 14:02:32 +08:00
Leslie Leigh (李的序) 52726aa1a2 physx disable unused PVD for now (#16383)
* Disable unused PVD for now

* Update physx dep
2023-10-11 13:31:57 +08:00
James Chen 40ec21934b fixed #16355: Compilation fails in CI env if using Android NDK r26 (#16401)
* fixed #16355: Compilation fails in CI env if using Android NDK r26

* Update predefine.cmake
2023-10-11 10:00:13 +08:00
Ling Zhan db5779c77c V3.8.2 box2d wasm node scale performance opt (#16386)
* node scale cause box2d shape recreate, low perf
* box2d and polygon2d shape
* WASM_OBJECT_PTR_2_TS_OBJECT WASM_OBJECT_PTR_2_WASM_OBJECT
* tweak
* update external-config.json to v3.8.2-12
2023-10-10 16:57:01 +08:00
Zeqiang Li 6eb501d6ab geometry renderer macro in physx (#16396) 2023-10-10 16:46:54 +08:00
oahc09 fcb95b5a37 feat:[xr] support dispatch xr event to ts (#16382)
* feat:[xr] support dispatch xr event to ts

* improve:add se::AutoHandleScope scope;
2023-10-10 13:53:38 +08:00
James Chen 093bc8724e Update v8 to 11.6.189.22 (#16364)
* Update se code to adapt v8 11.4

* Fix setter

* VisitHandlesWithClassIds was added again.

* Remove log in evalString

* Revert in ScriptEngine.cpp

* Update external-config.json

* Remove unused ndkPath in libcocos2dx/build.gradle

* Update external config to v3.8.2-11
2023-10-10 11:06:02 +08:00
Zach Lee ac4ff3870a feat:add imutable texture flag for Webgl2 (#16332)
* feat:add imutable texture flag for Webgl2

* fix lint
2023-10-09 17:44:02 +08:00
Leslie Leigh (李的序) 767f44a313 Bug: deserialized scene should have node transforms invalidated at initial (#16353)
* Bug: deserialized scene should have node transforms invalidated

* Remove transformFlags modification in _onBatchCreated
2023-10-09 16:50:25 +08:00
hyde zhou 7ccbd91d53 fix web (#165)
* fix web

* fix fg dispatcher
2023-10-09 14:45:06 +08:00
minggo 36a2933f6c Merge branch 'v3.8.1' into v3.8.2-merge-v3.8.1
Conflicts:
	.github/workflows/native-compile-platforms.yml
	cocos/physics/framework/deprecated.ts
	cocos/rendering/custom/executor.ts
	native/cocos/renderer/pipeline/custom/FrameGraphDispatcher.cpp
2023-10-09 14:15:51 +08:00
江战 d79d09557b Memleak fix (#16354) 2023-10-08 14:16:34 +08:00
Cocos Robot 602fa60627 [ci skip][AUTO]: Automated code generating update: 5e7e390c52d505377d699389e21304d86d7ee52d (#16339) (#16360)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2023-10-08 13:33:49 +08:00
Ling Zhan d8f1be6f05 [fix] box2d wasm joint stiffness and damping ratio now behaves the same as box2d.ts; fix rigidbody set type; fix box2d-wasm reallocate mem (#16278)
* [fix] box2d wasm joint stiffness and damping ratio now behaviors the same as box2d.ts; 
fix rigidbody set type; 
fix box2d-wasm reallocate mem
[fix] [physics2d] 1. debugdraw circle shape not consider rotation transform; 2. box2dwasm circle shape offset error
update native/external-config.json --> v3.8.2-9
2023-09-26 16:29:57 +08:00
oahc09 2928e74036 feat:support xr controller a/b/x/y/trigger/thumbstick touch event (#16293)
* feat:support xr controller a/b/x/y/trigger/thumbstick touch event

* fix:eslint problem

* refactor:add new enum/struct for touch event info
2023-09-26 14:32:23 +08:00
Ling Zhan 9a42164966 V3.8.2 physics debug draw (#16325)
* init debug draw

* tweak _debugDrawFlags

* px debug draw performance opt

* tweaks

* add debug draw for physx c++

* debug draw use MainWindow's cameras

* builtin physics draw; WireFrame-->wireframe

* cannon.js supports debug draw

* update engine-native-external --> v3.8.2-5

* tweak

* set engine-native-external --> v3.8.2-5, so that we can pass npm test

* fix: bullet debug draw by default should draw nothing

* comment tweaks

* tweaek

* update native/external-config.json --> 3.8.2-8
2023-09-25 18:05:33 +08:00
James Chen e9b2a15f18 Fix XR header include and don't build XRInterface.cpp if XR is disabled. (#16324) 2023-09-25 14:09:28 +08:00
Zeqiang Li 2c178e08f6 subpass output sort logic (#16314)
* subpass local attachment sort logic

* fix narrow cast
2023-09-22 18:34:46 +08:00
James Chen 8c3e160846 Fix a compilation issue and a crash issue if using Xcode 15 (#16306)
* Fix crash in __cxx_global_var_init if using Xcode 15 and targeting <= iOS 14

* fixed #16190: Compilation errors if using Clang 15 with c++17 since std::unary_function has been removed (#16191)

* fixed #16190: Compilation errors if using Clang 15 with c++17 since std::unary_function has been removed

* Windows doesn't need to define BOOST_NO_CXX98_FUNCTION_BASE since it has already been defined.
2023-09-21 18:59:07 +08:00
Zeqiang Li 2039c33462 correct renderpass reorder logic (#16294) 2023-09-21 17:31:07 +08:00
minggo aa601815c4 Merge branch 'v3.8.1' into v3.8.2-merge-v3.8.1
Conflicts:
	cocos/render-scene/scene/submodel.ts
2023-09-20 15:15:22 +08:00
qiuguohua 608660ae60 Fixed multi-threading causing view read failure (#16253) 2023-09-15 10:19:08 +08:00
Ling Zhan f4aa7e93f7 update native/external-config v3.8.2-7 (#16256) 2023-09-14 16:45:26 +08:00
Zeqiang Li cc2a1a8ac8 fix recursive call (#16245) 2023-09-12 10:07:39 +08:00
Zeqiang Li 2788ed62e6 update webgpu external config (#16243) 2023-09-11 18:46:02 +08:00
Zeqiang Li 8a6c212c82 update web pipeline for webgpu (#16207) 2023-09-11 17:31:43 +08:00
qiuguohua 290746adb0 Fixed the problem of incorrect display position of the emulator. (#16238) 2023-09-11 15:07:02 +08:00
James Chen d7f90a358b Fix all warnings for gfx-webgpu and add condition control for webgpu ci yml (#16232)
* Fix all warnings for gfx-webgpu

* Update webgpu yml, add condition control
2023-09-11 09:37:59 +08:00
James Chen 322875ef39 Enable gfx-webgpu ci by default and fix some warnings in gfx-webgpu code (#16231)
* Fix some warnings of gfx-webgpu.

* Move gfx-webgpu compilation to another yml

* Update CMakeLists.txt

* Update webgpu yml

* Fix a mistake in native-compile-webgpu.yml

* Remove unused `#pragma once` for WGPUEMSImpl.cpp
2023-09-08 18:04:38 +08:00
Zeqiang Li 91ce03d6a3 webgpu update (#16184) 2023-09-08 17:02:15 +08:00
troublemaker52025 3c0aaf5138 fix debugView UBO data for native custom pipeline (#16218) 2023-09-08 14:53:38 +08:00
minggo 554598643a Merge branch 'v3.8.1' into v3.8.2-merge-v3.8.1 2023-09-08 14:34:24 +08:00
Yiwen b46cba6278 Fix/meshopt (#16200)
* fix meshopt trigger

* add missing part

* add fallback for platform that doean't support half vertex attr

* fix tidy

* revert wrong code

* correct missing field

* optimize

* tune, fix bug
2023-09-08 10:52:46 +08:00
qiuguohua 3822786b7c Fix SDL-related issues (#16212)
* 1.Fixed editbox input send message twice.
2.Fixed when the window is hidden to send message twice
3.Fixed unresponsive right mouse button

* Remove  redundant files.

* Fixed ios compile failures.

* fixed ci errors for ios
2023-09-08 10:28:16 +08:00
Ling Zhan 50c2d70d2a update native/external-config: [fix] cct scaling causes trigger event missing (#16165) 2023-09-06 15:17:40 +08:00
James Chen 4b039cd6e0 fixed #16190: Compilation errors if using Clang 15 with c++17 since std::unary_function has been removed (#16191)
* fixed #16190: Compilation errors if using Clang 15 with c++17 since std::unary_function has been removed

* Windows doesn't need to define BOOST_NO_CXX98_FUNCTION_BASE since it has already been defined.
2023-09-06 14:59:03 +08:00
Zach Lee 48a5791b9d fix format validation. (#16177) 2023-09-04 15:08:43 +08:00
James Chen d2c3429f95 Refactor Openharmony platform code to support switching between napi (ark js runtime) and v8 (#16093)
* OH could use v8 now.

* napi addon works.

* Use Napi addon to refactor code.

* Fix compilation errors.

* tweak

* Refactor oh platform, remove some hacking for oh.

* Fix log in runScript.

* Fix the issues in napi mode.

* Revert.

* Remove an unused comment.

* Refactor log output in NapiHelper.cpp and OpenHarmonyPlatform.cpp

* Update oh template.

* Remove unused code.

* Remove unused debug log in jsb-gfx.js

* Update include

* Revert Screen::isDisplayStats.

* update OH template for v8 backend

* update

* Update CMakeLists.txt for OH

* Fix a compilation error in NapiHelper.cpp while switching to NAPI mode

* Keep the symbol of entry function.

* Add -Wl,--gc-sections and add -Wl,-s for release mode.

* Update external to 3.8.2-1

* Don't use `console.assert` directly.

* Remove oh specific methods ( getInnerWidth/Height, getWindowHandle ) in Device class.

---------

Co-authored-by: PP_Pro <chinese1236@qq.com>
2023-09-01 16:27:08 +08:00
Canvas ba70fe19db fix bind cont EventData * bind, modify the address as a reference. (#16105)
* fix bind cont EventData * bind, modify the address as a reference.

* change external-config checkout to v3.8.1-19.

* optimize const bind data, use const_cast<Type> & fix spine define api.

* fix wasm api getId & getOffset & <size_t> bones.

* fix wasm & asm const string.

* fix const std::string path to const std::string &path.

* change external-config checkout v3.8.1-19 to v3.8.1-20.
2023-09-01 15:36:06 +08:00
hyde zhou e2e4ceb1f8 change shader strip (#16167) 2023-09-01 15:22:45 +08:00
Zeqiang Li 442f7402b7 macos 10.x -> 11+ api change (#16153) 2023-08-31 15:03:42 +08:00
minggo 1e3155bbe9 Merge pull request #16148 from cocos/v3.8.1
V3.8.1
2023-08-31 11:41:03 +08:00
qiuguohua 49ce3235c8 Update to use sdl static library (#16101) 2023-08-30 16:11:23 +08:00