Files
cocos4/cocos/core/gfx/command-allocator.ts
T
pandamicro 9f89b0ef24 New module division (#5285)
* Temp

* temp

* move ui core

* Arrange ui and terrain

* Fix import path for all modules except core

* Move primitives into core

* Fix debug.getError

* Move audio-downloader to audio module

* export game from game.ts

* Migrate load-pipeline to ts

* Fix core modules and cleanup

* Move animation into core

* Fix module exports

* Fix director issue

* Remove most cc.director usage

* Fix ts issues

* Fix issues for unit test and editor running

* Revert removing deprecated import

* tweaks

* tweaks

* Fix ci

* Fix ci

* Add modules in module division

* Upgrade coordinates-converts-utils
2019-08-30 11:35:22 +08:00

50 lines
911 B
TypeScript

/**
* @category gfx
*/
import { GFXObject, GFXObjectType } from './define';
import { GFXDevice } from './device';
/**
* @zh
* GFX命令分配器描述信息。
*/
// tslint:disable-next-line:no-empty-interface
export interface IGFXCommandAllocatorInfo {
}
/**
* @zh
* GFX命令分配器。
*/
export abstract class GFXCommandAllocator extends GFXObject {
/**
* @zh
* GFX设备。
*/
protected _device: GFXDevice;
/**
* 构造函数。
* @param device GFX设备。
*/
constructor (device: GFXDevice) {
super(GFXObjectType.COMMAND_ALLOCATOR);
this._device = device;
}
/**
* @zh
* 初始化函数。
* @param info GFX命令分配器描述信息。
*/
public abstract initialize (info: IGFXCommandAllocatorInfo): boolean;
/**
* @zh
* 销毁函数。
*/
public abstract destroy ();
}