| 311 | |
| 312 | template< bool MirrorS, bool MirrorT > |
| 313 | static void MirrorTexels( void * dst, u32 dst_stride, const void * src, u32 src_stride, ETextureFormat tex_fmt, u32 width, u32 height ) |
| 314 | { |
| 315 | bool handled {false}; |
| 316 | |
| 317 | switch(tex_fmt) |
| 318 | { |
| 319 | case TexFmt_5650: MirrorTexelsST< NativePf5650, MirrorS, MirrorT >( dst, dst_stride, src, src_stride, width, height ); handled = true; break; |
| 320 | case TexFmt_5551: MirrorTexelsST< NativePf5551, MirrorS, MirrorT >( dst, dst_stride, src, src_stride, width, height ); handled = true; break; |
| 321 | case TexFmt_4444: MirrorTexelsST< NativePf4444, MirrorS, MirrorT >( dst, dst_stride, src, src_stride, width, height ); handled = true; break; |
| 322 | case TexFmt_8888: MirrorTexelsST< NativePf8888, MirrorS, MirrorT >( dst, dst_stride, src, src_stride, width, height ); handled = true; break; |
| 323 | |
| 324 | case TexFmt_CI4_8888: MirrorTexelsST< NativePfCI44, MirrorS, MirrorT >( dst, dst_stride, src, src_stride, width, height ); handled = true; break; |
| 325 | case TexFmt_CI8_8888: MirrorTexelsST< NativePfCI8 , MirrorS, MirrorT >( dst, dst_stride, src, src_stride, width, height ); handled = true; break; |
| 326 | } |
| 327 | |
| 328 | #ifdef DAEDALUS_ENABLE_ASSERTS |
| 329 | DAEDALUS_ASSERT( handled, "Unhandled format" ); |
| 330 | #endif |
| 331 | } |
| 332 | |
| 333 | |
| 334 | void MirrorTexels( bool mirror_s, bool mirror_t, |