mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-02 16:52:43 +08:00
29 lines
541 B
TypeScript
29 lines
541 B
TypeScript
import { GFXDevice } from './device';
|
|
|
|
export enum GFXQueueType {
|
|
GRAPHICS,
|
|
COMPUTE,
|
|
TRANSFER,
|
|
};
|
|
|
|
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 get type(): number {
|
|
return this._type;
|
|
}
|
|
|
|
protected _device : GFXDevice;
|
|
protected _type : GFXQueueType = GFXQueueType.GRAPHICS;
|
|
};
|