Commit Graph

25 Commits

Author SHA1 Message Date
pandamicro b162e21a93 Update license and API language declaration (#7750)
* Update licenses

* Update license for audio

* Update license for core/3d

* Update license for animation, assets, asset-manager, components, data

* update license for event, geometry, gfx

* update license for core modules

math, memop, pipeline, platform, primitive, renderer, scene-graph, utils, value-types

* Update license for core

* Update license for particle and particle-2d

* Update license for particle part2

* Update license for physics and physics-2d

* Update license for all modules in cocos

* Update license for exports

* Fix API doc language declaration
2020-11-10 17:36:31 +08:00
cary d94fa376c5 Fix the problem of pass id out-of-bounds. (#7736) 2020-11-09 13:07:12 +08:00
minggo 588025afe3 Reduce jsb (#7700)
* use JS version of GFXRect/GFXViewport/GFXColor/GFXOffset/GFXExtent/GFXTextureSubres/GFXTextureCopy/GFXBufferTexrureCopy
* use BufferPool for BlendState/BlendTarget/DepthStencilState/ResterizerState
2020-11-05 18:17:18 +08:00
pandamicro 3068956648 Refactor gfx module naming convention (#7663)
* Remove GFX prefix in gfx module

* Full deprecation for old GFX APIs

* export gfx module

* Fix issues and make deprecated exports backward compatible

* Adaptation in engine modules for gfx

* Fix ci

* fix ci
2020-11-02 09:49:50 +08:00
minggo ece2fc3ae7 clip framebuffer.ts 2020-10-14 14:12:21 +08:00
minggo 249d4cd6fb use native Device (#7511) 2020-10-12 18:30:08 +08:00
ChiaNing 15a1806d18 API doc format change (#7456) 2020-09-28 16:52:52 +08:00
pandamicro 3240dba206 Component rename for new standard and 2d compatibility (#7103)
* Rename ui related components

* Rename files

* Remove Useless errors

* Fix sealed names

* Fix sealed global variables

* Fix circular reference

* Refactor more component names

* Rename particle and animation related component

* export scene and models sub module in renderer

* Rename ModelComponents to Model

* Refactor LightComponents to Light

* Refactor CameraComponent to Camera

* Refactor ConstraintComponents to Constraint and rename physics comps

* Cleanup and fix issues

* Small fixes

* Refactor Model to MeshRenderer

* Final touch

* Fix data class export

* Better deprecation to cover all old usage

* Simpler and better deprecation with js.setClassAlias

* Fix ci

* Fix editor issue
2020-09-02 15:31:49 +08:00
Yun Hsiao Wu d0fd7eb720 even more type check for buffer pools (#7214) 2020-08-25 14:38:49 +08:00
Yun Hsiao Wu dfc3d141f2 GFX Descriptor Set (#7101)
* gfx: descriptor sets

* gfx: descriptor set, singular

* better structure

* adapt upper layers: first pass

finally all compiler errors cleared.

OKAY IT'S HAPPENING EVERYBODY STAY THE ****ING CALM

* adapt upper layers: second pass

THERE AND BACK AGAIN

* unified light pass & shadow shader

* gfx: descriptor set & pipeline layout

* light pass: better structure

* light pass: dynamic uniform

* even more type checking for memory pools

* Fix particleSystem and lineComponent.

* delete comment

* guard pool init param

* Fix trail module error.

* delete space

* light pass: instancing & batching support

* don't polyfill gfx stuff inside EffectAsset

* better light pass structure

* fix spot light culling

Co-authored-by: caryliu <caryliu1999@gmail.com>
2020-08-13 18:21:15 +08:00
Yun Hsiao Wu afeb83e9a6 native pools (#7028) 2020-08-04 14:14:56 +08:00
pandamicro 9fd32ee805 Merge branch '3d-v1.1.1' into 3d
# Conflicts:
#	cocos/core/3d/builtin/effects.ts
#	cocos/core/director.ts
#	cocos/core/pipeline/forward/forward-pipeline.ts
#	cocos/core/pipeline/render-pipeline.ts
#	cocos/core/pipeline/render-queue.ts
#	cocos/core/pipeline/render-view.ts
#	cocos/core/splash-screen-webgl.ts
2020-07-06 15:58:46 +08:00
pandamicro 95813e2a92 API translation for core/pipeline (#6753)
* API translation for core/pipeline

* Complete

* Improve
2020-06-18 23:05:55 +08:00
Yun Hsiao Wu f70f2dd6e3 move window out from GFX (#6844)
* window info accepts render pass

* move window out from GFX

* update effects

* fix formating

* match shader location to IA attributes
2020-06-12 10:56:47 +08:00
Yun Hsiao Wu fa06dcdad3 fix additive light pass (#6829) 2020-06-08 16:39:12 +08:00
Yun Hsiao Wu 3228b964f8 disable light pass for now 2020-06-04 10:39:14 +08:00
minggo f44822c960 Create PSO in render stage (#6732)
* record PSO in sub model

* import Pass

* create PSO dynamically in render stage

* remove debug codes

* rmeove PSO in more components

* remove unneeded codes

* add comments

* subModel.psoCreateInfos -> subModel.psoInfos

* remove unneeded \!

* remove spaces

* remove unneeded codes

* IPSOCreationInfo -> IPSOCreateInfo

* add name into hash computing

* add GFXInputState back

* concat super's macro patches
2020-06-02 17:11:22 +08:00
Yun Hsiao Wu 8c1ee06416 profiler & splash screen works on Vulkan (#6731)
* gfx buffer init size shouldn't be 0

* fix splash screen

* fix profiler

* explicit attribute locations
2020-05-22 18:14:16 +08:00
minggo c471c80120 Not record command buffer in submodel (#6713)
* not use secondary buffer

* not record render commands in sub model
Will generate render commands in render stage.

* remove command buffers

* fix ci

* remove unneeded space

* remove unneeded space

* invoke super.destroy()
2020-05-19 18:38:24 +08:00
Yun Hsiao Wu 2d431f7ec4 SubModel level joint data (#6260)
* submodel joints data

* map VB joint indices on demand

* fix joint mapping

* fix shadows

* minor
2020-03-09 21:45:37 +08:00
Yun Hsiao Wu 10c49e68f6 [chore] misc opts (#5898)
* pipeline linter fix

* instance support

* reuse render obejcts

* fix ci

* fix model ID
2019-12-18 14:35:34 +08:00
Yun Hsiao Wu e337ae33d9 one material instance for all kinds of models (#5608)
* one material instance for all kinds of models

* better pass organization

* linter fix & more opt TODOs

* PSOs store their hashes from now on

* store string pass phase

* fix sampler cache

* optimize pass resource init proc

* audio context compat improv
2019-10-28 16:09:39 +08:00
ChiaNing eb5b4fca12 API Doc fix (#5480) 2019-09-27 17:04:58 +08:00
Weiliang Wang 76542aacf8 Complete dynamic batching (#5370)
* add transformAffine()

* remove duplicate code

* add a backup buffer function to gfx-buffer

* complete dynamic batching

* fix conflicts

* fix ci test
2019-09-11 16:03:06 +08:00
pandamicro 9f89b0ef24 New module division (#5285)
* Temp

* temp

* move ui core

* Arrange ui and terrain

* Fix import path for all modules except core

* Move primitives into core

* Fix debug.getError

* Move audio-downloader to audio module

* export game from game.ts

* Migrate load-pipeline to ts

* Fix core modules and cleanup

* Move animation into core

* Fix module exports

* Fix director issue

* Remove most cc.director usage

* Fix ts issues

* Fix issues for unit test and editor running

* Revert removing deprecated import

* tweaks

* tweaks

* Fix ci

* Fix ci

* Add modules in module division

* Upgrade coordinates-converts-utils
2019-08-30 11:35:22 +08:00