Commit Graph

3909 Commits

Author SHA1 Message Date
CocosRobot 0e4538fc0e [AUTO][ci skip]: updating cocos2dx_files.json (#2510)
* [ci skip][AUTO]: updating jsbinding automatically

* [AUTO][ci skip]: updating cocos2dx_files.json
2020-05-29 17:07:39 +08:00
CocosRobot dc7795ce09 [ci skip][AUTO]: updating jsbinding automatically (#2509) 2020-05-29 17:07:25 +08:00
coulsonwang d7b5e1f3b6 fix dynamic states (#2488) 2020-05-29 15:57:31 +08:00
Yun Hsiao Wu b46d4cc89f more vulkan adaptations (#2479)
* vk: explicit location

* SDL main entry

* vk: unsuccessful attempt to workaround clearFlags

* vk: restore clear loadop

* vk: refine device feature framework

* gfx: fence

* overloads instead of default params

* fix ci compile issue

* fix ci compile issue

Co-authored-by: coulsonwang <coulsonwang@126.com>
2020-05-29 15:44:21 +08:00
江战 cdadce9348 update travis configuration (#2503) 2020-05-29 14:53:07 +08:00
CocosRobot 538dfabd34 [AUTO][ci skip]: updating cocos2dx_files.json (#2494) 2020-05-29 10:47:03 +08:00
CocosRobot aec6c9789d [ci skip][AUTO]: updating jsbinding automatically (#2502) 2020-05-29 10:45:34 +08:00
江战 b96a725238 Update tools/simulator with CMake / 3dgfx (#2496)
* update mac simulator

* remove template files

* rm build/
2020-05-29 10:44:22 +08:00
minggo 7156064446 add hash function for GFXInputAssembler and GFXFrameBuffer (#2501)
* add hash function for GFXInputAssembler and GFXFrameBuffer

* fix typo
2020-05-29 10:41:14 +08:00
江战 082f432d2a remove unused code / 3dgfx (#2487)
* remove \*.mk

* support Makefile

* update default template

* fix path

* fix field type

* link resource instead of copy

* update external

* fix travis

* fix ssize_t macro

* fix macro 2
2020-05-28 11:24:14 +08:00
CocosRobot 89e0cab7bb [ci skip][AUTO]: updating jsbinding automatically (#2492) 2020-05-27 18:35:37 +08:00
coulsonwang 4acd7ca62a fix metal crash (#2491)
* fix metal crash

* fix review
2020-05-27 17:46:20 +08:00
CocosRobot 94d0bc4bdd [AUTO][ci skip]: updating cocos2dx_files.json (#2485)
* [ci skip][AUTO]: updating jsbinding automatically

* [AUTO][ci skip]: updating cocos2dx_files.json
2020-05-26 09:51:49 +08:00
CocosRobot fabdac2eaa [ci skip][AUTO]: updating jsbinding automatically (#2484) 2020-05-25 18:40:55 +08:00
coulsonwang 6093b65ca2 fix metal buffer usage (#2477)
* fix metal buffer usage

* fix cmake

* synchronize the managed buffer
2020-05-25 18:28:08 +08:00
CocosRobot bd0b835095 [ci skip][AUTO]: updating jsbinding automatically (#2480) 2020-05-22 09:53:34 +08:00
江战 0add0fb5d6 CI enable release builds for win32 / 3dgfx (#2475)
* enable release builds

* uppercase path for glsl/Public/ShaderLang.h

* add non quiet

* remove android debug build

* keep android debug
2020-05-22 09:45:46 +08:00
Yun Hsiao Wu b15292ebd7 gfx-vk: all c++ test cases cleared (#2461)
* vk: switch to VMA

* vk: remove viewport hacks

* vk: JSB bindings

* minor

* API change metal sync

* device.acquire

* fix ci
2020-05-20 17:51:44 +08:00
江战 7d5dcf4281 catch exception when ScriptEngine::evalString / 3dgfx (#2468)
* - catch exception when evalString
- fix CMake resource path / win32

* remove unused variables
2020-05-20 14:08:45 +08:00
CocosRobot 8091eee5c8 [ci skip][AUTO]: updating jsbinding automatically (#2469) 2020-05-20 14:06:57 +08:00
coulsonwang 6e588895a7 set clear action for metal attachments (#2451)
* set clear action for metal attachments

* update review
2020-05-19 14:23:31 +08:00
江战 f0d2b6d268 update (#2459) 2020-05-19 14:21:14 +08:00
江战 1748a533a7 init pthread key p_key (#2460) 2020-05-19 14:02:12 +08:00
江战 1ab5d5ab80 3dgfx use v8 exposed GC function (#2463)
* use gc

* expose c

* reset _gcFunc
2020-05-19 14:00:18 +08:00
CocosRobot 21d53cdf0c [AUTO][ci skip]: updating cocos2dx_files.json (#2456) 2020-05-15 14:31:12 +08:00
江战 725ee401e2 3dgfx update v8 to version 8.0 (#2446)
* update v8 api

* use cmake on android

* update ios target version for simulator

* keep ANativeActivity_onCreate

* update v8 on win32

* update resource dir for win32

* update external/config.json

* Update tools/travis-scripts/run-script.sh

* Update tools/travis-scripts/run-script.sh

* should not set ANDROID_PLATFORM manually
2020-05-15 14:20:47 +08:00
CocosRobot 3e7fc385ba [AUTO][ci skip]: updating cocos2dx_files.json (#2454)
* [ci skip][AUTO]: updating jsbinding automatically

* [AUTO][ci skip]: updating cocos2dx_files.json
2020-05-14 15:21:21 +08:00
CocosRobot 39736efe79 [ci skip][AUTO]: updating jsbinding automatically (#2453) 2020-05-14 15:21:02 +08:00
coulsonwang 22c95720cf revert -DANDROID_PLATFORM (#2447)
* revert -DANDROID_PLATFORM

* update external version
2020-05-14 15:10:40 +08:00
coulsonwang dd97ee7e4b use static build for CoreDef (#2449) 2020-05-14 15:10:21 +08:00
coulsonwang 6709d2894c add error log for texture and texture view (#2432)
* add error log for texture and texture view

* add error log for VkTextureView
2020-05-14 15:08:56 +08:00
江战 c2439db94e add v8 bytecode support (#2434)
* add bytecode

* update order & add comments

* Update cocos/scripting/js-bindings/jswrapper/v8/ScriptEngine.cpp
2020-05-14 15:08:26 +08:00
coulsonwang 39311c0cfc fix metal compile issue (#2429) 2020-05-12 11:28:55 +08:00
CocosRobot 7e2d182772 [AUTO][ci skip]: updating cocos2dx_files.json (#2437)
* [ci skip][AUTO]: updating jsbinding automatically

* [AUTO][ci skip]: updating cocos2dx_files.json
2020-05-12 11:19:52 +08:00
coulsonwang e97662e27c uncomment device motion (#2431) 2020-05-12 11:11:33 +08:00
Yun Hsiao Wu 9f9f8056bf effect: shader stages (#2427)
* vk: descriptor sets

* vk: explicit device.begin

resize now works

* vk: texture & sampler

* effect: shader stages

* vk: fence pool

* vk: cmd buffer reuse
2020-05-12 11:11:05 +08:00
coulsonwang 2a65ceef86 fix ci compile issue (#2433)
* fix CI compil issue

* fix CI compile issue

* fix ANDROID_PLATFORM

* fix macors
2020-05-11 15:15:02 +08:00
coulsonwang 08f42dd016 set bindings for msl (#2430) 2020-05-11 15:12:36 +08:00
coulsonwang b0f1f3dffd remove shaderc, use glslang and spriv-cross instead (#2418)
* remove shaderc, use glslang and spriv-cross instead

* add log info
2020-05-07 11:31:40 +08:00
CocosRobot ec60f210da [AUTO][ci skip]: updating cocos2dx_files.json (#2423)
* [ci skip][AUTO]: updating jsbinding automatically

* [AUTO][ci skip]: updating cocos2dx_files.json
2020-05-06 11:52:25 +08:00
CocosRobot 3d96fc880b [ci skip][AUTO]: updating jsbinding automatically (#2422) 2020-05-06 11:47:21 +08:00
Yun Hsiao Wu e5deaed8d9 GFX Vulkan backend (#2414)
* vk: init directories

* vk: context creation

* vk: swapchain draft

* vk: move swapchain to window

* vk: acquire - submit - present

* vk: begin/end render pass

* vk: clear op works!

* vk: validation errors cleared

* vk: first triangle!

...no uniform buffers though

* vk: update msvc project
2020-05-06 11:42:15 +08:00
江战 880422ad28 [bugfix] crash during global object destructuring / 3d-gfx (#2411)
* fix crash

* fix order
2020-04-28 12:03:51 +08:00
CocosRobot 7c4d3de63c [AUTO][ci skip]: updating cocos2dx_files.json (#2412) 2020-04-27 18:34:17 +08:00
minggo 96cbe1e971 Android adapt (#2410)
* simplify get obb file path

* not get package name throung jni

* not get sdk version from android

* remove unneeded codes

* remove convertEncoding

* remove unneeded codes'

* remove unneeded codes

* simpify codes

* simplify codes

* remove unneeded codes
2020-04-27 17:14:06 +08:00
coulsonwang d69858f020 update metal stencil descriptor (#2408) 2020-04-27 17:13:13 +08:00
coulsonwang 90dc449626 Fix metal texture (#2386)
* fix update metal texture

* fix resize metal texture

* update review

* use toMTLTextureType

* add gfx status
2020-04-27 11:37:15 +08:00
coulsonwang 9f6ec3c58d add copyBufferToTexture and updateBuffer (#2384)
* add copyBufferToTexture and updateBuffer

* use usage and flag to update buffer

* revert TRANSFER_SRC and TRANSFER_DST  modify

* fix indirects

# Conflicts:
#	cocos/renderer/gfx-metal/MTLBuffer.mm

* reset buffer when malloc failed

* revert commit#a6544ec

* update review
2020-04-27 09:53:39 +08:00
coulsonwang b78d9bf8ac set features according to Metal feature set table (#2383)
* set features according to Metal feature set table

* remove duplicate code

* add metal feature set for iOS

* update reivew

* use String instead of const char*
2020-04-27 09:51:55 +08:00
Yun Hsiao Wu 16faa76fcf fix depth texture view format (#2404)
* windows build gles2 too by default

* fix depth texture view format

* fix ci
2020-04-26 17:25:42 +08:00