public void Apply(GraphicsDevice device) { #if DEBUG device.EnsureContextActive(); #endif device.effectProgram = this; device.BindProgram(ResourceId); }