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
江战
7c140824f0
[bugfix] win32/macosx add sourcemap / 3d-gfx ( #2403 )
...
* add sourcemap
* fix platform macro
2020-04-26 09:59:15 +08:00
minggo
2082c30ea4
fix crash if enter background on Android ( #2401 )
...
* fix crash if enter background on Android
* break if recreate window error
2020-04-24 16:56:35 +08:00
coulsonwang
3166eef09d
add indirect info ( #2399 )
...
* add indirect info
* add normalized MTLVertexFormat
* fix indirects
* fix vertex format
2020-04-23 17:53:57 +08:00
CocosRobot
fc206fb09b
[ci skip][AUTO]: updating jsbinding automatically ( #2387 )
2020-04-20 17:27:08 +08:00
minggo
b02ef0bac1
add minClipZ and projectionSignY for device ( #2379 )
2020-04-20 16:58:57 +08:00
coulsonwang
1e63144a48
support instancing ( #2382 )
...
* support instancing
* fix stride
* emplace_back when need
2020-04-20 11:29:58 +08:00
CocosRobot
9187f0bad8
[ci skip][AUTO]: updating jsbinding automatically ( #2381 )
2020-04-15 18:27:07 +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
coulsonwang
f4b4301977
fix texture and sampler binding ( #2377 )
2020-04-15 13:47:41 +08:00
coulsonwang
385a97ac6e
convert RGB32F to MTLPixelFormatRGBA32Float ( #2373 )
...
* convert RGB32F to MTLPixelFormatRGBA32Float
* move format comvertor to utils
2020-04-15 10:00:49 +08:00
Arnold
9eb02818a5
add metal support ( #2375 )
2020-04-15 09:42:58 +08:00
minggo
da59100a21
Metal command buffer improve ( #2376 )
...
* set depth bias
* support setting blend constants
* support setting depth bounds
* add some error log
2020-04-14 18:43:02 +08:00
coulsonwang
5b12ecc9db
fix incorrectly update PSO ( #2370 )
2020-04-14 18:34:47 +08:00
minggo
2d90a8c16c
check correct pointer address to avoid crash ( #2372 )
2020-04-14 15:41:34 +08:00
CocosRobot
b982cf315b
[AUTO][ci skip]: updating cocos2dx_files.json ( #2369 )
2020-04-14 14:48: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
coulsonwang
7453ba4a2c
fix incorrect index offset ( #2368 )
2020-04-13 18:29:42 +08:00
minggo
c590172f76
fix some issues: ( #2367 )
...
- present drawable in View to prevent rendering warning in metal
- fix draw elements offset
- fix pipeline state
2020-04-13 12:10:18 +08:00
minggo
11d8db66fd
Metal implement device present ( #2366 )
...
* fix issue that pipeline state is not bound correctly
* implement CCMTLDevice::present()
2020-04-10 14:44:26 +08:00
minggo
188efebd52
fix issue that pipeline state is not bound correctly ( #2364 )
2020-04-10 11:39:37 +08:00
minggo
870641ce93
fix crash that buffer is not bound ( #2363 )
...
* fix crash that buffer is not bound
* bind state in correct logic
2020-04-10 11:10:02 +08:00
CocosRobot
4211fb4ffd
[ci skip][AUTO]: updating jsbinding automatically ( #2362 )
2020-04-09 18:39:05 +08:00
Yun Hsiao Wu
318c28c1f0
numInstances binding ( #2359 )
2020-04-09 18:32:25 +08:00
minggo
dd1ea9420d
use one command buffer for a queue submit ( #2357 )
2020-04-08 16:45:13 +08:00
CocosRobot
fa4b75b279
[AUTO][ci skip]: updating cocos2dx_files.json ( #2355 )
2020-04-08 09:53:27 +08:00
minggo
9e7717c1c3
improve metal implementation ( #2354 )
2020-04-07 15:52:01 +08:00
CocosRobot
7dfaaed0a8
[ci skip][AUTO]: updating jsbinding automatically ( #2351 )
2020-04-03 10:00:49 +08:00
coulsonwang
31cc3c73ca
prefix "__" to property ( #2347 )
...
* prefix __ to property
* update submodule
2020-04-03 09:53:21 +08:00
Arnold
b4a1ddd891
exclude gles2 from project file ( #2334 )
2020-03-26 18:24:07 +08:00
minggo
da1c03d8d9
implement fps limitation ( #2333 )
2020-03-26 18:04:32 +08:00
Yun Hsiao Wu
8b33c034f5
fix window cmopile error ( #2328 )
2020-03-25 09:28:41 +08:00
minggo
1b696d8504
use gles3 for all platforms ( #2327 )
2020-03-24 17:26:21 +08:00
minggo
dd093db501
Mac set cursor ( #2326 )
...
* enable cursor setting
* set correct OS string for macOS
2020-03-24 16:17:05 +08:00
CocosRobot
7e04bd08c7
[AUTO][ci skip]: updating cocos2dx_files.json ( #2325 )
2020-03-24 15:07:54 +08:00
minggo
d573a5f2f5
android support GLES3 ( #2324 )
2020-03-24 15:02:19 +08:00
CocosRobot
282d01ecb1
[ci skip][AUTO]: updating jsbinding automatically ( #2322 )
2020-03-24 14:42:43 +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