Lines Matching refs:clientVersion
159 static bool GetD3D11ES3FormatInfo(GLenum internalFormat, GLuint clientVersion, D3D11ES3FormatInfo *outFormatInfo)
423 static bool GetD3D11ES2FormatInfo(GLenum internalFormat, GLuint clientVersion, D3D11ES2FormatInfo *outFormatInfo)
873 static const SwizzleFormatInfo GetSwizzleFormatInfo(GLint internalFormat, GLuint clientVersion)
878 if (gl::IsFormatCompressed(internalFormat, clientVersion))
880 unsigned int compressedBitsPerBlock = gl::GetPixelBytes(internalFormat, clientVersion) * 8;
881 unsigned int blockSize = gl::GetCompressedBlockWidth(internalFormat, clientVersion) *
882 gl::GetCompressedBlockHeight(internalFormat, clientVersion);
887 maxBits = std::max(maxBits, gl::GetAlphaBits( internalFormat, clientVersion));
888 maxBits = std::max(maxBits, gl::GetRedBits( internalFormat, clientVersion));
889 maxBits = std::max(maxBits, gl::GetGreenBits( internalFormat, clientVersion));
890 maxBits = std::max(maxBits, gl::GetBlueBits( internalFormat, clientVersion));
891 maxBits = std::max(maxBits, gl::GetLuminanceBits(internalFormat, clientVersion));
892 maxBits = std::max(maxBits, gl::GetDepthBits( internalFormat, clientVersion));
897 GLenum componentType = gl::GetComponentType(internalFormat, clientVersion);
937 LoadImageFunction GetImageLoadFunction(GLenum internalFormat, GLenum type, GLuint clientVersion)
939 if (clientVersion == 2)
942 if (GetD3D11ES2FormatInfo(internalFormat, clientVersion, &d3d11FormatInfo))
952 else if (clientVersion == 3)
1149 DXGI_FORMAT GetTexFormat(GLenum internalFormat, GLuint clientVersion)
1151 if (clientVersion == 2)
1154 if (GetD3D11ES2FormatInfo(internalFormat, clientVersion, &d3d11FormatInfo))
1164 else if (clientVersion == 3)
1167 if (GetD3D11ES3FormatInfo(internalFormat, clientVersion, &d3d11FormatInfo))
1184 DXGI_FORMAT GetSRVFormat(GLenum internalFormat, GLuint clientVersion)
1186 if (clientVersion == 2)
1189 if (GetD3D11ES2FormatInfo(internalFormat, clientVersion, &d3d11FormatInfo))
1199 else if (clientVersion == 3)
1202 if (GetD3D11ES3FormatInfo(internalFormat, clientVersion, &d3d11FormatInfo))
1219 DXGI_FORMAT GetRTVFormat(GLenum internalFormat, GLuint clientVersion)
1221 if (clientVersion == 2)
1224 if (GetD3D11ES2FormatInfo(internalFormat, clientVersion, &d3d11FormatInfo))
1234 else if (clientVersion == 3)
1237 if (GetD3D11ES3FormatInfo(internalFormat, clientVersion, &d3d11FormatInfo))
1254 DXGI_FORMAT GetDSVFormat(GLenum internalFormat, GLuint clientVersion)
1256 if (clientVersion == 2)
1259 if (GetD3D11ES2FormatInfo(internalFormat, clientVersion, &d3d11FormatInfo))
1268 else if (clientVersion == 3)
1271 if (GetD3D11ES3FormatInfo(internalFormat, clientVersion, &d3d11FormatInfo))
1289 DXGI_FORMAT GetRenderableFormat(GLenum internalFormat, GLuint clientVersion)
1291 DXGI_FORMAT targetFormat = GetDSVFormat(internalFormat, clientVersion);
1293 targetFormat = GetRTVFormat(internalFormat, clientVersion);
1295 targetFormat = GetTexFormat(internalFormat, clientVersion);
1302 GLuint clientVersion = renderer->getCurrentClientVersion();
1303 if (gl::GetComponentCount(internalFormat, clientVersion) != 4 || !gl::IsColorRenderingSupported(internalFormat, renderer))
1305 const SwizzleFormatInfo &swizzleInfo = GetSwizzleFormatInfo(internalFormat, clientVersion);
1310 return GetTexFormat(internalFormat, clientVersion);
1316 GLuint clientVersion = renderer->getCurrentClientVersion();
1317 if (gl::GetComponentCount(internalFormat, clientVersion) != 4 || !gl::IsColorRenderingSupported(internalFormat, renderer))
1319 const SwizzleFormatInfo &swizzleInfo = GetSwizzleFormatInfo(internalFormat, clientVersion);
1324 return GetTexFormat(internalFormat, clientVersion);
1330 GLuint clientVersion = renderer->getCurrentClientVersion();
1331 if (gl::GetComponentCount(internalFormat, clientVersion) != 4 || !gl::IsColorRenderingSupported(internalFormat, renderer))
1333 const SwizzleFormatInfo &swizzleInfo = GetSwizzleFormatInfo(internalFormat, clientVersion);
1338 return GetTexFormat(internalFormat, clientVersion);
1638 GLenum GetInternalFormat(DXGI_FORMAT format, GLuint clientVersion)
1640 if (clientVersion == 2)
1649 else if (clientVersion == 3)