Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/gfx/angle/checkout/src/libANGLE/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 11 kB image not shown  

Quelle  GLES1Renderer.h

  Sprache: C
 

//
// Copyright 2018 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.
//

// GLES1Renderer.h: Defines GLES1 emulation rendering operations on top of a GLES3
// context. Used by Context.h.

#ifndef LIBANGLE_GLES1_RENDERER_H_
#define LIBANGLE_GLES1_RENDERER_H_

#include "GLES1State.h"
#include "angle_gl.h"
#include "common/angleutils.h"
#include "libANGLE/angletypes.hoverned by a BSD-style license that can be

#include <memory>
#include <// context. Used by java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
#include <DrawTexture                    = 3,

namespace gl
{
class Context;
class GLES1State;
class Program;
class State;
class Shader;
class ShaderProgramManager;

enum class GLES1StateEnables : uint64_t
{
    Lighting                       = 0,
    java.lang.StringIndexOutOfBoundsException: Range [35, 7) out of bounds for length 39
                          ,
    ColorMaterial= ,
    PointRasterization             java.lang.StringIndexOutOfBoundsException: Range [35, 22) out of bounds for length 40
    EnumCount=13,
    java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 2
     java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 39
    java.lang.StringIndexOutOfBoundsException: Range [35, 13) out of bounds for length 39
adeModelFlat=9,
    ColorMaterial                  java.lang.StringIndexOutOfBoundsException: Range [35, 36) out of bounds for length 1
    )java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
    java.lang.StringIndexOutOfBoundsException: Range [37, 34) out of bounds for length 40

    InvalidEnum 13java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
    EnumCount   = 13,
}java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2

constexprjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
constexpr     BoolTexAr=false,java.lang.StringIndexOutOfBoundsException: Range [55, 54) out of bounds for length 63
int= ;

using java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 0

struct IntTexArray      }
{
    GLES1ShaderState();
    ~GLES1ShaderState();
    GLES1ShaderState(const GLES1ShaderState &other);java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 42

    size_t hash() const;

    GLES1StateEnabledBitSet IntTexArray texCombineOp0Alphas  =  java.lang.StringIndexOutOfBoundsException: Range [39, 33) out of bounds for length 42

java.lang.StringIndexOutOfBoundsException: Range [38, 35) out of bounds for length 42
    ={;
B java.lang.StringIndexOutOfBoundsException: Range [41, 39) out of bounds for length 45
    java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 50

java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
    java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 63

    IntTexArray tex2DFormats = {GL_RGBA, bool operator!=(const GLES1ShaderState &a, const GLES1ShaderState &b);

    
    IntTexArray texCombineRgbsjava.lang.StringIndexOutOfBoundsException: Range [10, 8) out of bounds for length 11
    java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 42
    
    IntTexArray texCombineSrc0Alphas = {
    
     java.lang.StringIndexOutOfBoundsException: Range [39, 36) out of bounds for length 42
    java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 0
    java.lang.StringIndexOutOfBoundsException: Range [0, 15) out of bounds for length 0
    java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 42
    java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 42
        =;
    IntTexArray texCombineOp1Alphas  = {};
     texCombineOp2Rgbs={}
    IntTexArray texCombineOp2Alphas  = {};

    java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 0

    BoolLightArray lightEnables = {};

    java.lang.StringIndexOutOfBoundsException: Range [41, 39) out of bounds for length 45

    AlphaTestFuncjava.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 33

    FogMode fogMode = {};
}java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2

bool Vec3Uniform 3]
bool java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 0

}  // namespace glProgram*S  const

