Commit Graph

199 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
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
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
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
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
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
minggo b02ef0bac1 add minClipZ and projectionSignY for device (#2379) 2020-04-20 16:58:57 +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
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
minggo 60bcebefd6 Manual bind gfx input assember functions (#2267)
* add missing function

* manual binding some functions
2020-03-11 18:24:56 +08:00
coulsonwang f1b2a02599 Rename getter (#2243)
* rename getter attribute

* fix
2020-03-06 15:02:54 +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
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
pandamicro 588167ac63 Bind GFXDevice (#2197) 2020-02-27 11:56:23 +08:00
coulsonwang 693ce24d04 fix 3d-gfx jsb compile issue (#2166)
* add gfx auto and manual files

* fix 3d-gfx jsb compile issue
2020-02-24 14:59:15 +08:00
minggo 40bed87679 Ios window handler (#2159)
* add window.windowHandler

* fix compiling error

* remove unneed macro
2020-02-21 11:02:38 +08:00
coulsonwang b95b431a9b fix gfx attribute renaming (#2153)
* fix gfx attribute renaming

* update review

* fix GLES2 GLES3 attribute naming

* fix some renaming
2020-02-21 09:19:55 +08:00
coulsonwang b5749ac0fa manual bind GFXSubPass (#2141)
* manual bind GFXSubPass

* update review

* update bindings-generator

* fix namespace
2020-02-18 14:10:43 +08:00
coulsonwang 1478da7a42 add gfx structure to gfx.ini (#2133) 2020-02-17 11:09:02 +08:00
minggo 445a2c883e fix compiling error (#2113)
id is a keyword in objective-c
2020-02-11 14:48:20 +08:00
coulsonwang 61b2267478 [GFX] fix gfx naming (#2105)
* rename Initialize to initialize

* rename Resize to resize

* rename Update to update

* rename device_ to _device

* rename title_ to _title

* rename GFXWindow members naming

* name width & height

* name width & height

* rename native width & height

* rename format

* rename some class members

* rename GFXWindow some members

* rename GFXWindow function name and add skip functions

* fix GFXContext naming

* fix GFXBindingLayout renaming

* fix GFXBuffer renaming

* fix GFXCommandBuffer renaming

* fix GFXFramebuffer renaming

* fix GFXInputAssembler renaming

* fix GFXPipelineLayout renaming

* fix GFXPipelineState renaming

* fix GFXRenderPass renaming

* fix GFXSampler renaming

* fix GFXShader renaming

* fix GFXTexture renaming

* fix GFXTextureView renaming

* add skip
2020-02-10 11:28:26 +08:00
coulsonwang 12d202333c fix GFX naming issue (#2098)
* fix GFX naming issue

* use const reference for string

* fix

* fix GFXDevice naming

* fix GFXCommandAllocator naming

* fix GFXCommandPool naming

* apply GFXCommandPool naming

* fix MTLDevice naming

* fix MTLCommandAllocator naming

* add skip

* fix compile issue
2020-01-20 17:50:40 +08:00
minggo 1bb0c717d0 fix macro redefine warning of platform defination (#2099) 2020-01-20 15:12:49 +08:00
minggo c3d8ea6242 Gfx binding (#2096)
* add sdkwrappter back

* add gfx binding codes back

* revert some debug code

* revert some debug code
2020-01-19 14:30:57 +08:00
minggo 2448fc74b2 refactor iOS codes (#2075) 2020-01-13 15:29:27 +08:00
minggo 1f0019b76c ios integrate gfx (#2072) 2020-01-13 09:57:50 +08:00
Yun Hsiao Wu 2531a1bd9a gfx-gles2 js binding (#2066) 2020-01-10 09:18:48 +08:00
pandamicro 4d75340e30 Import 3d gfx and generate auto bindings 2019-10-29 14:10:11 +08:00
cary 70a2134fb4 Fix the display error of the 3D node in the native platform. (#1868)
* Fix the display error of the 3D node in the native platform.

* Modify the matrix calculation of 3D nodes.
2019-10-12 11:29:48 +08:00
cary 887eec1f4d Modify the 3D sprite to use AssemblerSprite. (#1861) 2019-09-30 09:56:45 +08:00
owen 0cd71aefb9 V2.2.0 native Spine and DragonBones cache mode (#1844)
* Spine cache

* fix dragonbones yDown bug

* Spine cache mode and fix dragonBones yDown bug

* spine cache mode

* dragonbones cache mode

* dragonbones cache mode

* dragonbones cache mode

* spine dragonbones binding

* dragonbones cache mode

* spine dragonbones binding

* optimize dragonbones event

* update dragonbones binding

* dragonbones remove cache

* dragonbones cache mode

* update dragonbones binding

* dragonbones cache mode

* Fix some cache bug

* fix some cache mode bug

* optimize cache mode

* Fix update list order bug

* Fix indent issue

* revert bindings-generator

* Fix intent issue
2019-09-23 10:19:13 +08:00
cary 34159f3c30 Fix bugs of the model orientation on the native platform. (#1836)
* Fix bugs of the model orientation on the native platform.

* Add camera api export.

* add android change

* modify liensence
2019-09-16 15:02:37 +08:00
2youyouo2 1bfcda6c19 update jsbinding 2019-07-26 16:40:46 +08:00
cary 88dd29cbb4 fix shadow error of 3d-model. (#1777)
* fix shadow error of 3d-model.

* add node judgement
2019-07-24 15:26:12 +08:00
caryliu d623ac7e65 fix program error on mac 2019-07-17 18:57:49 +08:00