Commit Graph

537 Commits

Author SHA1 Message Date
Yun Hsiao Wu ea3be6000f vk: async submission (#2647) 2020-07-17 13:55:42 +08:00
Yun Hsiao Wu db2023c34f remove device.reverseCW (#2638) 2020-07-09 15:49:44 +08:00
Yun Hsiao Wu 859bdd3c03 flip Y if drawing to render targets (#2637) 2020-07-09 10:11:17 +08:00
coulsonwang fa98819205 fix gfx.ini (#2627)
* fix gfx.ini

* clear status

* add debug info
2020-07-07 08:59:33 +08:00
Yun Hsiao Wu 178375c31d remove clearflags in begin render pass cmd (#2628)
* remove clearflags in begin render pass cmd

* fix clearFlags on metal

Co-authored-by: coulsonwang <coulsonwang@126.com>
2020-07-07 08:58:54 +08:00
Yun Hsiao Wu d3d13424f6 vk: refactor PipelineLayout/BindingLayout/CommandPool/CommandBuffer (#2610)
* vk: refactor PipelineLayout/BindingLayout

* vk: update descriptors without template fallback

* vk: refactor CommandAllocator/CommandBuffer
2020-06-24 15:16:41 +08:00
minggo bb6ea9bec3 remove GFX prefix (#2611) 2020-06-24 10:51:14 +08:00
minggo 7efee066fd Remove duplicate (#2597) 2020-06-19 11:07:21 +08:00
minggo e07bc0821c use cc::gfx namespace (#2576) 2020-06-16 18:10:41 +08:00
江战 e645d102e8 fix compile error / 3dgfx (#2574)
* save

* compile arm64 & x86
2020-06-16 15:03:40 +08:00
minggo d381a16142 change namespace from cocos2d to cc (#2572) 2020-06-16 14:34:46 +08:00
Yun Hsiao Wu 18ca3f3666 vk: handle absent attributes (#2561) 2020-06-15 09:57:14 +08:00
江战 4c2b647bba remove CCPlatformConfig.h / 3d-gfx (#2555) 2020-06-12 11:17:37 +08:00
Yun Hsiao Wu d4d932a34f remove gfx window (#2550)
* remove gfx window

* use explicit locations
2020-06-12 10:56:44 +08:00
Leslie Leigh (李的序) 6abf62e758 Optimize download deps (#2547) 2020-06-11 13:46:45 +08:00
minggo 7997a44f18 Remove webview (#2543) 2020-06-10 16:04:07 +08:00
minggo b4234b5a67 Remove texture view (#2530) 2020-06-09 15:11:18 +08:00
江战 cad70edf1b travis add nodejs / 3dgfx (#2524)
* update install script

* restore changes
2020-06-05 14:24:22 +08:00
Yun Hsiao Wu d368b11250 vk: better vendor info (#2529) 2020-06-05 14:21:42 +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
江战 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
江战 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
江战 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
minggo b02ef0bac1 add minClipZ and projectionSignY for device (#2379) 2020-04-20 16:58:57 +08:00
coulsonwang 51a87d3254 revert attribute caching for jsb optimization (#2380)
* revert attribute caching for jsb optimization

* update binding generator
2020-04-15 18:17:23 +08:00
Arnold 9eb02818a5 add metal support (#2375) 2020-04-15 09:42:58 +08:00
Arnold 79fc8353d1 3dgfx add CI & cmake (#2350)
* use-cmake

* revert: enable gles3 for android

* compile with cmake only
2020-04-14 13:58:45 +08:00
Yun Hsiao Wu 318c28c1f0 numInstances binding (#2359) 2020-04-09 18:32:25 +08:00
minggo 9e7717c1c3 improve metal implementation (#2354) 2020-04-07 15:52:01 +08:00
coulsonwang 31cc3c73ca prefix "__" to property (#2347)
* prefix __ to property

* update submodule
2020-04-03 09:53:21 +08:00
minggo dd1054d45d use GLES3 on iOS (#2316)
* use GLES3 on iOS

* add GLSL300 version define

Co-authored-by: coulsonwang <coulsonwang@126.com>
2020-03-24 14:35:04 +08:00
coulsonwang 32fd98017e Fix vector conversion (#2264)
* fix vector_to_seval

* fix

* remove some manual conversion, make it auto generate

* update bindingGenerator
2020-03-19 14:19:01 +08:00
Arnold ce1cd53386 [gfx] win32 adaptation (#2270)
* update for windows

* update ref location

* update external

* revert debug info

* fix include order

* fix template

* fix buffer

* remove CCStdC-win32*
2020-03-18 11:35:40 +08:00
minggo 925a0a2d32 add GFXObject (#2276) 2020-03-16 14:26:55 +08:00
minggo 57b11c32c3 remove auto bind property InputAssembler::vertexBuffers (#2272) 2020-03-13 10:30:29 +08:00
Arnold eebc0bf051 [bugfix] use after free & fix travis (#2268)
* fix use after free

* fix travis

* fix log
2020-03-13 09:35:16 +08:00
minggo 60bcebefd6 Manual bind gfx input assember functions (#2267)
* add missing function

* manual binding some functions
2020-03-11 18:24:56 +08:00
minggo 80bc6f3928 update binding generator to fix typo (#2253) 2020-03-09 12:08:47 +08:00
minggo b220ff2c5a Window handler type (#2251)
* change window handler type to uintptr_t

* convert uintptr_t to JS
2020-03-09 11:51:46 +08:00
minggo fa511447e3 Android issue (#2247)
* change window handler to uintptr_t

* fix compiling error
2020-03-09 11:21:07 +08:00
coulsonwang f1b2a02599 Rename getter (#2243)
* rename getter attribute

* fix
2020-03-06 15:02:54 +08:00
Arnold 557dfe656e fix captialize (#2242) 2020-03-06 11:56:16 +08:00
Arnold f9e95af79b update submodule (#2238) 2020-03-06 10:23:52 +08:00
pandamicro 398ae74079 Fix gfx binding issues (#2227)
* Add GLES2Window binding

* Add GFXBuffer update binding

* Fix array operation issue in manual binding

* Add GFXCommandAllocator binding

* Remove skip of getter function bindings

* Add js_gfx_GFXPipelineLayout_get_layouts binding

* Manual bind GFXBlendState targets getter

* Make GFXCommandBuffer::beginRenderPass bindable

* remove count usage

* fix

* Fix CommandBuffer::execute issues

* Add getter setter bindings

* Open setPreferredFramesPerSecond binding with empty impl

Co-authored-by: coulsonwang <coulsonwang@126.com>
2020-03-06 09:52:47 +08:00
minggo c6e9d76540 update submodule (#2232) 2020-03-05 18:19:37 +08:00
minggo f88f668370 update submodule (#2222) 2020-03-03 16:47:49 +08:00
coulsonwang 18867a55ff fix copyBuffersToTexture (#2211)
* fix copyBuffersToTexture

* add jsb binding

* Fix GLES2Device copyBuffersToTexture bindings

* Fix GFXArrayBufferView (to GFXBuffers) naming issue

* Add Device::copyTexImagesToTexture binding

* rename to GFXArrayBuffer

Co-authored-by: pandamicro <lphuabin@gmail.com>
2020-03-02 14:51:11 +08:00