Lines Matching refs:internalformat

172 	bool IsUnsizedInternalFormat(GLint internalformat)
174 switch(internalformat)
199 GLenum GetBaseInternalFormat(GLint internalformat)
201 switch(internalformat)
275 UNREACHABLE(internalformat);
282 GLint GetSizedInternalFormat(GLint internalformat, GLenum type)
284 if(!IsUnsizedInternalFormat(internalformat))
286 return internalformat;
289 switch(internalformat)
441 UNREACHABLE(internalformat);
1163 ImageImplementation(Texture *parentTexture, GLsizei width, GLsizei height, GLint internalformat)
1164 : Image(parentTexture, width, height, internalformat) {}
1165 ImageImplementation(Texture *parentTexture, GLsizei width, GLsizei height, GLsizei depth, int border, GLint internalformat)
1166 : Image(parentTexture, width, height, depth, border, internalformat) {}
1167 ImageImplementation(GLsizei width, GLsizei height, GLint internalformat, int pitchP)
1168 : Image(width, height, internalformat, pitchP) {}
1169 ImageImplementation(GLsizei width, GLsizei height, GLint internalformat, int multiSampleDepth, bool lockable)
1170 : Image(width, height, internalformat, multiSampleDepth, lockable) {}
1193 Image *Image::create(Texture *parentTexture, GLsizei width, GLsizei height, GLint internalformat)
1195 return new ImageImplementation(parentTexture, width, height, internalformat);
1198 Image *Image::create(Texture *parentTexture, GLsizei width, GLsizei height, GLsizei depth, int border, GLint internalformat)
1200 return new ImageImplementation(parentTexture, width, height, depth, border, internalformat);
1203 Image *Image::create(GLsizei width, GLsizei height, GLint internalformat, int pitchP)
1205 return new ImageImplementation(width, height, internalformat, pitchP);
1208 Image *Image::create(GLsizei width, GLsizei height, GLint internalformat, int multiSampleDepth, bool lockable)
1210 return new ImageImplementation(width, height, internalformat, multiSampleDepth, lockable);
1482 switch(internalformat)
1492 UNREACHABLE(internalformat);
1495 ASSERT_OR_RETURN(internalformat == GL_RGBA8_SNORM && getExternalFormat() == sw::FORMAT_A8B8G8R8_SNORM);
1498 ASSERT_OR_RETURN(internalformat == GL_RGBA4 && getExternalFormat() == sw::FORMAT_A8B8G8R8);
1501 ASSERT_OR_RETURN(internalformat == GL_RGB5_A1 && getExternalFormat() == sw::FORMAT_A8B8G8R8);
1504 switch(internalformat)
1513 UNREACHABLE(internalformat);
1517 ASSERT_OR_RETURN(internalformat == GL_RGBA16F && getExternalFormat() == sw::FORMAT_A16B16G16R16F);
1520 switch(internalformat)
1524 default: UNREACHABLE(internalformat);
1533 ASSERT_OR_RETURN(internalformat == GL_RGBA8UI && getExternalFormat() == sw::FORMAT_A8B8G8R8UI);
1536 ASSERT_OR_RETURN(internalformat == GL_RGBA8I && getExternalFormat() == sw::FORMAT_A8B8G8R8I);
1539 ASSERT_OR_RETURN(internalformat == GL_RGBA16UI && getExternalFormat() == sw::FORMAT_A16B16G16R16UI);
1542 ASSERT_OR_RETURN(internalformat == GL_RGBA16I && getExternalFormat() == sw::FORMAT_A16B16G16R16I);
1545 ASSERT_OR_RETURN(internalformat == GL_RGBA32UI && getExternalFormat() == sw::FORMAT_A32B32G32R32UI);
1548 ASSERT_OR_RETURN(internalformat == GL_RGBA32I && getExternalFormat() == sw::FORMAT_A32B32G32R32I);
1551 ASSERT_OR_RETURN(internalformat == GL_RGB10_A2UI && getExternalFormat() == sw::FORMAT_A2B10G10R10UI);
1560 ASSERT_OR_RETURN(internalformat == GL_BGRA8_EXT && getExternalFormat() == sw::FORMAT_A8R8G8B8);
1571 switch(internalformat)
1576 default: UNREACHABLE(internalformat);
1579 ASSERT_OR_RETURN(internalformat == GL_RGB8_SNORM && getExternalFormat() == sw::FORMAT_X8B8G8R8_SNORM);
1582 ASSERT_OR_RETURN(internalformat == GL_RGB565 && getExternalFormat() == sw::FORMAT_R5G6B5);
1585 ASSERT_OR_RETURN(internalformat == GL_R11F_G11F_B10F && getExternalFormat() == sw::FORMAT_X16B16G16R16F_UNSIGNED);
1588 ASSERT_OR_RETURN(internalformat == GL_RGB9_E5 && getExternalFormat() == sw::FORMAT_X16B16G16R16F_UNSIGNED);
1592 switch(internalformat)
1602 UNREACHABLE(internalformat);
1605 switch(internalformat)
1618 UNREACHABLE(internalformat);
1627 ASSERT_OR_RETURN(internalformat == GL_RGB8UI && getExternalFormat() == sw::FORMAT_X8B8G8R8UI);
1630 ASSERT_OR_RETURN(internalformat == GL_RGB8I && getExternalFormat() == sw::FORMAT_X8B8G8R8I);
1633 ASSERT_OR_RETURN(internalformat == GL_RGB16UI && getExternalFormat() == sw::FORMAT_X16B16G16R16UI);
1636 ASSERT_OR_RETURN(internalformat == GL_RGB16I && getExternalFormat() == sw::FORMAT_X16B16G16R16I);
1639 ASSERT_OR_RETURN(internalformat == GL_RGB32UI && getExternalFormat() == sw::FORMAT_X32B32G32R32UI);
1642 ASSERT_OR_RETURN(internalformat == GL_RGB32I && getExternalFormat() == sw::FORMAT_X32B32G32R32I);
1656 switch(internalformat)
1660 default: UNREACHABLE(internalformat);
1669 ASSERT_OR_RETURN(internalformat == GL_RG8UI && getExternalFormat() == sw::FORMAT_G8R8UI);
1672 ASSERT_OR_RETURN(internalformat == GL_RG8I && getExternalFormat() == sw::FORMAT_G8R8I);
1675 ASSERT_OR_RETURN(internalformat == GL_RG16UI && getExternalFormat() == sw::FORMAT_G16R16UI);
1678 ASSERT_OR_RETURN(internalformat == GL_RG16I && getExternalFormat() == sw::FORMAT_G16R16I);
1681 ASSERT_OR_RETURN(internalformat == GL_RG32UI && getExternalFormat() == sw::FORMAT_G32R32UI);
1684 ASSERT_OR_RETURN(internalformat == GL_RG32I && getExternalFormat() == sw::FORMAT_G32R32I);
1698 switch(internalformat)
1702 default: UNREACHABLE(internalformat);
1711 ASSERT_OR_RETURN(internalformat == GL_R8UI && getExternalFormat() == sw::FORMAT_R8UI);
1714 ASSERT_OR_RETURN(internalformat == GL_R8I && getExternalFormat() == sw::FORMAT_R8I);
1717 ASSERT_OR_RETURN(internalformat == GL_R16UI && getExternalFormat() == sw::FORMAT_R16UI);
1720 ASSERT_OR_RETURN(internalformat == GL_R16I && getExternalFormat() == sw::FORMAT_R16I);
1723 ASSERT_OR_RETURN(internalformat == GL_R32UI && getExternalFormat() == sw::FORMAT_R32UI);
1726 ASSERT_OR_RETURN(internalformat == GL_R32I && getExternalFormat() == sw::FORMAT_R32I);
1754 switch(internalformat)
1758 default: UNREACHABLE(internalformat);
1762 ASSERT_OR_RETURN(internalformat == GL_LUMINANCE_ALPHA16F_EXT);
1774 switch(internalformat)
1780 default: UNREACHABLE(internalformat);
1784 ASSERT_OR_RETURN(internalformat == GL_LUMINANCE16F_EXT || internalformat == GL_ALPHA16F_EXT);
1845 int inputPitch = gl::ComputeCompressedPitch(width, internalformat);