Commit Graph

72 Commits

Author SHA1 Message Date
Yun Hsiao Wu 198034ec2c refactor access type array to access flags (#10103) 2022-02-16 09:56:46 +08:00
Yiwen 8e81f9cfdb add a new interface to query format feature info (#4169)
* create a seperated branch to solve the Issue 8203

* Add format feature for query

* fix bugs and add formatFeature info for metal backend.

* 1. fix some bugs; 2. correct some condition judgements; 3. remove some uncessary comments;

* fix a bug of textureExclusive, fix some typos.

* clean the code, correct some formatFeatures.

* fix bugs in metal backend, fix bugs found on windows.

* Use a proper log funciton in DeviceValidator. Fix code format.

* fix perfect-forwarding in CondVar interface
2022-01-25 19:02:33 +08:00
minggo f08555248f fix conflict 2022-01-24 17:23:03 +08:00
Yun Hsiao Wu 14a17c9d22 license upgrade (#4210) 2022-01-24 17:18:47 +08:00
troublemaker52025 7bf2fc0fba merge valid punctual light culling for v3.4.0 (#4048)
* merge valid punctual light culling for v3.4.0
2021-11-18 11:18:02 +08:00
Yun Hsiao Wu a297dea9b6 fix cluster demo on vk 2021-11-11 15:56:43 +08:00
troublemaker52025 e6b4ba89fb Using float texture function for v3.4.0 (#4002) 2021-10-22 15:37:28 +08:00
Yun Hsiao Wu dbcb157efb misc gfx fixes (#3991)
* better hashing strat

* gfx: unify states hash

* vk: upload texture in multiple chunks if needed

* gfx: states lifecycle management
2021-10-19 14:14:46 +08:00
Yun Hsiao Wu 8f8569f39e gfx: better hashing strategies (#3969) 2021-10-13 16:03:58 +08:00
troublemaker52025 a9d6d73425 fix close window crash for v3.4.0 (#3954) 2021-10-08 15:45:06 +08:00
troublemaker52025 666b8cb0c0 fix multi-light source rendering translucent material for v3.4.0 (#3910)
* fix merge error

* update

* update ds to globalDS

* safe destroy

* fix ci error

* fix ci error
2021-09-28 18:00:17 +08:00
minggo e14fd73506 fix compling error and review 2021-09-24 14:09:30 +08:00
minggo ea980f509c merge v3.3.2 2021-09-24 12:38:10 +08:00
troublemaker52025 b419fa958c Culling performance optimization for v3.4.0 (#3909)
* matShadowViewInv is matShadowTrans
2021-09-23 18:00:26 +08:00
江战 5074a5a826 V3.4.0 usec++14 (#3898)
This reverts commit fff4cc8fc94fb9b1a8424a2b89e9966184c6c4ce.
2021-09-18 13:53:58 +08:00
江战 1bac46bb23 Use c++14 by default (#3880) 2021-09-13 10:41:27 +08:00
troublemaker52025 cc9f23ce25 fix no shadow scene error for v3.3.1 (#3879) 2021-09-10 14:26:44 +08:00
Yun Hsiao Wu da2f03ff73 gfx: swapchain refactor (#3751)
* gfx: swapchain

* acquire/release/surface on swapchain

* fix swapchain texture creation

* acquire/present back on device

* formats are swapchain-specific

* swapchain: vk works

* enable device agent

* format fix

* update gfxdef

* fix enum decl

* pipeline adapt

* minor

* vk: compress attr locations directly in SPIR-V

* gles3 adjust

* InputAssembler owns an DrawInfo

* gles2 adapt

* texture keep track of its hash

* device cached states

* format

* glslang finalize

* buffer view adapt

* fg: subpass support

* minor

* 3.4 adapt

* profiler adapt

* buffer update frequency detection

* minor

* base commit

* swapchain works on metal

* spirv

* mtltexture issue

* remote test code

* depthtexture

* revert ifdef USE_METAL

* ios swapchain header

* fix some triple buffer issues

* resize accept surface transform

Co-authored-by: Zeqiang Li <Zeqiang-li@outlook.com>
2021-08-31 19:40:32 +08:00
jk20012001 36a52f932b fix spotlight shadow matrix, lineardepth, packing mode, selfbias error (#8483) (#3834)
* fix spotlight shadow matrix, lineardepth, selfbias error (#8483)
2021-08-17 17:27:46 +08:00
troublemaker52025 3e568df2ed fix shadow problem for v3.3.0 (#3674) 2021-07-14 09:26:23 +08:00
minggo 43c288196e Merge v3.1.2 (#3691)
* add jsb binding for v3.1.2 (#3611)

* update (#3615)

* optimize cleanTracks method (#3620)

* Fix setMaterial memory leak (#3622)

* fix RenderAdditiveLightQueue memory leaks for v3.1.2 (#3616)

* fix shadows GFXBuffer memory leaks for v3.1.2 (#3630)

* [ci skip][AUTO]: updating jsbinding automatically: dea52c7b (#3633)

Co-authored-by: cocos-robot <engine-deploy@cocos.com>

* fix erase shared body (#3635)

* Native PCF change sync to native-engine for v3.1.2 (#3652)

* support getAABB and getBoundingShpere (#3563) (#3671)

* fix compiling error

Co-authored-by: troublemaker52025 <troublemaker52025@outlook.com>
Co-authored-by: mmyduckx <308303735@qq.com>
Co-authored-by: wangyuzhi233 <78699242+wangyuzhi233@users.noreply.github.com>
Co-authored-by: Cocos Robot <48829427+cocos-robot@users.noreply.github.com>
Co-authored-by: cocos-robot <engine-deploy@cocos.com>
Co-authored-by: jiaxin.lai <goodlaijiaxin@qq.com>
2021-07-13 09:43:25 +08:00
Yun Hsiao Wu d7db4dc817 gfx: resolve attachments (#3684) 2021-07-06 14:02:59 +08:00
minggo 2e364edd24 merge v3.2 to v3.3 2021-06-22 17:38:07 +08:00
Zeqiang Li 839ed8e24f shadow renderpass reuse logic (#3605) 2021-06-10 09:49:33 +08:00
cary f406185c87 Merge SSPR to v3.3. (#3601)
* support SSPR by hw
Co-authored-by: dddpppccc <291274416@qq.com>
2021-06-09 15:31:42 +08:00
cary d77dbb3a53 implement scene management in native(#3584) 2021-06-02 17:22:33 +08:00
troublemaker52025 f24e3281cf dirty shadow map when size changed for v3.3 (#3529) 2021-05-21 17:15:58 +08:00
Yun Hsiao Wu 655b85b708 remove ad-hoc interfaces from device (#3498) 2021-04-29 22:05:28 +08:00
troublemaker52025 730a58687b using COLOR_HALF_FLOAT (#3496)
* using COLOR_HALF_FLOAT
2021-04-29 20:14:09 +08:00
troublemaker52025 d13d27ac63 Fix shadow map texture memory leaks for v3.1-release (#3470) 2021-04-26 09:44:42 +08:00
troublemaker52025 b606a52204 fix mini game platform shadow not display for v3.1 (#3456)
* fix mini game platform shadow not display for v3.1
* only use texture half float
2021-04-23 13:50:18 +08:00
troublemaker52025 68a100f035 fix shadowMap merged error (#3444) 2021-04-22 09:54:22 +08:00
GengineJS c61e064ee1 [Feature] Optimize the shadow collect process of shadowMap (#3422) 2021-04-19 19:02:45 +08:00
troublemaker52025 97ea27b812 Add Linear depth for nativeEngine in v3.1 (#3404)
* fix native-engine for linearDepth
2021-04-19 14:55:45 +08:00
troublemaker52025 e59d7b4c98 fix nativeEngine shadow effect not display for v3.1 (#3403)
* fix nativeEngine shadow effect not display for v3.1
2021-04-15 09:42:12 +08:00
Yun Hsiao Wu ea88ba33c6 codebase structure update (#3289)
* structure

* fix jsb auto binding license issue
2021-03-01 12:00:10 +08:00
Yun Hsiao Wu defdc8d5b0 Merge branch 'v3.1' of https://github.com/cocos-creator/engine-native into device-proof 2021-02-07 10:33:25 +08:00
Yun Hsiao Wu d0fb6d5281 fix format 2021-02-05 16:41:01 +08:00
minggo 18d3aa40a7 fix merge error 2021-02-05 16:28:35 +08:00
Yun Hsiao Wu e0fdfef054 license upgrader 2021-02-05 14:08:22 +08:00
minggo 28d170cd9e merge 3.0 2021-02-05 10:50:55 +08:00
Yun Hsiao Wu 8c96bfa860 editor adapt 2021-02-03 16:38:40 +08:00
troublemaker52025 931b64a2c7 add clear shadow framebuffer method (#3247) 2021-01-27 19:05:51 +08:00
troublemaker52025 623d0022f6 null shadow objects should be rendered (#3242) 2021-01-25 11:55:02 +08:00
cary 4c0f767d2b Extracts the shared content of the pipeline. (#3244)
* Extracts the shared content of the pipeline.

* remove ubo in forward
2021-01-23 09:35:23 +08:00
troublemaker52025 412679ecc2 Reduce lightCollecting performance consumption (#3220) 2021-01-14 16:16:39 +08:00
troublemaker52025 738e848dc5 After the shadowMap rendering of all lights is completed,restore the ShadowUBO data of the main light. (#3214) 2021-01-13 13:37:33 +08:00
cary 24808a3f5a Fix crash on metal and planar shadow. (#3187)
* Fix crash on metal and planar shadow.
2021-01-11 11:47:20 +08:00
minggo a728537098 add license (#3165) 2020-12-29 11:25:30 +08:00
cary ab9705b350 Disable store of depthStencilAttachement. (#3149) 2020-12-26 10:51:38 +08:00