private void SetSamplerState(int sampler, SamplerState type, bool value) { SetSamplerState( sampler, type, value ? 1 : 0 ); }