Commit Graph

238 Commits

Author SHA1 Message Date
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
coulsonwang c0bb7138a9 remove shadowmap binding 2020-09-01 11:24:02 +08:00
minggo fc55b39311 fix binding issue 2020-08-31 17:43:06 +08:00
cary a86ff9b4d8 Add serialized data synchronization for pipeline. (#2736) 2020-08-31 11:17:45 +08:00
coulsonwang de380ae677 fix native pipeline (#2734) 2020-08-31 09:32:13 +08:00
cary b2eb500d47 Add pipeline jsb binding. (#2722)
Co-authored-by: minggo <nudtzxm@gmail.com>
2020-08-28 17:48:37 +08:00
minggo b08407c501 remove CC/cc prefix for file names (#2728) 2020-08-28 15:23:29 +08:00
Yun Hsiao Wu ca23166ebf remove GFXStatus (#2719) 2020-08-25 14:34:37 +08:00
Yun Hsiao Wu 46ba30ae13 GFX Descriptor Set (#2713)
* GFX Descriptor Set: GLES3

* GFX Descriptor Set: GLES2

* GFX Descriptor Set: Vulkan

* upper layer adaptions

* GFX Descriptor Set: Metal

Co-authored-by: coulsonwang <coulsonwang@126.com>
2020-08-24 17:11:06 +08:00
minggo 694e70aef2 do not bind Device::getInstance() (#2665) 2020-07-31 17:36:10 +08:00
Yun Hsiao Wu be439fd33d vk: descriptor hub (#2652) 2020-07-24 18:08:16 +08:00
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