2 * Copyright (c) 2007-2010 SlimDX Group
\r
4 * Permission is hereby granted, free of charge, to any person obtaining a copy
\r
5 * of this software and associated documentation files (the "Software"), to deal
\r
6 * in the Software without restriction, including without limitation the rights
\r
7 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
\r
8 * copies of the Software, and to permit persons to whom the Software is
\r
9 * furnished to do so, subject to the following conditions:
\r
11 * The above copyright notice and this permission notice shall be included in
\r
12 * all copies or substantial portions of the Software.
\r
14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
\r
15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
\r
16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
\r
17 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
\r
18 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
\r
19 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
\r
28 namespace Direct3D10
\r
31 /// Describes a query object.
\r
33 /// <unmanaged>D3D10_QUERY_DESC</unmanaged>
\r
34 public value class QueryDescription : System::IEquatable<QueryDescription>
\r
38 QueryFlags m_MiscFlags;
\r
41 QueryDescription( const D3D10_QUERY_DESC& native );
\r
43 D3D10_QUERY_DESC CreateNativeVersion();
\r
47 /// Gets or sets the query type.
\r
49 property QueryType Type
\r
52 void set( QueryType value );
\r
56 /// Gets or sets the query flags.
\r
58 property QueryFlags Flags
\r
61 void set( QueryFlags value );
\r
65 /// Constructs a new QueryDescription object.
\r
67 /// <param name="type">The query type.</param>
\r
68 /// <param name="flags">Query options.</param>
\r
69 QueryDescription( QueryType type, QueryFlags flags );
\r
72 /// Tests for equality between two QueryDescriptions.
\r
74 /// <param name="left">The first value to compare.</param>
\r
75 /// <param name="right">The second value to compare.</param>
\r
76 /// <returns><c>true</c> if <paramref name="left"/> has the same value as <paramref name="right"/>; otherwise, <c>false</c>.</returns>
\r
77 static bool operator == ( QueryDescription left, QueryDescription right );
\r
80 /// Tests for inequality between two QueryDescriptions.
\r
82 /// <param name="left">The first value to compare.</param>
\r
83 /// <param name="right">The second value to compare.</param>
\r
84 /// <returns><c>true</c> if <paramref name="left"/> has a different value than <paramref name="right"/>; otherwise, <c>false</c>.</returns>
\r
85 static bool operator != ( QueryDescription left, QueryDescription right );
\r
88 /// Returns the hash code for this instance.
\r
90 /// <returns>A 32-bit signed integer hash code.</returns>
\r
91 virtual int GetHashCode() override;
\r
94 /// Returns a value indicating whether this instance is equal to the specified object.
\r
96 /// <param name="obj">An object to compare with this instance.</param>
\r
97 /// <returns><c>true</c> if <paramref name="obj"/> has the same value as this instance; otherwise, <c>false</c>.</returns>
\r
98 virtual bool Equals( System::Object^ obj ) override;
\r
101 /// Returns a value indicating whether this instance is equal to the specified object.
\r
103 /// <param name="other">A <see cref="QueryDescription"/> to compare with this instance.</param>
\r
104 /// <returns><c>true</c> if <paramref name="other"/> has the same value as this instance; otherwise, <c>false</c>.</returns>
\r
105 virtual bool Equals( QueryDescription other );
\r
108 /// Returns a value indicating whether the two BufferDescriptions are equivalent.
\r
110 /// <param name="value1">The first value to compare.</param>
\r
111 /// <param name="value2">The second value to compare.</param>
\r
112 /// <returns><c>true</c> if <paramref name="value1"/> has the same value as <paramref name="value2"/>; otherwise, <c>false</c>.</returns>
\r
113 static bool Equals( QueryDescription% value1, QueryDescription% value2 );
\r