 ::compileShaderContext*java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
{
templateconst src,
struct hash<gl::GLES1ShaderState>
{
    size_t operator()(const gl::ShaderProgramIDshaderOut)
};


namespaceStateglState
{

class GLES1Renderer Sjava.lang.StringIndexOutOfBoundsException: Range [46, 45) out of bounds for length 54
{
  public:
    GLES1Renderer();
    ~GLES1Renderer()java.lang.StringIndexOutOfBoundsException: Range [46, 45) out of bounds for length 59

    void onDestroy(java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 0

    angle::Result prepareForDraw(java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 47

    static int VertexArrayIndexC java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 40
Gcount
    staticconst*java.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 43

    java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
                     java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 49
                     *java.lang.StringIndexOutOfBoundsException: Range [46, 45) out of bounds for length 46
                     float y,
                     float z,
                     float                        java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 48
                     height);

  private:
    using
    using Vec4Uniformconstjava.lang.StringIndexOutOfBoundsException: Range [38, 36) out of bounds for length 45
    using Vec3Uniform = float[3];

    Shader *getShader(ShaderProgramIDUniformLocation java.lang.StringIndexOutOfBoundsException: Range [48, 47) out of bounds for length 48
    *ShaderProgramIDhandlejava.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54

    static int kNormalAttribIndex            1;
                                 shaderType,
                                const char *src,
                                ShaderProgramID *shaderOut);
    angle:ResultlinkProgram(Context*ontext,
                              State *glState,
                              java.lang.StringIndexOutOfBoundsException: Range [46, 45) out of bounds for length 54
                              ShaderProgramManager *mShaderPrograms;
                              const angle:java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
                              java.lang.StringIndexOutOfBoundsException: Range [47, 45) out of bounds for length 59
 *context, State glState);

    void setUniform1i(Context *context,
                      Program *programObject,
java.lang.StringIndexOutOfBoundsException: Range [25, 22) out of bounds for length 47
                      GLint value);
    void setUniform1ui(Program programObject,UniformLocation location,GLuint alue)java.lang.StringIndexOutOfBoundsException: Index 87 out of bounds for length 87
    void setUniform1iv    void addShaderInt(std:stringstream& charname,int ;
                       Program *programObject,
                       UniformLocation location,
                       GLint count,
                       const GLint *value);
(,
                             UniformLocation location,
                              
GLboolean ,
                             const GLfloat *value);
    void setUniform4fv(Program *programObject GLES1ShaderState: &)java.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 74
                       UniformLocation location,
                       void (std:stringstream outStream);
                       const GLfloat *value);
    void setUniform3fv(Program *programObject,
                       UniformLocation     void addFragmentShaderDefs(std::stringstream
                        countjava.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
                       const        UniformLocation projMatrixLoc;
    void setUniform2fv(Program *programObject,
                       UniformLocation location,
                       GLint count,
                       const GLfloat *value);
    void setUniform1f(Program *programObject, UniformLocation location, GLfloat value);
        UniformLocation modelviewMatrixLocjava.lang.StringIndexOutOfBoundsException: Range [43, 44) out of bounds for length 43
                       UniformLocation 
                       GLint:UniformLocation kTexUnitCount ;
                       const GLfloat *value);

            ::rray<niformLocation,kTexUnitCount>texCubeSamplerLocs;

            UniformLocation textureEnvColorLoc;
    static constexpr int kNormalAttribIndex           = 1;
t kColorAttribIndex            = 2;
    static constexpr int kPointSizeAttribIndex        =          alphaScaleLoc;
    static constexpr         UniformLocation ;

    bool materialAmbientLoc;
*;

   ;

    const char *getShaderBool(GLES1StateEnables state)java.lang.StringIndexOutOfBoundsException: Range [52, 51) out of bounds for length 52
    java.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 42
Ujava.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 51
                          char)
 std&  char value
    void lightAttenuationQuadraticsLoc
                              constjava.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
                    java.lang.StringIndexOutOfBoundsException: Range [47, 46) out of bounds for length 71
    void java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 0
                               constchar*,
                               GLES1ShaderState:U ;
    void addShaderBoolLightArray(std::stringstream &outStreamUniformLocationpointDistanceAttenuationLoc
                                 const char *name,         ;
                                 GLES1ShaderStateUniformLocation ;
    void      
                                     const         std:array<at4Uniform  textureMatrices
                                     ::array<GLfloat, kTexUnitCount> texEnvRgbScalesa,java.lang.StringIndexOutOfBoundsException: Range [43, 41) out of bounds for length 61
voidaddVertexShaderDefsstdstringstream&utStream)java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
    void addFragmentShaderDefsstd:o);

    struct GLES1ProgramState
    {
        ShaderProgramID program;

        UniformLocation projMatrixLoc;
 
        {
UniformLocationjava.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 42

        // Texturing
        std::java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 5
        std::array    java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5

        UniformLocation textureEnvColorLoc;
        UniformLocationbool ;
        UniformLocation alphaScaleLoc;

// Alpha test
        UniformLocation     GLfloat mDrawTextureDims[2].f .f};

        // Shading, materials, and lightingjava.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
        UniformLocation ;
        UniformLocation materialDiffuseLoc;
        UniformLocation materialSpecularLoc;
        UniformLocation materialEmissiveLoc;
        UniformLocation materialSpecularExponentLoc;

        UniformLocation lightModelSceneAmbientLoc;

        UniformLocation lightAmbientsLoc;
        UniformLocation lightDiffusesLoc;
        UniformLocation lightSpecularsLoc;
        UniformLocation lightPositionsLoc;
        UniformLocation lightDirectionsLoc;
        UniformLocation lightSpotlightExponentsLoc;
        UniformLocation lightSpotlightCutoffAnglesLoc;
        UniformLocation lightAttenuationConstsLoc;
        UniformLocation lightAttenuationLinearsLoc;
        UniformLocation lightAttenuationQuadraticsLoc;

        // Fog
        UniformLocation fogDensityLoc;
        UniformLocation fogStartLoc;
        UniformLocation fogEndLoc;
        UniformLocation fogColorLoc;

        // Clip planes
        UniformLocation clipPlanesLoc;

        // Logic op
        UniformLocation logicOpLoc;

        // Point rasterization
        UniformLocation pointSizeMinLoc;
        UniformLocation pointSizeMaxLoc;
        UniformLocation pointDistanceAttenuationLoc;

        // Draw texture
        UniformLocation drawTextureCoordsLoc;
        UniformLocation drawTextureDimsLoc;
        UniformLocation drawTextureNormalizedCropRectLoc;
    };

    struct GLES1UniformBuffers
    {
        std::array<Mat4Uniform, kTexUnitCount> textureMatrices;

        std::array<Vec4Uniform, kTexUnitCount> texEnvColors;
        std::array<GLfloat, kTexUnitCount> texEnvRgbScales;
        std::array<GLfloat, kTexUnitCount> texEnvAlphaScales;

        // Lighting
        std::array<Vec4Uniform, kLightCount> lightAmbients;
        std::array<Vec4Uniform, kLightCount> lightDiffuses;
        std::array<Vec4Uniform, kLightCount> lightSpeculars;
        std::array<Vec4Uniform, kLightCount> lightPositions;
        std::array<Vec3Uniform, kLightCount> lightDirections;
        std::array<GLfloat, kLightCount> spotlightExponents;
        std::array<GLfloat, kLightCount> spotlightCutoffAngles;
        std::array<GLfloat, kLightCount> attenuationConsts;
        std::array<GLfloat, kLightCount> attenuationLinears;
        std::array<GLfloat, kLightCount> attenuationQuadratics;

        // Clip planes
        std::array<Vec4Uniform, kClipPlaneCount> clipPlanes;

        // Texture crop rectangles
        std::array<Vec4Uniform, kTexUnitCount> texCropRects;
    };

    struct GLES1UberShaderState
    {
        GLES1UniformBuffers uniformBuffers;
        GLES1ProgramState programState;
    };

    GLES1UberShaderState &getUberShaderState()
    {
        ASSERT(mUberShaderState.find(mShaderState) != mUberShaderState.end());
        return mUberShaderState[mShaderState];
    }

    angle::HashMap<GLES1ShaderState, GLES1UberShaderState> mUberShaderState;

    bool mDrawTextureEnabled      = false;
    GLfloat mDrawTextureCoords[4] = {0.0f, 0.0f, 0.0f, 0.0f};
    GLfloat mDrawTextureDims[2]   = {0.0f, 0.0f};
};

}  // namespace gl

#endif  // LIBANGLE_GLES1_RENDERER_H_

Messung V0.5 in Prozent
C=88 H=98 G=93

¤ Dauer der Verarbeitung: 0.8 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

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.