mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-01-31 12:31:45 +01:00
gl: Register a few more missing formats for conversion
This commit is contained in:
parent
e4e86455f2
commit
cc3809fbfe
@ -1415,8 +1415,10 @@ namespace gl
|
||||
rgba8 = GL_RGBA8,
|
||||
r5g6b5 = GL_RGB565,
|
||||
r8 = GL_R8,
|
||||
rg8 = GL_RG8,
|
||||
r32f = GL_R32F,
|
||||
rg8 = GL_RG8,
|
||||
rg16 = GL_RG16,
|
||||
rg16f = GL_RG16F,
|
||||
rgba16f = GL_RGBA16F,
|
||||
rgba32f = GL_RGBA32F
|
||||
};
|
||||
|
@ -107,6 +107,10 @@ namespace gl
|
||||
return std::make_tuple(GL_RGB, GL_UNSIGNED_SHORT_5_6_5, true);
|
||||
case texture::internal_format::rg8:
|
||||
return std::make_tuple(GL_RG, GL_UNSIGNED_BYTE, false);
|
||||
case texture::internal_format::rg16:
|
||||
return std::make_tuple(GL_RG, GL_UNSIGNED_SHORT, true);
|
||||
case texture::internal_format::rg16f:
|
||||
return std::make_tuple(GL_RG, GL_HALF_FLOAT, true);
|
||||
case texture::internal_format::rgba8:
|
||||
return std::make_tuple(GL_BGRA, GL_UNSIGNED_INT_8_8_8_8, false);
|
||||
case texture::internal_format::rgba16f:
|
||||
|
Loading…
x
Reference in New Issue
Block a user