webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Protected Member Functions | Protected Attributes | List of all members
InstancingTest Class Reference
Inheritance diagram for InstancingTest:
ANGLETest InstancingTestAllConfigs InstancingTestNo9_3 InstancingTestPoints

Protected Member Functions

 InstancingTest ()
 
 ~InstancingTest () override
 
void SetUp () override
 
void setupDrawArraysTest (const std::string &vs)
 
void setupInstancedPointsTest ()
 
void runDrawArraysTest (GLint first, GLsizei count, GLsizei instanceCount, float *offset)
 
virtual void runDrawElementsTest (std::string vs, bool shouldAttribZeroBeInstanced)
 
void checkQuads ()
 
- Protected Member Functions inherited from ANGLETest
 ANGLETest ()
 
 ~ANGLETest ()
 
virtual void TearDown ()
 
virtual void swapBuffers ()
 
void setupQuadVertexBuffer (GLfloat positionAttribZ, GLfloat positionAttribXYScale)
 
void setupIndexedQuadVertexBuffer (GLfloat positionAttribZ, GLfloat positionAttribXYScale)
 
void drawQuad (GLuint program, const std::string &positionAttribName, GLfloat positionAttribZ)
 
void drawQuad (GLuint program, const std::string &positionAttribName, GLfloat positionAttribZ, GLfloat positionAttribXYScale)
 
void drawQuad (GLuint program, const std::string &positionAttribName, GLfloat positionAttribZ, GLfloat positionAttribXYScale, bool useVertexBuffer)
 
void drawIndexedQuad (GLuint program, const std::string &positionAttribName, GLfloat positionAttribZ)
 
void drawIndexedQuad (GLuint program, const std::string &positionAttribName, GLfloat positionAttribZ, GLfloat positionAttribXYScale)
 
void setWindowWidth (int width)
 
void setWindowHeight (int height)
 
void setConfigRedBits (int bits)
 
void setConfigGreenBits (int bits)
 
void setConfigBlueBits (int bits)
 
void setConfigAlphaBits (int bits)
 
void setConfigDepthBits (int bits)
 
void setConfigStencilBits (int bits)
 
void setMultisampleEnabled (bool enabled)
 
void setDebugEnabled (bool enabled)
 
void setNoErrorEnabled (bool enabled)
 
void setWebGLCompatibilityEnabled (bool webglCompatibility)
 
void setBindGeneratesResource (bool bindGeneratesResource)
 
int getClientMajorVersion () const
 
int getClientMinorVersion () const
 
EGLWindowgetEGLWindow () const
 
int getWindowWidth () const
 
int getWindowHeight () const
 
bool isMultisampleEnabled () const
 
EGLint getPlatformRenderer () const
 
void ignoreD3D11SDKLayersWarnings ()
 

Protected Attributes

PFNGLVERTEXATTRIBDIVISORANGLEPROC mVertexAttribDivisorANGLE
 
PFNGLDRAWARRAYSINSTANCEDANGLEPROC mDrawArraysInstancedANGLE
 
PFNGLDRAWELEMENTSINSTANCEDANGLEPROC mDrawElementsInstancedANGLE
 
std::vector< GLfloatmQuadVertices
 
std::vector< GLfloatmNonIndexedVertices
 
std::vector< GLfloatmTexcoords
 
std::vector< GLfloatmInstances
 
std::vector< GLushortmIndices
 
const GLfloat quadRadius = 0.30f
 
GLuint mProgram
 
GLuint mVertexBuffer
 

Additional Inherited Members

- Static Public Member Functions inherited from ANGLETest
static bool InitTestWindow ()
 
static bool DestroyTestWindow ()
 
static void SetWindowVisible (bool isVisible)
 
static bool eglDisplayExtensionEnabled (EGLDisplay display, const std::string &extName)
 
- Static Protected Member Functions inherited from ANGLETest
static std::array< Vector3, 6 > GetQuadVertices ()
 
static GLuint compileShader (GLenum type, const std::string &source)
 
static bool extensionEnabled (const std::string &extName)
 
static bool eglClientExtensionEnabled (const std::string &extName)
 

Constructor & Destructor Documentation

◆ InstancingTest()

InstancingTest::InstancingTest ( )
inlineprotected

◆ ~InstancingTest()

InstancingTest::~InstancingTest ( )
inlineoverrideprotected

Member Function Documentation

◆ checkQuads()

void InstancingTest::checkQuads ( )
inlineprotected

◆ runDrawArraysTest()

void InstancingTest::runDrawArraysTest ( GLint  first,
GLsizei  count,
GLsizei  instanceCount,
float *  offset 
)
inlineprotected

◆ runDrawElementsTest()

virtual void InstancingTest::runDrawElementsTest ( std::string  vs,
bool  shouldAttribZeroBeInstanced 
)
inlineprotectedvirtual

◆ SetUp()

void InstancingTest::SetUp ( )
inlineoverrideprotectedvirtual

Reimplemented from ANGLETest.

◆ setupDrawArraysTest()

void InstancingTest::setupDrawArraysTest ( const std::string vs)
inlineprotected

◆ setupInstancedPointsTest()

void InstancingTest::setupInstancedPointsTest ( )
inlineprotected

Member Data Documentation

◆ mDrawArraysInstancedANGLE

PFNGLDRAWARRAYSINSTANCEDANGLEPROC InstancingTest::mDrawArraysInstancedANGLE
protected

◆ mDrawElementsInstancedANGLE

PFNGLDRAWELEMENTSINSTANCEDANGLEPROC InstancingTest::mDrawElementsInstancedANGLE
protected

◆ mIndices

std::vector<GLushort> InstancingTest::mIndices
protected

◆ mInstances

std::vector<GLfloat> InstancingTest::mInstances
protected

◆ mNonIndexedVertices

std::vector<GLfloat> InstancingTest::mNonIndexedVertices
protected

◆ mProgram

GLuint InstancingTest::mProgram
protected

◆ mQuadVertices

std::vector<GLfloat> InstancingTest::mQuadVertices
protected

◆ mTexcoords

std::vector<GLfloat> InstancingTest::mTexcoords
protected

◆ mVertexAttribDivisorANGLE

PFNGLVERTEXATTRIBDIVISORANGLEPROC InstancingTest::mVertexAttribDivisorANGLE
protected

◆ mVertexBuffer

GLuint InstancingTest::mVertexBuffer
protected

◆ quadRadius

const GLfloat InstancingTest::quadRadius = 0.30f
protected

The documentation for this class was generated from the following file: