32_32_F render target format.

This commit is contained in:
Ben Vanik 2015-03-22 15:30:18 -07:00
parent 6486299496
commit 8cfcea2309
3 changed files with 10 additions and 0 deletions

View File

@ -2615,6 +2615,10 @@ bool CommandProcessor::IssueCopy() {
read_format = GL_R32F;
read_type = GL_FLOAT;
break;
case ColorFormat::k_32_32_FLOAT:
read_format = GL_RG32F;
read_type = GL_FLOAT;
break;
default:
assert_unhandled_case(copy_dest_format);
return false;
@ -2898,6 +2902,9 @@ GLuint CommandProcessor::GetColorRenderTarget(uint32_t pitch,
case ColorRenderTargetFormat::k_32_FLOAT:
internal_format = GL_R32F;
break;
case ColorRenderTargetFormat::k_32_32_FLOAT:
internal_format = GL_RG32F;
break;
default:
assert_unhandled_case(format);
return 0;

View File

@ -115,6 +115,8 @@ inline TextureFormat ColorRenderTargetToTextureFormat(
return TextureFormat::k_2_10_10_10_FLOAT;
case xenos::ColorRenderTargetFormat::k_32_FLOAT:
return TextureFormat::k_32_FLOAT;
case xenos::ColorRenderTargetFormat::k_32_32_FLOAT:
return TextureFormat::k_32_32_FLOAT;
default:
assert_unhandled_case(color_format);
return TextureFormat::kUnknown;

View File

@ -91,6 +91,7 @@ enum class ColorRenderTargetFormat : uint32_t {
k_2_10_10_10_unknown = 10,
k_2_10_10_10_FLOAT_unknown = 12,
k_32_FLOAT = 14,
k_32_32_FLOAT = 15,
};
enum class DepthRenderTargetFormat : uint32_t {