OLD | NEW |
1 // | 1 // |
2 // Copyright (c) 2002-2012 The ANGLE Project Authors. All rights reserved. | 2 // Copyright (c) 2002-2012 The ANGLE Project Authors. All rights reserved. |
3 // Use of this source code is governed by a BSD-style license that can be | 3 // Use of this source code is governed by a BSD-style license that can be |
4 // found in the LICENSE file. | 4 // found in the LICENSE file. |
5 // | 5 // |
6 | 6 |
7 // | 7 // |
8 // Implement the top-level of interface to the compiler, | 8 // Implement the top-level of interface to the compiler, |
9 // as defined in ShaderLang.h | 9 // as defined in ShaderLang.h |
10 // | 10 // |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 resources->MaxCombinedTextureImageUnits = 8; | 120 resources->MaxCombinedTextureImageUnits = 8; |
121 resources->MaxTextureImageUnits = 8; | 121 resources->MaxTextureImageUnits = 8; |
122 resources->MaxFragmentUniformVectors = 16; | 122 resources->MaxFragmentUniformVectors = 16; |
123 resources->MaxDrawBuffers = 1; | 123 resources->MaxDrawBuffers = 1; |
124 | 124 |
125 // Extensions. | 125 // Extensions. |
126 resources->OES_standard_derivatives = 0; | 126 resources->OES_standard_derivatives = 0; |
127 resources->OES_EGL_image_external = 0; | 127 resources->OES_EGL_image_external = 0; |
128 resources->ARB_texture_rectangle = 0; | 128 resources->ARB_texture_rectangle = 0; |
129 resources->EXT_draw_buffers = 0; | 129 resources->EXT_draw_buffers = 0; |
| 130 resources->EXT_frag_depth = 0; |
130 | 131 |
131 // Disable highp precision in fragment shader by default. | 132 // Disable highp precision in fragment shader by default. |
132 resources->FragmentPrecisionHigh = 0; | 133 resources->FragmentPrecisionHigh = 0; |
133 | 134 |
134 // Disable name hashing by default. | 135 // Disable name hashing by default. |
135 resources->HashFunction = NULL; | 136 resources->HashFunction = NULL; |
136 | 137 |
137 resources->ArrayIndexClampingStrategy = SH_CLAMP_WITH_CLAMP_INTRINSIC; | 138 resources->ArrayIndexClampingStrategy = SH_CLAMP_WITH_CLAMP_INTRINSIC; |
138 } | 139 } |
139 | 140 |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
363 if (!translator) return; | 364 if (!translator) return; |
364 | 365 |
365 switch(pname) | 366 switch(pname) |
366 { | 367 { |
367 case SH_ACTIVE_UNIFORMS_ARRAY: | 368 case SH_ACTIVE_UNIFORMS_ARRAY: |
368 *params = (void*)&translator->getUniforms(); | 369 *params = (void*)&translator->getUniforms(); |
369 break; | 370 break; |
370 default: UNREACHABLE(); | 371 default: UNREACHABLE(); |
371 } | 372 } |
372 } | 373 } |
OLD | NEW |