Lines Matching refs:sw
1252 sw::Format ConvertReadFormatType(GLenum format, GLenum type) in ConvertReadFormatType()
1259 case GL_UNSIGNED_BYTE: return sw::FORMAT_L8; in ConvertReadFormatType()
1260 case GL_HALF_FLOAT: return sw::FORMAT_L16F; in ConvertReadFormatType()
1261 case GL_HALF_FLOAT_OES: return sw::FORMAT_L16F; in ConvertReadFormatType()
1262 case GL_FLOAT: return sw::FORMAT_L32F; in ConvertReadFormatType()
1269 case GL_UNSIGNED_BYTE: return sw::FORMAT_A8L8; in ConvertReadFormatType()
1270 case GL_HALF_FLOAT: return sw::FORMAT_A16L16F; in ConvertReadFormatType()
1271 case GL_HALF_FLOAT_OES: return sw::FORMAT_A16L16F; in ConvertReadFormatType()
1272 case GL_FLOAT: return sw::FORMAT_A32L32F; in ConvertReadFormatType()
1279 case GL_UNSIGNED_BYTE: return sw::FORMAT_A8B8G8R8; in ConvertReadFormatType()
1280 case GL_UNSIGNED_SHORT_4_4_4_4: return sw::FORMAT_R4G4B4A4; in ConvertReadFormatType()
1281 case GL_UNSIGNED_SHORT_5_5_5_1: return sw::FORMAT_R5G5B5A1; in ConvertReadFormatType()
1282 case GL_HALF_FLOAT: return sw::FORMAT_A16B16G16R16F; in ConvertReadFormatType()
1283 case GL_HALF_FLOAT_OES: return sw::FORMAT_A16B16G16R16F; in ConvertReadFormatType()
1284 case GL_FLOAT: return sw::FORMAT_A32B32G32R32F; in ConvertReadFormatType()
1285 case GL_UNSIGNED_INT_2_10_10_10_REV_EXT: return sw::FORMAT_A2B10G10R10; in ConvertReadFormatType()
1292 case GL_UNSIGNED_BYTE: return sw::FORMAT_A8R8G8B8; in ConvertReadFormatType()
1293 case GL_UNSIGNED_SHORT_4_4_4_4_REV_EXT: return sw::FORMAT_A4R4G4B4; in ConvertReadFormatType()
1294 case GL_UNSIGNED_SHORT_1_5_5_5_REV_EXT: return sw::FORMAT_A1R5G5B5; in ConvertReadFormatType()
1301 case GL_UNSIGNED_BYTE: return sw::FORMAT_B8G8R8; in ConvertReadFormatType()
1302 case GL_UNSIGNED_SHORT_5_6_5: return sw::FORMAT_R5G6B5; in ConvertReadFormatType()
1303 case GL_HALF_FLOAT: return sw::FORMAT_B16G16R16F; in ConvertReadFormatType()
1304 case GL_HALF_FLOAT_OES: return sw::FORMAT_B16G16R16F; in ConvertReadFormatType()
1305 case GL_FLOAT: return sw::FORMAT_B32G32R32F; in ConvertReadFormatType()
1312 case GL_UNSIGNED_BYTE: return sw::FORMAT_G8R8; in ConvertReadFormatType()
1313 case GL_HALF_FLOAT: return sw::FORMAT_G16R16F; in ConvertReadFormatType()
1314 case GL_HALF_FLOAT_OES: return sw::FORMAT_G16R16F; in ConvertReadFormatType()
1315 case GL_FLOAT: return sw::FORMAT_G32R32F; in ConvertReadFormatType()
1322 case GL_UNSIGNED_BYTE: return sw::FORMAT_R8; in ConvertReadFormatType()
1323 case GL_HALF_FLOAT: return sw::FORMAT_R16F; in ConvertReadFormatType()
1324 case GL_HALF_FLOAT_OES: return sw::FORMAT_R16F; in ConvertReadFormatType()
1325 case GL_FLOAT: return sw::FORMAT_R32F; in ConvertReadFormatType()
1332 case GL_UNSIGNED_BYTE: return sw::FORMAT_A8; in ConvertReadFormatType()
1333 case GL_HALF_FLOAT: return sw::FORMAT_A16F; in ConvertReadFormatType()
1334 case GL_HALF_FLOAT_OES: return sw::FORMAT_A16F; in ConvertReadFormatType()
1335 case GL_FLOAT: return sw::FORMAT_A32F; in ConvertReadFormatType()
1342 case GL_INT: return sw::FORMAT_R32I; in ConvertReadFormatType()
1343 case GL_UNSIGNED_INT: return sw::FORMAT_R32UI; in ConvertReadFormatType()
1350 case GL_INT: return sw::FORMAT_G32R32I; in ConvertReadFormatType()
1351 case GL_UNSIGNED_INT: return sw::FORMAT_G32R32UI; in ConvertReadFormatType()
1358 case GL_INT: return sw::FORMAT_X32B32G32R32I; in ConvertReadFormatType()
1359 case GL_UNSIGNED_INT: return sw::FORMAT_X32B32G32R32UI; in ConvertReadFormatType()
1366 case GL_INT: return sw::FORMAT_A32B32G32R32I; in ConvertReadFormatType()
1367 case GL_UNSIGNED_INT: return sw::FORMAT_A32B32G32R32UI; in ConvertReadFormatType()
1368 case GL_UNSIGNED_INT_2_10_10_10_REV: return sw::FORMAT_A2B10G10R10UI; in ConvertReadFormatType()
1375 case GL_UNSIGNED_SHORT: return sw::FORMAT_D16; in ConvertReadFormatType()
1376 case GL_UNSIGNED_INT_24_8_OES: return sw::FORMAT_D24X8; in ConvertReadFormatType()
1377 case GL_FLOAT: return sw::FORMAT_D32F_LOCKABLE; in ConvertReadFormatType()
1384 case GL_UNSIGNED_BYTE: return sw::FORMAT_S8; in ConvertReadFormatType()
1394 return sw::FORMAT_NULL; in ConvertReadFormatType()
2072 sw::DepthCompareMode ConvertDepthComparison(GLenum comparison) in ConvertDepthComparison()
2076 case GL_NEVER: return sw::DEPTH_NEVER; in ConvertDepthComparison()
2077 case GL_ALWAYS: return sw::DEPTH_ALWAYS; in ConvertDepthComparison()
2078 case GL_LESS: return sw::DEPTH_LESS; in ConvertDepthComparison()
2079 case GL_LEQUAL: return sw::DEPTH_LESSEQUAL; in ConvertDepthComparison()
2080 case GL_EQUAL: return sw::DEPTH_EQUAL; in ConvertDepthComparison()
2081 case GL_GREATER: return sw::DEPTH_GREATER; in ConvertDepthComparison()
2082 case GL_GEQUAL: return sw::DEPTH_GREATEREQUAL; in ConvertDepthComparison()
2083 case GL_NOTEQUAL: return sw::DEPTH_NOTEQUAL; in ConvertDepthComparison()
2087 return sw::DEPTH_ALWAYS; in ConvertDepthComparison()
2090 sw::StencilCompareMode ConvertStencilComparison(GLenum comparison) in ConvertStencilComparison()
2094 case GL_NEVER: return sw::STENCIL_NEVER; in ConvertStencilComparison()
2095 case GL_ALWAYS: return sw::STENCIL_ALWAYS; in ConvertStencilComparison()
2096 case GL_LESS: return sw::STENCIL_LESS; in ConvertStencilComparison()
2097 case GL_LEQUAL: return sw::STENCIL_LESSEQUAL; in ConvertStencilComparison()
2098 case GL_EQUAL: return sw::STENCIL_EQUAL; in ConvertStencilComparison()
2099 case GL_GREATER: return sw::STENCIL_GREATER; in ConvertStencilComparison()
2100 case GL_GEQUAL: return sw::STENCIL_GREATEREQUAL; in ConvertStencilComparison()
2101 case GL_NOTEQUAL: return sw::STENCIL_NOTEQUAL; in ConvertStencilComparison()
2105 return sw::STENCIL_ALWAYS; in ConvertStencilComparison()
2108 sw::Color<float> ConvertColor(es2::Color color) in ConvertColor()
2110 return sw::Color<float>(color.red, color.green, color.blue, color.alpha); in ConvertColor()
2113 sw::BlendFactor ConvertBlendFunc(GLenum blend) in ConvertBlendFunc()
2117 case GL_ZERO: return sw::BLEND_ZERO; in ConvertBlendFunc()
2118 case GL_ONE: return sw::BLEND_ONE; in ConvertBlendFunc()
2119 case GL_SRC_COLOR: return sw::BLEND_SOURCE; in ConvertBlendFunc()
2120 case GL_ONE_MINUS_SRC_COLOR: return sw::BLEND_INVSOURCE; in ConvertBlendFunc()
2121 case GL_DST_COLOR: return sw::BLEND_DEST; in ConvertBlendFunc()
2122 case GL_ONE_MINUS_DST_COLOR: return sw::BLEND_INVDEST; in ConvertBlendFunc()
2123 case GL_SRC_ALPHA: return sw::BLEND_SOURCEALPHA; in ConvertBlendFunc()
2124 case GL_ONE_MINUS_SRC_ALPHA: return sw::BLEND_INVSOURCEALPHA; in ConvertBlendFunc()
2125 case GL_DST_ALPHA: return sw::BLEND_DESTALPHA; in ConvertBlendFunc()
2126 case GL_ONE_MINUS_DST_ALPHA: return sw::BLEND_INVDESTALPHA; in ConvertBlendFunc()
2127 case GL_CONSTANT_COLOR: return sw::BLEND_CONSTANT; in ConvertBlendFunc()
2128 case GL_ONE_MINUS_CONSTANT_COLOR: return sw::BLEND_INVCONSTANT; in ConvertBlendFunc()
2129 case GL_CONSTANT_ALPHA: return sw::BLEND_CONSTANTALPHA; in ConvertBlendFunc()
2130 case GL_ONE_MINUS_CONSTANT_ALPHA: return sw::BLEND_INVCONSTANTALPHA; in ConvertBlendFunc()
2131 case GL_SRC_ALPHA_SATURATE: return sw::BLEND_SRCALPHASAT; in ConvertBlendFunc()
2135 return sw::BLEND_ZERO; in ConvertBlendFunc()
2138 sw::BlendOperation ConvertBlendOp(GLenum blendOp) in ConvertBlendOp()
2142 case GL_FUNC_ADD: return sw::BLENDOP_ADD; in ConvertBlendOp()
2143 case GL_FUNC_SUBTRACT: return sw::BLENDOP_SUB; in ConvertBlendOp()
2144 case GL_FUNC_REVERSE_SUBTRACT: return sw::BLENDOP_INVSUB; in ConvertBlendOp()
2145 case GL_MIN_EXT: return sw::BLENDOP_MIN; in ConvertBlendOp()
2146 case GL_MAX_EXT: return sw::BLENDOP_MAX; in ConvertBlendOp()
2150 return sw::BLENDOP_ADD; in ConvertBlendOp()
2153 sw::StencilOperation ConvertStencilOp(GLenum stencilOp) in ConvertStencilOp()
2157 case GL_ZERO: return sw::OPERATION_ZERO; in ConvertStencilOp()
2158 case GL_KEEP: return sw::OPERATION_KEEP; in ConvertStencilOp()
2159 case GL_REPLACE: return sw::OPERATION_REPLACE; in ConvertStencilOp()
2160 case GL_INCR: return sw::OPERATION_INCRSAT; in ConvertStencilOp()
2161 case GL_DECR: return sw::OPERATION_DECRSAT; in ConvertStencilOp()
2162 case GL_INVERT: return sw::OPERATION_INVERT; in ConvertStencilOp()
2163 case GL_INCR_WRAP: return sw::OPERATION_INCR; in ConvertStencilOp()
2164 case GL_DECR_WRAP: return sw::OPERATION_DECR; in ConvertStencilOp()
2168 return sw::OPERATION_KEEP; in ConvertStencilOp()
2171 sw::AddressingMode ConvertTextureWrap(GLenum wrap) in ConvertTextureWrap()
2175 case GL_REPEAT: return sw::ADDRESSING_WRAP; in ConvertTextureWrap()
2176 case GL_CLAMP_TO_EDGE: return sw::ADDRESSING_CLAMP; in ConvertTextureWrap()
2177 case GL_MIRRORED_REPEAT: return sw::ADDRESSING_MIRROR; in ConvertTextureWrap()
2181 return sw::ADDRESSING_WRAP; in ConvertTextureWrap()
2184 sw::CompareFunc ConvertCompareFunc(GLenum compareFunc, GLenum compareMode) in ConvertCompareFunc()
2190 case GL_LEQUAL: return sw::COMPARE_LESSEQUAL; in ConvertCompareFunc()
2191 case GL_GEQUAL: return sw::COMPARE_GREATEREQUAL; in ConvertCompareFunc()
2192 case GL_LESS: return sw::COMPARE_LESS; in ConvertCompareFunc()
2193 case GL_GREATER: return sw::COMPARE_GREATER; in ConvertCompareFunc()
2194 case GL_EQUAL: return sw::COMPARE_EQUAL; in ConvertCompareFunc()
2195 case GL_NOTEQUAL: return sw::COMPARE_NOTEQUAL; in ConvertCompareFunc()
2196 case GL_ALWAYS: return sw::COMPARE_ALWAYS; in ConvertCompareFunc()
2197 case GL_NEVER: return sw::COMPARE_NEVER; in ConvertCompareFunc()
2203 return sw::COMPARE_BYPASS; in ConvertCompareFunc()
2207 return sw::COMPARE_BYPASS; in ConvertCompareFunc()
2210 sw::SwizzleType ConvertSwizzleType(GLenum swizzleType) in ConvertSwizzleType()
2214 case GL_RED: return sw::SWIZZLE_RED; in ConvertSwizzleType()
2215 case GL_GREEN: return sw::SWIZZLE_GREEN; in ConvertSwizzleType()
2216 case GL_BLUE: return sw::SWIZZLE_BLUE; in ConvertSwizzleType()
2217 case GL_ALPHA: return sw::SWIZZLE_ALPHA; in ConvertSwizzleType()
2218 case GL_ZERO: return sw::SWIZZLE_ZERO; in ConvertSwizzleType()
2219 case GL_ONE: return sw::SWIZZLE_ONE; in ConvertSwizzleType()
2223 return sw::SWIZZLE_RED; in ConvertSwizzleType()
2226 sw::CullMode ConvertCullMode(GLenum cullFace, GLenum frontFace) in ConvertCullMode()
2231 return (frontFace == GL_CCW ? sw::CULL_CLOCKWISE : sw::CULL_COUNTERCLOCKWISE); in ConvertCullMode()
2233 return (frontFace == GL_CCW ? sw::CULL_COUNTERCLOCKWISE : sw::CULL_CLOCKWISE); in ConvertCullMode()
2235 return sw::CULL_NONE; // culling will be handled during draw in ConvertCullMode()
2239 return sw::CULL_COUNTERCLOCKWISE; in ConvertCullMode()
2250 sw::MipmapType ConvertMipMapFilter(GLenum minFilter) in ConvertMipMapFilter()
2256 return sw::MIPMAP_NONE; in ConvertMipMapFilter()
2259 return sw::MIPMAP_POINT; in ConvertMipMapFilter()
2262 return sw::MIPMAP_LINEAR; in ConvertMipMapFilter()
2265 return sw::MIPMAP_NONE; in ConvertMipMapFilter()
2269 sw::FilterType ConvertTextureFilter(GLenum minFilter, GLenum magFilter, float maxAnisotropy) in ConvertTextureFilter()
2273 return sw::FILTER_ANISOTROPIC; in ConvertTextureFilter()
2290 return (magFilter == GL_NEAREST) ? sw::FILTER_POINT : sw::FILTER_MIN_POINT_MAG_LINEAR; in ConvertTextureFilter()
2294 return (magFilter == GL_NEAREST) ? sw::FILTER_MIN_LINEAR_MAG_POINT : sw::FILTER_LINEAR; in ConvertTextureFilter()
2297 return sw::FILTER_POINT; in ConvertTextureFilter()
2301 …bool ConvertPrimitiveType(GLenum primitiveType, GLsizei elementCount, GLenum elementType, sw::Draw… in ConvertPrimitiveType()
2306 drawType = sw::DRAW_POINTLIST; in ConvertPrimitiveType()
2311 drawType = sw::DRAW_LINELIST; in ConvertPrimitiveType()
2316 drawType = sw::DRAW_LINELOOP; in ConvertPrimitiveType()
2321 drawType = sw::DRAW_LINESTRIP; in ConvertPrimitiveType()
2326 drawType = sw::DRAW_TRIANGLELIST; in ConvertPrimitiveType()
2331 drawType = sw::DRAW_TRIANGLESTRIP; in ConvertPrimitiveType()
2336 drawType = sw::DRAW_TRIANGLEFAN; in ConvertPrimitiveType()
2344 sw::DrawType elementSize; in ConvertPrimitiveType()
2347 case GL_NONE: elementSize = sw::DRAW_NONINDEXED; break; in ConvertPrimitiveType()
2348 case GL_UNSIGNED_BYTE: elementSize = sw::DRAW_INDEXED8; break; in ConvertPrimitiveType()
2349 case GL_UNSIGNED_SHORT: elementSize = sw::DRAW_INDEXED16; break; in ConvertPrimitiveType()
2350 case GL_UNSIGNED_INT: elementSize = sw::DRAW_INDEXED32; break; in ConvertPrimitiveType()
2354 drawType = sw::DrawType(drawType | elementSize); in ConvertPrimitiveType()
2362 GLenum ConvertBackBufferFormat(sw::Format format) in ConvertBackBufferFormat()
2366 case sw::FORMAT_A4R4G4B4: return GL_RGBA4; in ConvertBackBufferFormat()
2367 case sw::FORMAT_A8R8G8B8: return GL_RGBA8; in ConvertBackBufferFormat()
2368 case sw::FORMAT_A8B8G8R8: return GL_RGBA8; in ConvertBackBufferFormat()
2369 case sw::FORMAT_A1R5G5B5: return GL_RGB5_A1; in ConvertBackBufferFormat()
2370 case sw::FORMAT_R5G6B5: return GL_RGB565; in ConvertBackBufferFormat()
2371 case sw::FORMAT_X8R8G8B8: return GL_RGB8; in ConvertBackBufferFormat()
2372 case sw::FORMAT_X8B8G8R8: return GL_RGB8; in ConvertBackBufferFormat()
2373 case sw::FORMAT_SRGB8_A8: return GL_RGBA8; in ConvertBackBufferFormat()
2374 case sw::FORMAT_SRGB8_X8: return GL_RGB8; in ConvertBackBufferFormat()
2382 GLenum ConvertDepthStencilFormat(sw::Format format) in ConvertDepthStencilFormat()
2386 case sw::FORMAT_D16: return GL_DEPTH_COMPONENT16; in ConvertDepthStencilFormat()
2387 case sw::FORMAT_D24X8: return GL_DEPTH_COMPONENT24; in ConvertDepthStencilFormat()
2388 case sw::FORMAT_D32: return GL_DEPTH_COMPONENT32_OES; in ConvertDepthStencilFormat()
2389 case sw::FORMAT_D24S8: return GL_DEPTH24_STENCIL8_OES; in ConvertDepthStencilFormat()
2390 case sw::FORMAT_D32F: return GL_DEPTH_COMPONENT32F; in ConvertDepthStencilFormat()
2391 case sw::FORMAT_D32FS8: return GL_DEPTH32F_STENCIL8; in ConvertDepthStencilFormat()
2392 case sw::FORMAT_S8: return GL_STENCIL_INDEX8; in ConvertDepthStencilFormat()