Commit Graph

317 Commits

Author SHA1 Message Date
minggo bb6ea9bec3 remove GFX prefix (#2611) 2020-06-24 10:51:14 +08:00
Yun Hsiao Wu 8f7b5193d2 vk: fix indirect buffer (#2608) 2020-06-22 15:15:07 +08:00
Yun Hsiao Wu 944ab254fd vk: more polish work (#2606)
* vk: be more specific on texture usage flags

* vk: polish buffer & texture update
2020-06-22 10:32:17 +08:00
Yun Hsiao Wu 055e9eb558 vk: queues are optionally async (#2599) 2020-06-19 11:46:09 +08:00
minggo 7efee066fd Remove duplicate (#2597) 2020-06-19 11:07:21 +08:00
Yun Hsiao Wu 02c0daf75f vk: fix some leak (#2592) 2020-06-18 16:02:08 +08:00
minggo cf60075203 move some files from renderer/core to cocos/base (#2591) 2020-06-18 13:47:25 +08:00
minggo 3b476dfe4b add some classes (#2584) 2020-06-17 18:35:02 +08:00
minggo 13b7247cb5 refactor stl container declaration (#2586) 2020-06-17 18:10:12 +08:00
coulsonwang 30efd26519 add indirect draw (#2566)
* add indirect draw

* add indirect draw on metal

* request multiDrawIndirect feature

* add indirect draw

* add indirect draw on metal

* request multiDrawIndirect feature

* rename

* add debug info

* fix deviceFeatrue
2020-06-17 17:23:54 +08:00
Yun Hsiao Wu ce0ddf834d vk: fix index buffer stride (#2582) 2020-06-17 15:50:17 +08:00
Yun Hsiao Wu 9bfac902df vk: fix device init order (#2580) 2020-06-17 14:21:16 +08:00
Yun Hsiao Wu 7265d4101b update glslang (#2567)
* update glslang

* fix mipmap gen for cubemap

* vk: depth format feature

* use glslang::DefaultTBuiltInResource

* fix depth format features

* vk: fix resize

* texture format validation

Co-authored-by: coulsonwang <coulsonwang@126.com>
2020-06-17 09:46:56 +08:00
minggo e07bc0821c use cc::gfx namespace (#2576) 2020-06-16 18:10:41 +08:00
minggo 715f43bbb6 use cc::pipeline namespace (#2575) 2020-06-16 15:20:03 +08:00
江战 e645d102e8 fix compile error / 3dgfx (#2574)
* save

* compile arm64 & x86
2020-06-16 15:03:40 +08:00
minggo d381a16142 change namespace from cocos2d to cc (#2572) 2020-06-16 14:34:46 +08:00
coulsonwang 301e6c97b4 clang format metal files (#2570) 2020-06-16 09:46:08 +08:00
coulsonwang a93c3fa7ff add MTLContext (#2569) 2020-06-15 17:16:20 +08:00
Yun Hsiao Wu 18ca3f3666 vk: handle absent attributes (#2561) 2020-06-15 09:57:14 +08:00
coulsonwang 848827a9f6 fix Vulkan off-screen issue (#2525)
* remove vkResetFences
2020-06-12 12:01:38 +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 e0410ffea3 Native renderer (#2554)
* add some renderer files

* add RenderView

* add RenderBatchedQueue

* add RenderInstancedBuffer

* add InstancedBuffer

* add BatchedBuffer
2020-06-12 10:46:50 +08:00
minggo c39506a38a remove unneeded files (#2552) 2020-06-11 16:44:47 +08:00
coulsonwang 3fe3d70650 add features (#2526) 2020-06-11 15:35:12 +08:00
Yun Hsiao Wu dee4f622c3 vk: better handle for swapchain-related framebuffers (#2540) 2020-06-11 13:45:25 +08:00
minggo 46160591ec Format codes (#2539) 2020-06-09 18:16:26 +08:00
minggo b4234b5a67 Remove texture view (#2530) 2020-06-09 15:11:18 +08:00
Yun Hsiao Wu 7bacb7fb5c vk: clang format (#2535) 2020-06-09 09:45:27 +08:00
Yun Hsiao Wu d368b11250 vk: better vendor info (#2529) 2020-06-05 14:21:42 +08:00
minggo ecbb8f78d7 use clang-format to format codes (#2521) 2020-06-03 16:02:05 +08:00
minggo ba74dfed1a use 4 spaces (#2505) 2020-06-02 10:01:05 +08:00
coulsonwang 35d5ebd4bd generate mipmaps (#2483)
* generate mipmaps

* fix review

* fix review

* fix metal mipmap

* fix review
2020-06-02 10:00:41 +08:00
coulsonwang d7b5e1f3b6 fix dynamic states (#2488) 2020-05-29 15:57:31 +08:00
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
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
coulsonwang 4acd7ca62a fix metal crash (#2491)
* fix metal crash

* fix review
2020-05-27 17:46:20 +08:00
coulsonwang 6093b65ca2 fix metal buffer usage (#2477)
* fix metal buffer usage

* fix cmake

* synchronize the managed buffer
2020-05-25 18:28:08 +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
coulsonwang 6e588895a7 set clear action for metal attachments (#2451)
* set clear action for metal attachments

* update review
2020-05-19 14:23:31 +08:00
coulsonwang dd97ee7e4b use static build for CoreDef (#2449) 2020-05-14 15:10:21 +08:00
coulsonwang 6709d2894c add error log for texture and texture view (#2432)
* add error log for texture and texture view

* add error log for VkTextureView
2020-05-14 15:08:56 +08:00
Yun Hsiao Wu 9f9f8056bf effect: shader stages (#2427)
* vk: descriptor sets

* vk: explicit device.begin

resize now works

* vk: texture & sampler

* effect: shader stages

* vk: fence pool

* vk: cmd buffer reuse
2020-05-12 11:11:05 +08:00
coulsonwang 2a65ceef86 fix ci compile issue (#2433)
* fix CI compil issue

* fix CI compile issue

* fix ANDROID_PLATFORM

* fix macors
2020-05-11 15:15:02 +08:00
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
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
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