mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 15:42:39 +08:00
24fe3ff784
* uniform * uniform buffer add * add dummy IA * first working version * misc & data structure optimize * fix webGL1 bug * rebase on 3.3 * add maxQuadPerDrawcall by device 现在每个DC能绘制的数量由设备返回的 uniform 数量上限决定 * add index * index bug fix * sliced ia add(Not finish) * change mat4 to vec4 * change stride num * new vec4PreUI finish * misc fix * size & anchor dirty add * bug fix * add UICapacityDirty (cherry picked from commit 417e10c8d3422363d80828539b110b93ee4d3cb1) * static buffer cache version (cherry picked from commit 1ffe7e7943cdf9af085aeda5ca218c3442fa9119) * static buffer update version (cherry picked from commit 964d9cb5b3230963b2a535acac99a34cde7eb63c) * cache localbuffer (cherry picked from commit 641b956def64023e0d47be66bc0c0a37ef1e9791) * fix setPosition event & fix DS release * weak sliced & filp tiled mode add * fix tiled y * fix sliced bug * ugly but work filled type add * update effect * filled mode effect * shader fix * RenderData dirty for render data update * revert fillbuffer * misc fix * support label bmfont by meshBuffer * fix sliced bug & commit Model * fixed some render dirty flag bug * cut code by macro.UI_GPU_DRIVEN * cut code by UI_GPU_DRIVEN Macro on build * cut file by UI_GPU_DRIVEN * I-batcher interface add * remove render queue cache * file name change * file name change * after merge * fix for v3.4 * useless remove * fix texture rotation * fix sliced when atlas rotation * useless code remove * native bind * update effect * fix DynamicOffsets bind bug * PR review fix * effect encapsulation * change chunk * update effect * update shader * remove color in fs * move code * fix UBO buffer bug * fix ubo count to 10 * fix vk bind
130 lines
2.7 KiB
TypeScript
130 lines
2.7 KiB
TypeScript
declare module 'internal:constants' {
|
|
/**
|
|
* This constant is private and used for internal purpose only.
|
|
*
|
|
* If true, some of the constants of `internal:constants` would be also export to the global namespace.
|
|
* For example would set `CC_EDITOR` on `globalThis` as `EDITOR`.
|
|
* This is due to we at present inherits the way how Creator prior to 3.0 deploys the build time constants.
|
|
*/
|
|
export const EXPORT_TO_GLOBAL: boolean;
|
|
|
|
/**
|
|
* Running in published project.
|
|
*/
|
|
export const BUILD: boolean;
|
|
|
|
/**
|
|
* Running in the engine's unit test.
|
|
*/
|
|
export const TEST: boolean;
|
|
|
|
/**
|
|
* Running in the editor.
|
|
*/
|
|
export const EDITOR: boolean;
|
|
|
|
/**
|
|
* Preview in browser or simulator.
|
|
*/
|
|
export const PREVIEW: boolean;
|
|
|
|
/**
|
|
* Running in the editor or preview.
|
|
*/
|
|
export const DEV: boolean;
|
|
|
|
/**
|
|
* Running in the editor or preview, or build in debug mode.
|
|
*/
|
|
export const DEBUG: boolean;
|
|
|
|
/**
|
|
* Running in native platform (mobile app, desktop app, or simulator).
|
|
*/
|
|
export const NATIVE: boolean;
|
|
|
|
export const JSB: boolean;
|
|
|
|
export const HTML5: boolean;
|
|
|
|
/**
|
|
* Running in the Wechat's mini game.
|
|
*/
|
|
export const WECHAT: boolean;
|
|
|
|
/**
|
|
* Running in the alipay's mini game.
|
|
*/
|
|
export const ALIPAY: boolean;
|
|
|
|
/**
|
|
* Running in the xiaomi's quick game.
|
|
*/
|
|
export const XIAOMI: boolean;
|
|
|
|
/**
|
|
* Running in the ByteDance's quick game.
|
|
*/
|
|
export const BYTEDANCE: boolean;
|
|
|
|
/**
|
|
* Running in the baidu's mini game.
|
|
*/
|
|
export const BAIDU: boolean;
|
|
|
|
/**
|
|
* Running in the cocosplay.
|
|
*/
|
|
export const COCOSPLAY: boolean;
|
|
|
|
/**
|
|
* Running in the huawei's quick game.
|
|
*/
|
|
export const HUAWEI: boolean;
|
|
|
|
/**
|
|
* Running in the oppo's mini game.
|
|
*/
|
|
export const OPPO: boolean;
|
|
|
|
/**
|
|
* Running in the vivo's mini game.
|
|
*/
|
|
export const VIVO: boolean;
|
|
|
|
/**
|
|
* Running in the qtt's quick game.
|
|
*/
|
|
export const QTT: boolean;
|
|
|
|
/**
|
|
* Running in the linksure's quick game.
|
|
*/
|
|
export const LINKSURE: boolean;
|
|
|
|
/**
|
|
* Running in mini game.
|
|
*/
|
|
export const MINIGAME: boolean;
|
|
|
|
/**
|
|
* Running in runtime environments.
|
|
*/
|
|
export const RUNTIME_BASED: boolean;
|
|
|
|
/**
|
|
* Environment support JIT, currently iOS native and mini game doesn't support JIT
|
|
*/
|
|
export const SUPPORT_JIT: boolean;
|
|
|
|
/**
|
|
* Running in server mode.
|
|
*/
|
|
export const SERVER_MODE: boolean;
|
|
|
|
/**
|
|
* Used UI GPU Driven
|
|
*/
|
|
export const UI_GPU_DRIVEN: boolean;
|
|
}
|