1// 2// Copyright 2012 The ANGLE Project Authors. All rights reserved. 3// Use of this source code is governed by a BSD-style license that can be 4// found in the LICENSE file. 5// 6 7// angletypes.inc : Inline definitions of some functions from angletypes.h 8 9namespace gl 10{ 11 12inline bool operator==(const Rectangle &a, const Rectangle &b) 13{ 14 return a.x == b.x && 15 a.y == b.y && 16 a.width == b.width && 17 a.height == b.height; 18} 19 20inline bool operator!=(const Rectangle &a, const Rectangle &b) 21{ 22 return !(a == b); 23} 24 25inline bool operator==(const SamplerState &a, const SamplerState &b) 26{ 27 return memcmp(&a, &b, sizeof(SamplerState)) == 0; 28} 29 30inline bool operator!=(const SamplerState &a, const SamplerState &b) 31{ 32 return !(a == b); 33} 34 35} // namespace gl 36