コード例 #1
0
 internal IPlatformShader GetPlatformShader()
 {
     if (platformShader == null)
     {
         platformShader = PlatformRenderer.Context.CreateShader(stage, source);
     }
     return(platformShader);
 }
コード例 #2
0
 private void DisposeInternal()
 {
     if (platformShader != null)
     {
         var platformShaderCopy = platformShader;
         Window.Current.InvokeOnRendering(() => {
             platformShaderCopy.Dispose();
         });
         platformShader = null;
     }
 }