import { IFramebuffer , ITexture2D } from '../..' ; import { TextureDescriptor } from './FrameGraphHandle' ; import { VirtualResource } from './VirtualResource' ; export class ResourceEntry extends VirtualResource { public version : number = 0 ; public refs : number = 0 ; public name : string ; public imported : boolean ; public priority : number ; public discardStart = true ; public discardEnd = false ; public descriptor : TextureDescriptor ; public resource : IFramebuffer ; /**
     * Lifecycles in FG's execute
     */ public preExecuteDestroy ( ) { this . discardEnd = true ; } public postExecuteDestroy ( ) { if ( ! this . imported ) { } } public postExecuteDevirtualize ( ) { this . discardStart = false ; } public preExecuteDevirtualize ( ) { if ( ! this . imported ) { } } }