Beispiel #1
0
 internal override void OnUpdateResource(object sender, EventArgs e)
 {
     base.OnUpdateResource(sender, e);
     using (var context = new ShaderParametersWriteContext())
     {
         OnWriteParameters(context);
         (var data, var brushes) = context.Close();
         MediaResourceManager.Current.UpdateShaderParameters(_shaderParamsRes.Value,
                                                             data, brushes);
     }
 }
Beispiel #2
0
 protected abstract void OnWriteParameters(ShaderParametersWriteContext context);