Files
cocos4/cocos/gfx/queue.ts
T
Yun Hsiao Wu af2789ffd9 pass
2019-01-02 18:19:17 +08:00

26 lines
629 B
TypeScript

import { GFXDevice } from './device';
import { GFXCommandBuffer } from './command-buffer';
import { GFXQueueType } from './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;
};