protected virtual bool StartRender(RenderContext renderContext, Color borderColor, Vector4 frameData) { if (_effect == null || _lastTexture == null) return false; // Apply effect parameters if (_extraParameters != null) foreach (KeyValuePair<string, object> pair in _extraParameters) _effect.Parameters[pair.Key] = pair.Value; // Set border colour for area outside of texture boundaries GraphicsDevice.Device.SetSamplerState(0, SamplerState.BorderColor, borderColor.ToBgra()); // Render _effect.StartRender(_lastTexture, renderContext.Transform); return true; }
public static void SetMarker(Color color, string name, params object[] parameters) { PixHelper.D3DPERF_SetMarker(color.ToBgra(), string.Format(name, parameters)); }
public static int BeginEvent(Color color, string name, params object[] parameters) { return PixHelper.D3DPERF_BeginEvent(color.ToBgra(), string.Format(name, parameters)); }
public static void SetMarker(Color color, string name) { PixHelper.D3DPERF_SetMarker(color.ToBgra(), name); }
public static int BeginEvent(Color color, string name) { return PixHelper.D3DPERF_BeginEvent(color.ToBgra(), name); }