// // Copyright 2002 The ANGLE Project Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. //
// If overflow happens, clamp the value to UINT_MIN or UINT_MAX. // Return false if overflow happens. bool atoi_clamp(constchar *str, unsignedint *value);
namespace sh
{
// Keeps track of whether an implicit conversion from int/uint to float is possible. // These conversions are supported in desktop GLSL shaders only. // Also keeps track of which side of operation should be converted. enumclass ImplicitTypeConversion
{
Same,
Left,
Right,
Invalid,
};
class TIntermBlock; class TSymbolTable; class TIntermTyped;
// strtof_clamp is like strtof but // 1. it forces C locale, i.e. forcing '.' as decimal point. // 2. it sets the value to infinity if overflow happens. // 3. str should be guaranteed to be in the valid format for a floating point number as defined // by the grammar in the ESSL 3.00.6 spec section 4.1.4. // Return false if overflow happens. bool strtof_clamp(const std::string &str, float *value);
// Returns array brackets including size with outermost array size first, as specified in GLSL ES // 3.10 section 4.1.9.
ImmutableString ArrayString(const TType &type);
GLenum GetImageInternalFormatType(TLayoutImageInternalFormat iifq); // ESSL 1.00 shaders nest function body scope within function parameter scope bool IsSpecWithFunctionBodyNewScope(ShShaderSpec shaderSpec, int shaderVersion);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.