Commit Graph

259 Commits

Author SHA1 Message Date
江战 13cfab0ac3 fix gen (#3261) 2021-01-28 15:27:15 +08:00
troublemaker52025 931b64a2c7 add clear shadow framebuffer method (#3247) 2021-01-27 19:05:51 +08:00
Zeqiang Li 43ab6db6c2 skip generate getFrameIndex() in jsb & GCPool rewrite (#3237)
* skip generate getFrameIndex() in jsb

* rewrite GCPool::collect and flush GCPool when destroy device
2021-01-20 13:38:13 +08:00
minggo d745fd5911 Remove files (#3230) 2021-01-18 18:37:18 +08:00
江战 308344d6d7 do not export struct DownloadTask to JSB (#3192) 2021-01-09 15:39:54 +08:00
江战 518b56df5d [3.0] [jsb] some improvements (#3146) 2020-12-28 18:50:31 +08:00
Yun Hsiao Wu 9d3d6647dd merge latest device layer (#3145) 2020-12-28 17:23:16 +08:00
kenshin 762004cf72 3.0 dragonbones (#3156) 2020-12-28 16:19:14 +08:00
李学武 e6becc271d make setRenderObjects & setShadowObjects real 'move' (#3148)
Co-authored-by: lixuewu <lixuewu@17paipai.com>
2020-12-28 09:38:51 +08:00
cary cc6aea86fd Modify the forward rendering process and remove UIFlow. (#3117) 2020-12-24 16:09:06 +08:00
owen ab49c62d0f 3.0 spine native sdk (#3136) 2020-12-24 10:14:18 +08:00
江战 37e7d729e8 [3.0] export bindDescriptorSetForJS to JS (#3123) 2020-12-17 19:03:23 +08:00
江战 1892c43901 [3d-gfx] JSB convert types with template functions (#3100) 2020-12-09 16:35:51 +08:00
minggo 04b8aa17f9 add trible staging buffer mechanism. (#3098)
* add trible staging buffer mechanism.
As it seems does not improve performance, so use 1 staging buffer now.
2020-12-08 16:58:23 +08:00
coulsonwang 4a3ed169f7 fix MTLBuffer blit operation (#3091) 2020-12-02 16:40:08 +08:00
minggo f88b8e9c81 fix crash and refine codes (#3061) 2020-11-24 10:03:40 +08:00
minggo dc43dba892 fix macro name (#3050) 2020-11-19 18:58:27 +08:00
minggo 600c467a75 fix memory leak (#3037) 2020-11-18 09:52:36 +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
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
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
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
minggo 822cca2112 Sync SamplerInfo definition & use default values (#2901) 2020-10-14 09:42:05 +08:00
minggo d96a745c7e auto bind BindingMappingInfo 2020-10-13 10:38:31 +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
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 9d9c79012b change file path (#2733) 2020-09-10 09:51:24 +08:00
coulsonwang 7851017bab fix pso hash (#2764) 2020-09-09 18:20:43 +08:00
coulsonwang b8ae064750 bind setTarget for blendState (#2767) 2020-09-09 17:36:16 +08:00
Yun Hsiao Wu b5cb10f5c8 bindless textures (#2723)
* bindless textures

* fix buffer views as descriptors

* gpuPSO/gpuIA reuse

* update GFXColor
2020-09-04 16:15:15 +08:00
coulsonwang ace971bc82 fix render window binding (#2748) 2020-09-02 13:39:29 +08:00
coulsonwang 1b091e3f55 add get macros binding 2020-09-01 17:22:41 +08:00