internal IPlatformShader GetPlatformShader() { if (platformShader == null) { platformShader = PlatformRenderer.Context.CreateShader(stage, source); } return(platformShader); }
private void DisposeInternal() { if (platformShader != null) { var platformShaderCopy = platformShader; Window.Current.InvokeOnRendering(() => { platformShaderCopy.Dispose(); }); platformShader = null; } }