Rename TEXTURE_FORMAT_32F to TEXTURE_FORMAT_FLOAT_32.

This commit is contained in:
Roz K 2022-12-25 04:20:19 +01:00
parent e286d33c35
commit cdfce62c90
Signed by: roz
GPG Key ID: 51FBF4E483E1C822
3 changed files with 3 additions and 3 deletions

View File

@ -162,7 +162,7 @@ swap_buffers.argtypes = (
TEXTURE_FORMAT_SRGB8_A8 = 0 TEXTURE_FORMAT_SRGB8_A8 = 0
TEXTURE_FORMAT_RGBA8 = 1 TEXTURE_FORMAT_RGBA8 = 1
TEXTURE_FORMAT_RGB10_A2 = 2 TEXTURE_FORMAT_RGB10_A2 = 2
TEXTURE_FORMAT_32F = 3 TEXTURE_FORMAT_FLOAT_32 = 3
TEXTURE_FORMAT_TYPECODE = ('B', 'B', 'I', 'f') TEXTURE_FORMAT_TYPECODE = ('B', 'B', 'I', 'f')
TEXTURE_FORMAT_NELEMS = (4, 4, 1, 1) TEXTURE_FORMAT_NELEMS = (4, 4, 1, 1)

View File

@ -31,7 +31,7 @@ enum rk_texture_format : rk_uint {
RK_TEXTURE_FORMAT_SRGB8_A8 = 0, RK_TEXTURE_FORMAT_SRGB8_A8 = 0,
RK_TEXTURE_FORMAT_RGBA8 = 1, RK_TEXTURE_FORMAT_RGBA8 = 1,
RK_TEXTURE_FORMAT_RGB10_A2 = 2, RK_TEXTURE_FORMAT_RGB10_A2 = 2,
RK_TEXTURE_FORMAT_32F = 3 RK_TEXTURE_FORMAT_FLOAT_32 = 3
}; };
enum rk_texture_flags : rk_uint { enum rk_texture_flags : rk_uint {

View File

@ -171,7 +171,7 @@ rk_texture_t rk_create_texture(
source_format = GL_RGBA; source_format = GL_RGBA;
source_type = GL_UNSIGNED_INT_2_10_10_10_REV; source_type = GL_UNSIGNED_INT_2_10_10_10_REV;
break; break;
case RK_TEXTURE_FORMAT_32F: case RK_TEXTURE_FORMAT_FLOAT_32:
internal_format = GL_R32F; internal_format = GL_R32F;
source_format = GL_RED; source_format = GL_RED;
source_type = GL_FLOAT; source_type = GL_FLOAT;