hyde zhou 02407dbc70 V3.6.0 pipeline (#11277)
* decouple GlobalDescriptorSetManager from RenderPipeline

* formatting

* move interface onGlobalPipelineStateChanged from PipelineSceneData to Pipeline

* add layouts

* fix eslint error

* rendergraph creates device resources

* restore resourceGraph

* resource graph updated

* add scene interface

* layout graph updated

* stop use IntrusivePtr<gfx::Swapchain>

* add setViewport setScissor

* scene transversal modified

* accidentally omitted

* remove pipeline event from pipeline, decouple terrain from render pipeline

* shadingScale moved from PipelineSceneData to Pipeline

* Pipeline removed from PipelineSceneData

* pipelineEvent refactored

* fix typo

* rendergraph executes

* interface changed

* fix submit

* Update the draw function

* pipeline runtime added to pipeline

* automatically barrier

* typo

* comment

* forgot sth important

* add classic/custom pipeline switch

* web pipeline can be enabled

* relax pipeline interface

* pipeline use gfx::Color

* decouple native RenderPipeline

* fix clang tidy

* add get pipelineSceneData

* present refactored

* added executor example

* half way done

* find slot

* merge & sort layout

* layout graph updated

* enable native usesCustomPipeline

* change mergedbs

* fix comment

* fix eslint error

* fix

* draft

* update the rendergraph compiler

* update the compiler

* update executor

* update to latest

* revert mtlcmdbuffer manually

* valid added

* external node

* add framebuffer

* fix linter

* fix linter

* fix implicit narrow cast

* fix linter

* use native root.pipeline

* use Root to get pipeline instance

* fix ccstd::string

* turn off validation

* cleanup

* ccstd::pmr::string changed

* update the pipeline ubo

* use ccstd::pmr::string

* uses ccstd::pmr::vector

* uses ccstd::pmr::map

* reconstruction

* external res

* compile issue

* clang tidy

* fix ccstd::pmr::string hash

* fix potential issue

* Fixed some rendering errors of webpipeline in the editor

* Optimize attachment load/storeOp logic

* update executor

* WebPipeline bug fixed in editor

* Fix the problem of resource cache error when camera is deleted or added

* webpipeline performs logic adjustments and bug fixes

* render graph updated

* descriptor updated

* descriptor updated

* fix member traits

* libstdc++ does not support hashing std::pmr::string on linux

* refactor descriptor

* jsb allocator walkaround

* rename

* descriptor type refactored

* fix default

* adding layout graph builder

* transfer env

* switch env

* switch env

* adding native layout builder

* adding native builder

* adding layout graph

* adding descriptor

* adding descriptor layout

* create layout graph builder added

* fix root

* format

* add web layout graph builder

* refactor web layout graph

* fix intrusive ptr

* descriptor set data updated

* before applying another idea

* debug string added

* adding render graph

* adding resource graph

* adding native pipeline

* graph remove edge temporary fix

* remove_edge simplified

* remove edge simplified

* outIter renamed

* remove edges simplified

* fix reference graph impl

* run test case

* adding native impl

* remove unused native

* queue added

* pass reorder v1.0

* adding native pipeline

* adding native pipeline

* fix bug

* render graph setup added

* render graph updated

* fix ccstd::string

* getFirstChildLayout, num of children must be 1

* remove examples

* structure refactor

* pass reorder & framegraphDispatcher interface

* remove test code

* remove debug code

* ts added object detection

* ts get name added

* RenderGraph setup moved

* add ts layout graph implement

* fix lint

* fix ci: implicit type conversion

* ci

* adding warmup

* turn off custom

* pipeline updated

* format

* try disable clang 64 to 32 narrow warning

Co-authored-by: zxx43 <zxx43@hotmail.com>
Co-authored-by: GengineJS <476393671@qq.com>
Co-authored-by: Zeqiang Li <zeqiang-li@outlook.com>
2022-06-01 19:06:59 +08:00
2021-01-07 10:43:59 +08:00
2022-05-25 11:17:36 +08:00
2022-05-14 10:36:21 +08:00
2022-06-01 19:06:59 +08:00
2021-02-25 17:31:08 +08:00
2022-06-01 19:06:59 +08:00
2022-05-24 10:42:56 +08:00
2020-11-09 10:19:12 +08:00
2021-08-31 19:40:50 +08:00
2022-04-18 10:24:54 +08:00
2020-10-22 15:38:30 +08:00
2019-01-02 18:19:17 +08:00
2022-05-06 20:11:17 +08:00
2021-10-25 13:40:10 +08:00
2022-04-14 16:44:27 +08:00

Cocos Creator Logo

stars forks version license twitter

Cocos Creator

image

Cocos Creator is the new generation of game development tool in Cocos family, it brings a complete set of 3D features and provides an intuitive, low cost and collaboration friendly workflow to game developers.

Cocos Creator inherited many good qualities and cool features from its previous versions, such as cross-platform support including instant gaming platforms like WeChat mini game, asset management, powerful animation editing, etc. Furthermore, Cocos Creator has pushed our technology to a whole new level. Our GFX implementation is designed to adapt to the latest graphic backend APIs, it already supports WebGL 2 and can be seamlessly fall back to WebGL 1, it will support Vulkan and Metal in the native build. The material system is built on our own effect format which uses GLSL 300 and can be easily adapted to lower version on low end devices. Developers can produce high performance, extremely expressive shaders with good compatibility. Along with physical based camera and lighting, high level game graphic can be easily achieved. Our pure GPU driven skeleton animation also make sure your game runs as smooth as possible. Besides all these exciting features, Cocos Creator have builtin physics support, terrain editing support, visual effect editing, ui system, TypeScript support, instant preview etc.

image

This repo is the engine part of Cocos Creator, it's mainly written in TypeScript and support users to use TypeScript or ES6 to write game logics. The engine itself is mostly self-contained, with full-fledged runtime modules including lighting, material, particle, animation, physical, UI, terrain, sound, resource and scene-graph management, etc. It supports both native and web platforms, including Windows, Mac, iOS, Android, Web. What's more exciting is that it supports rapidly expanding instant gaming platforms like WeChat Mini Game and Facebook Instant Games.

The engine is naturally integrated within Cocos Creator, designed to only be the essential runtime library and not to be used independently.

Developer

Prerequisite

Install

In the cloned repo, run the following command to setup dev environment:

# download & build engine dependencies
npm install

This is all you have to do to setup engine development environment.

Build

  • If running inside Cocos Creator, the engine will automatically compile and build after the editor window is opened.

  • Outside the editor, you need to run the following command to build:

    npm run build
    

Example Project

  • Example Cases: Simple yet expressive demo scenes for baseline testing and topic-specific case study.
  • Mind Your Step 3D: Beginner's step-by-step tutorial project repo.
  • UI Demo: use cases for various kinds of UI components.
  • Test Cases: Unit test scenes for every engine module.
S
Description
No description provided
Readme MIT 361 MiB
Languages
C++ 50.7%
TypeScript 35.1%
JavaScript 4%
C 4%
Objective-C++ 1.7%
Other 4.4%