mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-02 00:22:43 +08:00
9f89b0ef24
* 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
73 lines
1.3 KiB
TypeScript
73 lines
1.3 KiB
TypeScript
/**
|
|
* @category gfx
|
|
*/
|
|
|
|
import { GFXCommandBuffer } from './command-buffer';
|
|
import { GFXObject, GFXObjectType, GFXQueueType } from './define';
|
|
import { GFXDevice } from './device';
|
|
|
|
/**
|
|
* @zh
|
|
* GFX队列描述信息。
|
|
*/
|
|
export interface IGFXQueueInfo {
|
|
type: GFXQueueType;
|
|
}
|
|
|
|
/**
|
|
* @zh
|
|
* GFX队列。
|
|
*/
|
|
export abstract class GFXQueue extends GFXObject {
|
|
|
|
/**
|
|
* @zh
|
|
* 队列类型。
|
|
*/
|
|
public get type (): number {
|
|
return this._type;
|
|
}
|
|
|
|
/**
|
|
* @zh
|
|
* GFX设备。
|
|
*/
|
|
protected _device: GFXDevice;
|
|
|
|
/**
|
|
* @zh
|
|
* 队列类型。
|
|
*/
|
|
protected _type: GFXQueueType = GFXQueueType.GRAPHICS;
|
|
|
|
/**
|
|
* 构造函数。
|
|
* @param device GFX设备。
|
|
*/
|
|
constructor (device: GFXDevice) {
|
|
super(GFXObjectType.QUEUE);
|
|
this._device = device;
|
|
}
|
|
|
|
/**
|
|
* @zh
|
|
* 初始化函数。
|
|
* @param info GFX队列描述信息。
|
|
*/
|
|
public abstract initialize (info: IGFXQueueInfo): boolean;
|
|
|
|
/**
|
|
* @zh
|
|
* 销毁函数。
|
|
*/
|
|
public abstract destroy ();
|
|
|
|
/**
|
|
* @zh
|
|
* 提交命令缓冲数组。
|
|
* @param cmdBuffs GFX命令缓冲数组。
|
|
* @param fence GFX栅栏。
|
|
*/
|
|
public abstract submit (cmdBuffs: GFXCommandBuffer[], fence?);
|
|
}
|