Files
cocos4/cocos/gfx/queue.ts
T
2019-01-02 02:41:52 +08:00

26 lines
633 B
TypeScript

import { GFXDevice } from './device';
import { GFXCommandBuffer } from './command-buffer';
import { GFXQueueType } from './gfx-define';
export interface GFXQueueInfo {
type : GFXQueueType;
};
export abstract class GFXQueue {
constructor(device : GFXDevice) {
this._device = device;
}
public abstract initialize(info : GFXQueueInfo) : boolean;
public abstract destroy();
public abstract submit(cmdBuffs: GFXCommandBuffer[], fence?);
public get type(): number {
return this._type;
}
protected _device : GFXDevice;
protected _type : GFXQueueType = GFXQueueType.GRAPHICS;
};