gl_rasterizer_cache: Implement PixelFormat RGBA16F.
This commit is contained in:
parent
15086a22be
commit
ca5a4a704b
3 changed files with 22 additions and 6 deletions
|
@ -60,6 +60,8 @@ u32 BytesPerPixel(TextureFormat format) {
|
|||
return 2;
|
||||
case TextureFormat::R8:
|
||||
return 1;
|
||||
case TextureFormat::R16_G16_B16_A16:
|
||||
return 8;
|
||||
default:
|
||||
UNIMPLEMENTED_MSG("Format not implemented");
|
||||
break;
|
||||
|
@ -86,6 +88,7 @@ std::vector<u8> UnswizzleTexture(VAddr address, TextureFormat format, u32 width,
|
|||
case TextureFormat::A1B5G5R5:
|
||||
case TextureFormat::B5G6R5:
|
||||
case TextureFormat::R8:
|
||||
case TextureFormat::R16_G16_B16_A16:
|
||||
CopySwizzledData(width, height, bytes_per_pixel, bytes_per_pixel, data,
|
||||
unswizzled_data.data(), true, block_height);
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue