yuzu-emu
/
yuzu-mainline
Archived
1
0
Fork 0

GPU: Allow the usage of RGBA32_FLOAT in the texture copy engine.

This commit is contained in:
Subv 2018-06-05 21:07:40 -05:00
parent 8c99dd055c
commit 8d70d1ea45
2 changed files with 3 additions and 0 deletions

View File

@ -26,6 +26,8 @@ u32 RenderTargetBytesPerPixel(RenderTargetFormat format) {
ASSERT(format != RenderTargetFormat::NONE); ASSERT(format != RenderTargetFormat::NONE);
switch (format) { switch (format) {
case RenderTargetFormat::RGBA32_FLOAT:
return 16;
case RenderTargetFormat::RGBA8_UNORM: case RenderTargetFormat::RGBA8_UNORM:
case RenderTargetFormat::RGB10_A2_UNORM: case RenderTargetFormat::RGB10_A2_UNORM:
return 4; return 4;

View File

@ -15,6 +15,7 @@ namespace Tegra {
enum class RenderTargetFormat : u32 { enum class RenderTargetFormat : u32 {
NONE = 0x0, NONE = 0x0,
RGBA32_FLOAT = 0xC0,
RGBA16_FLOAT = 0xCA, RGBA16_FLOAT = 0xCA,
RGB10_A2_UNORM = 0xD1, RGB10_A2_UNORM = 0xD1,
RGBA8_UNORM = 0xD5, RGBA8_UNORM = 0xD5,