Lines Matching defs:width

67 static void genTestRects (vector<IVec4>& rects, int width, int height)
69 int curWidth = width;
75 rects.push_back(IVec4(width-curWidth, height-curHeight, curWidth, curHeight));
89 static void rectsToTriangles (const vector<IVec4>& rects, int width, int height, vector<Vec2>& positions, vector<deUint16>& indices)
91 const float w = float(width);
123 static void drawTestPattern (const glu::RenderContext& renderCtx, int width, int height)
146 gl.viewport (0, 0, width, height);
153 genTestRects (rects, width, height);
154 rectsToTriangles(rects, width, height, positions, indices);
199 static void blitStencilToColor2D (const glu::RenderContext& renderCtx, deUint32 srcTex, int width, int height)
259 gl.viewport(0, 0, width, height);
264 static void blitStencilToColor2DArray (const glu::RenderContext& renderCtx, deUint32 srcTex, int width, int height, int level)
324 gl.viewport(0, 0, width, height);
329 static void blitStencilToColorCube (const glu::RenderContext& renderCtx, deUint32 srcTex, const float* texCoord, int width, int height)
383 gl.viewport(0, 0, width, height);
530 const int width = 129;
535 TextureLevel uploadLevel (glu::mapGLInternalFormat(m_format), width, height);
536 TextureLevel readLevel (TextureFormat(TextureFormat::RGBA, TextureFormat::UNSIGNED_INT32), width, height);
537 TextureLevel stencilOnlyLevel (TextureFormat(TextureFormat::S, TextureFormat::UNSIGNED_INT8), width, height);
545 gl.texStorage2D(GL_TEXTURE_2D, 1, m_format, width, height);
550 gl.renderbufferStorage(GL_RENDERBUFFER, GL_R32UI, width, height);
556 blitStencilToColor2D(renderCtx, *depthStencilTex, width, height);
585 const int width = 41;
592 TextureLevel uploadLevel (glu::mapGLInternalFormat(m_format), width, height, levels);
598 const tcu::PixelBufferAccess levelAccess = tcu::getSubregion(uploadLevel.getAccess(), 0, 0, levelNdx, width, height, 1);
607 gl.texStorage3D(GL_TEXTURE_2D_ARRAY, 1, m_format, width, height, levels);
612 gl.renderbufferStorage(GL_RENDERBUFFER, GL_R32UI, width, height);
619 TextureLevel readLevel (TextureFormat(TextureFormat::RGBA, TextureFormat::UNSIGNED_INT32), width, height);
627 blitStencilToColor2DArray(renderCtx, *depthStencilTex, width, height, levelNdx);
632 TextureLevel reference(TextureFormat(TextureFormat::S, TextureFormat::UNSIGNED_INT8), width, height);
760 const int width = 117;
765 TextureLevel result (TextureFormat(TextureFormat::RGBA, TextureFormat::UNSIGNED_INT32), width, height);
766 TextureLevel reference (TextureFormat(TextureFormat::S, TextureFormat::UNSIGNED_INT8), width, height);
771 gl.renderbufferStorage(GL_RENDERBUFFER, GL_R32UI, width, height);
774 gl.texStorage2D(GL_TEXTURE_2D, 1, m_format, width, height);
781 drawTestPattern(renderCtx, width, height);
786 blitStencilToColor2D(renderCtx, *depthStencilTex, width, height);
817 const int width = 125;
823 TextureLevel result (TextureFormat(TextureFormat::RGBA, TextureFormat::UNSIGNED_INT32), width, height);
824 TextureLevel reference (TextureFormat(TextureFormat::S, TextureFormat::UNSIGNED_INT8), width, height);
829 gl.renderbufferStorage(GL_RENDERBUFFER, GL_R32UI, width, height);
832 gl.texStorage2D(GL_TEXTURE_2D, 1, m_format, width, height);
843 for (int x = 0; x < width; x += cellSize)
845 const int clearW = de::min(cellSize, width-x);
862 blitStencilToColor2D(renderCtx, *depthStencilTex, width, height);
891 const int width = 64;
896 TextureLevel uploadLevel (glu::mapGLInternalFormat(m_format), width, height);
897 TextureLevel readLevel (TextureFormat(TextureFormat::RGBA, TextureFormat::UNSIGNED_INT32), width, height);
898 TextureLevel stencilOnlyLevel (TextureFormat(TextureFormat::S, TextureFormat::UNSIGNED_INT8), width, height);
908 gl.texStorage2D(GL_TEXTURE_2D, 1, m_format, width, height);
915 gl.renderbufferStorage(GL_RENDERBUFFER, GL_R32UI, width, height);
921 blitStencilToColor2D(renderCtx, *depthStencilTex, width, height);
950 const int width = 128;
953 const int levelWidth = width>>levelNdx;
970 gl.texStorage2D(GL_TEXTURE_2D, deLog2Floor32(de::max(width, height))+1, m_format, width, height);