diff --git a/Runtime/DisguiseRenderStream.cs b/Runtime/DisguiseRenderStream.cs index cebe3b7..d034241 100644 --- a/Runtime/DisguiseRenderStream.cs +++ b/Runtime/DisguiseRenderStream.cs @@ -62,6 +62,11 @@ struct RenderStreamGfxUpdate { } protected virtual void Initialize() { PlayerLoopExtensions.RegisterUpdate(AwaitFrame); + InitializeGfxResources(); + } + + protected void InitializeGfxResources() + { PlayerLoopExtensions.RegisterUpdate(UpdateGfxResources); } diff --git a/Runtime/DisguiseRenderStreamWithClustercs.cs b/Runtime/DisguiseRenderStreamWithClustercs.cs index 62cd7c5..fb08365 100644 --- a/Runtime/DisguiseRenderStreamWithClustercs.cs +++ b/Runtime/DisguiseRenderStreamWithClustercs.cs @@ -106,6 +106,8 @@ protected override void Initialize() default: throw new ArgumentOutOfRangeException(); } + + InitializeGfxResources(); } void PublishEmitterEvents() => m_FrameDataBus.Publish(LatestFrameData);