diff options
| author | 2018-08-11 20:01:50 +0200 | |
|---|---|---|
| committer | 2018-08-11 14:01:50 -0400 | |
| commit | dfcde52f3933bab397fc8619ede00383f4a7e5e2 (patch) | |
| tree | 9c3cdb0b3162543d6f5308f31a2745b568ace4b8 /src/video_core/gpu.h | |
| parent | Merge pull request #1015 from lioncash/gamelist (diff) | |
| download | yuzu-dfcde52f3933bab397fc8619ede00383f4a7e5e2.tar.gz yuzu-dfcde52f3933bab397fc8619ede00383f4a7e5e2.tar.xz yuzu-dfcde52f3933bab397fc8619ede00383f4a7e5e2.zip | |
Implement R16S & R16UI & R16I RenderTargetFormats & PixelFormats and more (R16_UNORM needed by Fate Extella) (#848)
* Implement R16S & R16UI & R16I RenderTargetFormats & PixelFormats
Do a separate function in order to get Bytes Per Pixel of DepthFormat
Apply the new function in gpu.h
delete unneeded white space
* correct merging error
Diffstat (limited to 'src/video_core/gpu.h')
| -rw-r--r-- | src/video_core/gpu.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/video_core/gpu.h b/src/video_core/gpu.h index 874eddd78..0164c747a 100644 --- a/src/video_core/gpu.h +++ b/src/video_core/gpu.h | |||
| @@ -35,6 +35,10 @@ enum class RenderTargetFormat : u32 { | |||
| 35 | R11G11B10_FLOAT = 0xE0, | 35 | R11G11B10_FLOAT = 0xE0, |
| 36 | R32_FLOAT = 0xE5, | 36 | R32_FLOAT = 0xE5, |
| 37 | B5G6R5_UNORM = 0xE8, | 37 | B5G6R5_UNORM = 0xE8, |
| 38 | R16_UNORM = 0xEE, | ||
| 39 | R16_SNORM = 0xEF, | ||
| 40 | R16_SINT = 0xF0, | ||
| 41 | R16_UINT = 0xF1, | ||
| 38 | R16_FLOAT = 0xF2, | 42 | R16_FLOAT = 0xF2, |
| 39 | R8_UNORM = 0xF3, | 43 | R8_UNORM = 0xF3, |
| 40 | }; | 44 | }; |
| @@ -52,6 +56,9 @@ enum class DepthFormat : u32 { | |||
| 52 | /// Returns the number of bytes per pixel of each rendertarget format. | 56 | /// Returns the number of bytes per pixel of each rendertarget format. |
| 53 | u32 RenderTargetBytesPerPixel(RenderTargetFormat format); | 57 | u32 RenderTargetBytesPerPixel(RenderTargetFormat format); |
| 54 | 58 | ||
| 59 | /// Returns the number of bytes per pixel of each depth format. | ||
| 60 | u32 DepthFormatBytesPerPixel(DepthFormat format); | ||
| 61 | |||
| 55 | class DebugContext; | 62 | class DebugContext; |
| 56 | 63 | ||
| 57 | /** | 64 | /** |