32_32_F render target format.
This commit is contained in:
parent
6486299496
commit
8cfcea2309
|
@ -2615,6 +2615,10 @@ bool CommandProcessor::IssueCopy() {
|
||||||
read_format = GL_R32F;
|
read_format = GL_R32F;
|
||||||
read_type = GL_FLOAT;
|
read_type = GL_FLOAT;
|
||||||
break;
|
break;
|
||||||
|
case ColorFormat::k_32_32_FLOAT:
|
||||||
|
read_format = GL_RG32F;
|
||||||
|
read_type = GL_FLOAT;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
assert_unhandled_case(copy_dest_format);
|
assert_unhandled_case(copy_dest_format);
|
||||||
return false;
|
return false;
|
||||||
|
@ -2898,6 +2902,9 @@ GLuint CommandProcessor::GetColorRenderTarget(uint32_t pitch,
|
||||||
case ColorRenderTargetFormat::k_32_FLOAT:
|
case ColorRenderTargetFormat::k_32_FLOAT:
|
||||||
internal_format = GL_R32F;
|
internal_format = GL_R32F;
|
||||||
break;
|
break;
|
||||||
|
case ColorRenderTargetFormat::k_32_32_FLOAT:
|
||||||
|
internal_format = GL_RG32F;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
assert_unhandled_case(format);
|
assert_unhandled_case(format);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -115,6 +115,8 @@ inline TextureFormat ColorRenderTargetToTextureFormat(
|
||||||
return TextureFormat::k_2_10_10_10_FLOAT;
|
return TextureFormat::k_2_10_10_10_FLOAT;
|
||||||
case xenos::ColorRenderTargetFormat::k_32_FLOAT:
|
case xenos::ColorRenderTargetFormat::k_32_FLOAT:
|
||||||
return TextureFormat::k_32_FLOAT;
|
return TextureFormat::k_32_FLOAT;
|
||||||
|
case xenos::ColorRenderTargetFormat::k_32_32_FLOAT:
|
||||||
|
return TextureFormat::k_32_32_FLOAT;
|
||||||
default:
|
default:
|
||||||
assert_unhandled_case(color_format);
|
assert_unhandled_case(color_format);
|
||||||
return TextureFormat::kUnknown;
|
return TextureFormat::kUnknown;
|
||||||
|
|
|
@ -91,6 +91,7 @@ enum class ColorRenderTargetFormat : uint32_t {
|
||||||
k_2_10_10_10_unknown = 10,
|
k_2_10_10_10_unknown = 10,
|
||||||
k_2_10_10_10_FLOAT_unknown = 12,
|
k_2_10_10_10_FLOAT_unknown = 12,
|
||||||
k_32_FLOAT = 14,
|
k_32_FLOAT = 14,
|
||||||
|
k_32_32_FLOAT = 15,
|
||||||
};
|
};
|
||||||
|
|
||||||
enum class DepthRenderTargetFormat : uint32_t {
|
enum class DepthRenderTargetFormat : uint32_t {
|
||||||
|
|
Loading…
Reference in New Issue