mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 15:52:40 +08:00
27 lines
708 B
TypeScript
27 lines
708 B
TypeScript
import { GFXCommandBuffer } from './command-buffer';
|
|
import { GFXObject, GFXObjectType, GFXQueueType } from './define';
|
|
import { GFXDevice } from './device';
|
|
|
|
export interface IGFXQueueInfo {
|
|
type: GFXQueueType;
|
|
}
|
|
|
|
export abstract class GFXQueue extends GFXObject {
|
|
|
|
public get type (): number {
|
|
return this._type;
|
|
}
|
|
|
|
protected _device: GFXDevice;
|
|
protected _type: GFXQueueType = GFXQueueType.GRAPHICS;
|
|
|
|
constructor (device: GFXDevice) {
|
|
super(GFXObjectType.QUEUE);
|
|
this._device = device;
|
|
}
|
|
|
|
public abstract initialize (info: IGFXQueueInfo): boolean;
|
|
public abstract destroy ();
|
|
public abstract submit (cmdBuffs: GFXCommandBuffer[], fence?);
|
|
}
|