OLD | NEW |
1 // Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "main.h" | 5 #include "main.h" |
6 #include "utils.h" | 6 #include "utils.h" |
7 #include "testbase.h" | 7 #include "testbase.h" |
8 | 8 |
9 | 9 |
10 namespace glbench { | 10 namespace glbench { |
11 | 11 |
12 class AttributeFetchShaderTest : public DrawElementsTestFunc { | 12 class AttributeFetchShaderTest : public DrawElementsTestFunc { |
13 public: | 13 public: |
14 AttributeFetchShaderTest() {} | 14 AttributeFetchShaderTest() {} |
15 virtual ~AttributeFetchShaderTest() {} | 15 virtual ~AttributeFetchShaderTest() {} |
16 virtual bool Run(); | 16 virtual bool Run(); |
| 17 virtual const char* Name() const { return "attribute_fetch_shader"; } |
17 | 18 |
18 private: | 19 private: |
19 DISALLOW_COPY_AND_ASSIGN(AttributeFetchShaderTest); | 20 DISALLOW_COPY_AND_ASSIGN(AttributeFetchShaderTest); |
20 }; | 21 }; |
21 | 22 |
22 | 23 |
23 const char *simple_vertex_shader = | 24 const char *simple_vertex_shader = |
24 "attribute vec4 c1;" | 25 "attribute vec4 c1;" |
25 "void main() {" | 26 "void main() {" |
26 " gl_Position = c1;" | 27 " gl_Position = c1;" |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 glDeleteBuffers(1, &vertex_buffer); | 140 glDeleteBuffers(1, &vertex_buffer); |
140 delete[] vertices; | 141 delete[] vertices; |
141 return true; | 142 return true; |
142 } | 143 } |
143 | 144 |
144 TestBase* GetAttributeFetchShaderTest() { | 145 TestBase* GetAttributeFetchShaderTest() { |
145 return new AttributeFetchShaderTest(); | 146 return new AttributeFetchShaderTest(); |
146 } | 147 } |
147 | 148 |
148 } // namespace glbench | 149 } // namespace glbench |
OLD | NEW |