Commit Graph

611 Commits

Author SHA1 Message Date
minggo f88b8e9c81 fix crash and refine codes (#3061) 2020-11-24 10:03:40 +08:00
PP d03a29fc9c support window event on native desktop platform (#3058)
* support window event on Mac

* support window event on Win32
2020-11-24 09:59:58 +08:00
江战 17f5cba3a6 [3.0] fix travis error (#3054) 2020-11-21 22:57:18 +08:00
minggo dc43dba892 fix macro name (#3050) 2020-11-19 18:58:27 +08:00
PP b52654268c fix bug on simulator (#3048)
* fix simulator window size

* fix crash when simulator exit
2020-11-19 16:14:08 +08:00
PP 7a18419046 update cmake target osx version (#3041) 2020-11-18 14:54:42 +08:00
minggo 600c467a75 fix memory leak (#3037) 2020-11-18 09:52:36 +08:00
江战 19a8472fe5 obtain_return_value (#3035) 2020-11-17 17:43:03 +08:00
minggo abec44b08b Reduce jsb (#3027)
* do not define property of Device.uboOffsetAlignment

* convert BindingMappingInfo

* convert ShaderStage/Uniform/UniformBlock/UniformSampler/ShaderInfo

* convert DrawInfo/IndirectBuffer

* convert SamplerInfo

* convert SubPassInfo/ColorAttachment/DepthStencilAttachment/RenderPassInfo
if only bind gfx then it will not work, as it misses SubPassInfo/ColorAttachment/DepthStencilAttachment/RenderPassInfo to seval.
But do not handle it now.

* convert more types
2020-11-13 16:25:38 +08:00
江战 f1e828b7c7 [3dgfx] speedup travis (#3011) 2020-11-12 11:15:45 +08:00
troublemaker52025 bffaf3f395 Add spot light shadow for C++ (#2978) 2020-11-11 10:15:54 +08:00
minggo 74e8fb9084 cache properties of CanvasRenderingContext2D (#3007)
* cache properties of CanvasRenderingContext2D

* update data after setting callback

* do not set width/height if the value is not changed
2020-11-11 09:48:21 +08:00
minggo aa194152e5 Reduce jsb (#2986)
* convert BufferInfo

* convert JS object to TextureViewInfo

* convert JS object to TextureInfo

* convert JS object to DescriptorSetInfo
2020-11-06 17:32:44 +08:00
minggo ba517c8b14 Reduce JSB invoking(#2979)
* add conversion functions for gfx::Color/Rect/Viewport/Offset/Extent/TextureSubres/TextureCopy/BufferTextureCopy
* use buffer pool for BlendState/BlendTarget/DepthStencilState/RasterizerState
2020-11-05 18:16:20 +08:00
PP 2f994d1a2c add writable path to searchpath on Windows platform when reading config (#2980) 2020-11-05 13:42:34 +08:00
PP 72ec8be7cb update gen-simulator workflow (#2971) 2020-11-05 09:46:21 +08:00
PP e8d56ecb6b enable debugger (#2969) 2020-11-02 09:49:29 +08:00
minggo e4eadc714a add some functions (#2954)
These functions are used for performance
2020-10-29 13:39:59 +08:00
Yun Hsiao Wu c10fb33a1f vk: pre-rotation on android (#2940) 2020-10-24 14:20:59 +08:00
PP d648d3252b fix simulator compiling (#2943)
* fix simulator compiling

* remove terminate app logic
2020-10-23 20:54:01 +08:00
吴智明 d5d772556c 3d gfx upgrade gradle (#2928)
* upgrade gradle version and instant app version

Signed-off-by: wuzhiming <wuzhiming.chukong@gmail.com>

* upgrade gradle config

Signed-off-by: wuzhiming <wuzhiming.chukong@gmail.com>

* fix project path

Signed-off-by: wuzhiming <wuzhiming.chukong@gmail.com>
2020-10-20 15:09:05 +08:00
Yun Hsiao Wu fb791ad01b discrete descriptor set layout bindings (#2920) 2020-10-20 15:06:57 +08:00
coulsonwang f490f68120 Fix instance buffer (#2911) 2020-10-15 09:54:36 +08:00
minggo d25dd22e77 do not bind gfx enum class (#2907) 2020-10-14 15:41:13 +08:00
minggo 0effee8613 Gfx bind (#2905)
* bind FenceInfo

* the same sequence as JS

* rename SubPass in binding codes

* make the same sequence as JS

* remove unneeded space
2020-10-14 15:14:22 +08:00
吴智明 c12b73d42a fix bug when compile android (#2903)
* fix bug when compile android

Signed-off-by: wuzhiming <wuzhiming.chukong@gmail.com>

* update travis script

Signed-off-by: wuzhiming <wuzhiming.chukong@gmail.com>
2020-10-14 14:17:01 +08:00
minggo 822cca2112 Sync SamplerInfo definition & use default values (#2901) 2020-10-14 09:42:05 +08:00
Arnold 96a9f9210e remove warnning 2020-10-13 17:31:35 +08:00
minggo 5d4e31803d Merge pull request #2896 from PatriceJiang/3dgfx-bindings-generator-unexposed-expr
[3dgfx] bindings generator: output error message when CXCursor_UnexposedDecl
2020-10-13 15:19:08 +08:00
minggo d96a745c7e auto bind BindingMappingInfo 2020-10-13 10:38:31 +08:00
Arnold 359cb720ef add waring message 2020-10-13 10:28:45 +08:00
Yun Hsiao Wu efad97b643 array pool refactor (#2883)
* fix draw call issueing

* vk: descriptor set: default sampler only

* array pool refactor

* skip backupBuffer & device bindings

* MRT feature flag

* skip getDevice
2020-10-12 14:26:10 +08:00
coulsonwang eb89d2e5f5 fix ci (#2892) 2020-10-12 10:22:42 +08:00
江战 c4433a3c75 fix outof range error (#2885) 2020-10-10 16:28:10 +08:00
江战 a12ef80cba 3dgfx struct constructor allow varargs (#2879)
* Revert "update constructor (#2873)"

This reverts commit cfedd696b1.

* allow variable argument list
2020-10-10 15:12:43 +08:00
吴智明 c076ba8a7a change template config file to camel case syntax (#2804) 2020-10-10 11:55:22 +08:00
江战 cfedd696b1 update constructor (#2873) 2020-10-10 10:05:41 +08:00
Knox 8299383ae8 add web view (#2863)
* add web view

* refine code
2020-09-30 17:58:38 +08:00
Knox 24bb96f7ef add video player (#2860) 2020-09-30 13:58:07 +08:00
江战 7cbb298297 Fix jsb.fileUtils.listFilesRecursively binding #2337 (#2850) 2020-09-28 15:00:04 +08:00
minggo 010da34533 remove unneeded macros checktion (#2820) 2020-09-22 14:54:28 +08:00
Yun Hsiao Wu c6103495d0 misc fixes (#2801)
* misc fixes

* fix GLES update buffer

* pipeline sync

* fix copyBuffersToTexture

* minor
2020-09-18 18:23:21 +08:00
minggo 3987f54f57 do not define property of RenderView.visibility (#2799)
the property is defined in jsb adapter
2020-09-17 13:40:28 +08:00
coulsonwang 8c4656e04d fix DefineMap (#2790) 2020-09-17 10:52:55 +08:00
coulsonwang fa30b0fc15 fix fog/ambient/skybox/shadows (#2794) 2020-09-16 16:27:35 +08:00
coulsonwang d9d207aa27 fix descriptorSetLayout binding (#2792) 2020-09-16 13:46:31 +08:00
江战 56b0e56c09 Update path of bindings/auto in travis script (#2779) 2020-09-11 14:34:27 +08:00
minggo 59d567bcbb bind RenderPipeine.getDescriptorSet() (#2776) 2020-09-10 16:31:04 +08:00
minggo 4ed720b8b8 merge binding generators (#2773) 2020-09-10 13:44:20 +08:00
minggo 9d9c79012b change file path (#2733) 2020-09-10 09:51:24 +08:00