wined3d: Add GL_ARB_texture_rg / GL_EXT_texture_swizzle support. These extensions are needed for more efficient R32F/RG32F support.
This commit is contained in:
parent
810508f7de
commit
7238bce79d
|
@ -82,6 +82,7 @@ static const struct {
|
|||
{"GL_ARB_texture_mirrored_repeat", ARB_TEXTURE_MIRRORED_REPEAT, 0 },
|
||||
{"GL_ARB_texture_non_power_of_two", ARB_TEXTURE_NON_POWER_OF_TWO, MAKEDWORD_VERSION(2, 0) },
|
||||
{"GL_ARB_texture_rectangle", ARB_TEXTURE_RECTANGLE, 0 },
|
||||
{"GL_ARB_texture_rg", ARB_TEXTURE_RG, 0 },
|
||||
{"GL_ARB_vertex_blend", ARB_VERTEX_BLEND, 0 },
|
||||
{"GL_ARB_vertex_buffer_object", ARB_VERTEX_BUFFER_OBJECT, 0 },
|
||||
{"GL_ARB_vertex_program", ARB_VERTEX_PROGRAM, 0 },
|
||||
|
@ -109,6 +110,7 @@ static const struct {
|
|||
{"GL_EXT_texture_env_combine", EXT_TEXTURE_ENV_COMBINE, 0 },
|
||||
{"GL_EXT_texture_env_dot3", EXT_TEXTURE_ENV_DOT3, 0 },
|
||||
{"GL_EXT_texture_sRGB", EXT_TEXTURE_SRGB, 0 },
|
||||
{"GL_EXT_texture_swizzle", EXT_TEXTURE_SWIZZLE, 0 },
|
||||
{"GL_EXT_texture_filter_anisotropic", EXT_TEXTURE_FILTER_ANISOTROPIC, 0 },
|
||||
{"GL_EXT_texture_lod", EXT_TEXTURE_LOD, 0 },
|
||||
{"GL_EXT_texture_lod_bias", EXT_TEXTURE_LOD_BIAS, 0 },
|
||||
|
|
|
@ -2037,6 +2037,39 @@ typedef void (WINE_GLAPI * PGLFNGLTEXSUBIMAGE3DEXTPROC) (GLenum target, GLint le
|
|||
#define GL_RGBA16F_ARB 0x881A
|
||||
#define GL_RGB16F_ARB 0x881B
|
||||
#endif
|
||||
/* GL_ARB_texture_rg */
|
||||
#ifndef GL_ARB_texture_rg
|
||||
#define GL_RG 0x8227
|
||||
#define GL_RG_INTEGER 0x8228
|
||||
#define GL_R8 0x8229
|
||||
#define GL_R16 0x822A
|
||||
#define GL_RG8 0x822B
|
||||
#define GL_RG16 0x822C
|
||||
#define GL_R16F 0x822D
|
||||
#define GL_R32F 0x822E
|
||||
#define GL_RG16F 0x822F
|
||||
#define GL_RG32F 0x8230
|
||||
#define GL_R8I 0x8231
|
||||
#define GL_R8UI 0x8232
|
||||
#define GL_R16I 0x8233
|
||||
#define GL_R16UI 0x8234
|
||||
#define GL_R32I 0x8235
|
||||
#define GL_R32UI 0x8236
|
||||
#define GL_RG8I 0x8237
|
||||
#define GL_RG8UI 0x8238
|
||||
#define GL_RG16I 0x8239
|
||||
#define GL_RG16UI 0x823A
|
||||
#define GL_RG32I 0x823B
|
||||
#define GL_RG32UI 0x823C
|
||||
#endif
|
||||
/* GL_EXT_texture_swizzle */
|
||||
#ifndef GL_EXT_texture_swizzle
|
||||
#define GL_TEXTURE_SWIZZLE_R_EXT 0x8E42
|
||||
#define GL_TEXTURE_SWIZZLE_G_EXT 0x8E43
|
||||
#define GL_TEXTURE_SWIZZLE_B_EXT 0x8E44
|
||||
#define GL_TEXTURE_SWIZZLE_A_EXT 0x8E45
|
||||
#define GL_TEXTURE_SWIZZLE_RGBA_EXT 0x8E46
|
||||
#endif
|
||||
/* GL_ARB_half_float_pixel */
|
||||
#ifndef GL_ARB_half_float_pixel
|
||||
#define GL_ARB_half_float_pixel
|
||||
|
@ -3317,6 +3350,7 @@ typedef enum _GL_SupportedExt {
|
|||
ARB_TEXTURE_MIRRORED_REPEAT,
|
||||
ARB_TEXTURE_NON_POWER_OF_TWO,
|
||||
ARB_TEXTURE_RECTANGLE,
|
||||
ARB_TEXTURE_RG,
|
||||
ARB_VERTEX_PROGRAM,
|
||||
ARB_VERTEX_BLEND,
|
||||
ARB_VERTEX_BUFFER_OBJECT,
|
||||
|
@ -3347,6 +3381,7 @@ typedef enum _GL_SupportedExt {
|
|||
EXT_TEXTURE_ENV_COMBINE,
|
||||
EXT_TEXTURE_ENV_DOT3,
|
||||
EXT_TEXTURE_SRGB,
|
||||
EXT_TEXTURE_SWIZZLE,
|
||||
EXT_GPU_PROGRAM_PARAMETERS,
|
||||
/* NVIDIA */
|
||||
NV_HALF_FLOAT,
|
||||
|
|
Loading…
Reference in New Issue