From caf8a60133f8dce6139b2e36a8fff138b983000b Mon Sep 17 00:00:00 2001 From: jerrywwl Date: Fri, 18 Jan 2019 10:23:04 +0800 Subject: [PATCH] add get layouts() --- cocos/gfx/pipeline-layout.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cocos/gfx/pipeline-layout.ts b/cocos/gfx/pipeline-layout.ts index b1a26fefc1..69a4f91a69 100644 --- a/cocos/gfx/pipeline-layout.ts +++ b/cocos/gfx/pipeline-layout.ts @@ -15,6 +15,10 @@ export interface IGFXPipelineLayoutInfo { export abstract class GFXPipelineLayout extends GFXObject { + public get layouts (): GFXBindingLayout[] { + return this._layouts; + } + protected _device: GFXDevice; protected _pushConstantsRanges: IGFXPushConstantRange[] = []; protected _layouts: GFXBindingLayout[] = [];