mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-03 01:12:42 +08:00
c1c1a82946
* API docs * wording & tooltip * update material
29 lines
617 B
TypeScript
29 lines
617 B
TypeScript
/**
|
|
* @category gfx
|
|
*/
|
|
|
|
import { GFXObject, GFXObjectType } from './define';
|
|
import { GFXDevice } from './device';
|
|
|
|
// tslint:disable-next-line:no-empty-interface
|
|
export interface IGFXCommandAllocatorInfo {
|
|
}
|
|
|
|
/**
|
|
* @en GFX command allocator.
|
|
* @zh GFX 命令分配器。
|
|
*/
|
|
export abstract class GFXCommandAllocator extends GFXObject {
|
|
|
|
protected _device: GFXDevice;
|
|
|
|
constructor (device: GFXDevice) {
|
|
super(GFXObjectType.COMMAND_ALLOCATOR);
|
|
this._device = device;
|
|
}
|
|
|
|
public abstract initialize (info: IGFXCommandAllocatorInfo): boolean;
|
|
|
|
public abstract destroy (): void;
|
|
}
|