Commit Graph

518 Commits

Author SHA1 Message Date
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
minggo 91901a7b83 binding codes support intptr_t (#2204) 2020-02-27 16:04:01 +08:00
pandamicro 588167ac63 Bind GFXDevice (#2197) 2020-02-27 11:56:23 +08:00
coulsonwang fe9c986bb1 update submodule (#2168) 2020-02-24 15:22:11 +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
Arnold e9e93a1528 update submodule (#2162) 2020-02-21 11:30:12 +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
Arnold ed24a2b1e5 update submodule (#2157) 2020-02-21 10:15:35 +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
Arnold defe8b5c95 update submodule (#2135) 2020-02-17 12:11:19 +08:00
coulsonwang 1478da7a42 add gfx structure to gfx.ini (#2133) 2020-02-17 11:09:02 +08:00
Arnold 3df9e582b7 export structure & support reference (#2120)
* regenerate

* revert change

* update submodle
2020-02-14 11:51:00 +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