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); } }
protected abstract void OnWriteParameters(ShaderParametersWriteContext context);