MRTs and some more texture formats.
This commit is contained in:
parent
b818adbf6d
commit
64c8d7ab98
|
@ -455,6 +455,15 @@ void GL4ShaderTranslator::AppendOpDestRegName(const ucode::instr_alu_t& op,
|
|||
case 63: // ? masked?
|
||||
Append("oC[0]");
|
||||
break;
|
||||
case 1:
|
||||
Append("oC[1]");
|
||||
break;
|
||||
case 2:
|
||||
Append("oC[2]");
|
||||
break;
|
||||
case 3:
|
||||
Append("oC[3]");
|
||||
break;
|
||||
case 61:
|
||||
Append("gl_FragDepth");
|
||||
break;
|
||||
|
|
|
@ -73,16 +73,13 @@ static const TextureConfig texture_configs[64] = {
|
|||
GL_UNSIGNED_INT_24_8},
|
||||
{TextureFormat::k_24_8_FLOAT, GL_DEPTH24_STENCIL8, GL_DEPTH_STENCIL,
|
||||
GL_FLOAT_32_UNSIGNED_INT_24_8_REV},
|
||||
{TextureFormat::k_16, GL_INVALID_ENUM, GL_INVALID_ENUM, GL_INVALID_ENUM},
|
||||
{TextureFormat::k_16, GL_R16, GL_RED, GL_UNSIGNED_SHORT},
|
||||
{TextureFormat::k_16_16, GL_RG16, GL_RG, GL_UNSIGNED_SHORT},
|
||||
{TextureFormat::k_16_16_16_16, GL_INVALID_ENUM, GL_INVALID_ENUM,
|
||||
GL_INVALID_ENUM},
|
||||
{TextureFormat::k_16_EXPAND, GL_INVALID_ENUM, GL_INVALID_ENUM,
|
||||
GL_INVALID_ENUM},
|
||||
{TextureFormat::k_16_16_EXPAND, GL_INVALID_ENUM, GL_INVALID_ENUM,
|
||||
GL_INVALID_ENUM},
|
||||
{TextureFormat::k_16_16_16_16_EXPAND, GL_INVALID_ENUM, GL_INVALID_ENUM,
|
||||
GL_INVALID_ENUM},
|
||||
{TextureFormat::k_16_16_16_16, GL_RGBA16, GL_RGBA, GL_UNSIGNED_SHORT},
|
||||
{TextureFormat::k_16_EXPAND, GL_R16, GL_RED, GL_UNSIGNED_SHORT},
|
||||
{TextureFormat::k_16_16_EXPAND, GL_RG16, GL_RG, GL_UNSIGNED_SHORT},
|
||||
{TextureFormat::k_16_16_16_16_EXPAND, GL_RGBA16, GL_RGBA,
|
||||
GL_UNSIGNED_SHORT},
|
||||
{TextureFormat::k_16_FLOAT, GL_R16F, GL_RED, GL_HALF_FLOAT},
|
||||
{TextureFormat::k_16_16_FLOAT, GL_RG16F, GL_RG, GL_HALF_FLOAT},
|
||||
{TextureFormat::k_16_16_16_16_FLOAT, GL_RGBA16F, GL_RGBA, GL_HALF_FLOAT},
|
||||
|
|
Loading…
Reference in New Issue