wined3d: Add ARB_draw_indirect extension.
Signed-off-by: Józef Kucia <jkucia@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
9d1acd197d
commit
f51f86cc19
|
@ -123,6 +123,7 @@ static const struct wined3d_extension_map gl_extension_map[] =
|
||||||
{"GL_ARB_derivative_control", ARB_DERIVATIVE_CONTROL },
|
{"GL_ARB_derivative_control", ARB_DERIVATIVE_CONTROL },
|
||||||
{"GL_ARB_draw_buffers", ARB_DRAW_BUFFERS },
|
{"GL_ARB_draw_buffers", ARB_DRAW_BUFFERS },
|
||||||
{"GL_ARB_draw_elements_base_vertex", ARB_DRAW_ELEMENTS_BASE_VERTEX },
|
{"GL_ARB_draw_elements_base_vertex", ARB_DRAW_ELEMENTS_BASE_VERTEX },
|
||||||
|
{"GL_ARB_draw_indirect", ARB_DRAW_INDIRECT },
|
||||||
{"GL_ARB_draw_instanced", ARB_DRAW_INSTANCED },
|
{"GL_ARB_draw_instanced", ARB_DRAW_INSTANCED },
|
||||||
{"GL_ARB_ES2_compatibility", ARB_ES2_COMPATIBILITY },
|
{"GL_ARB_ES2_compatibility", ARB_ES2_COMPATIBILITY },
|
||||||
{"GL_ARB_ES3_compatibility", ARB_ES3_COMPATIBILITY },
|
{"GL_ARB_ES3_compatibility", ARB_ES3_COMPATIBILITY },
|
||||||
|
@ -2715,6 +2716,9 @@ static void load_gl_funcs(struct wined3d_gl_info *gl_info)
|
||||||
USE_GL_FUNC(glDrawElementsInstancedBaseVertex)
|
USE_GL_FUNC(glDrawElementsInstancedBaseVertex)
|
||||||
USE_GL_FUNC(glDrawRangeElementsBaseVertex)
|
USE_GL_FUNC(glDrawRangeElementsBaseVertex)
|
||||||
USE_GL_FUNC(glMultiDrawElementsBaseVertex)
|
USE_GL_FUNC(glMultiDrawElementsBaseVertex)
|
||||||
|
/* GL_ARB_draw_indirect */
|
||||||
|
USE_GL_FUNC(glDrawArraysIndirect)
|
||||||
|
USE_GL_FUNC(glDrawElementsIndirect)
|
||||||
/* GL_ARB_draw_instanced */
|
/* GL_ARB_draw_instanced */
|
||||||
USE_GL_FUNC(glDrawArraysInstancedARB)
|
USE_GL_FUNC(glDrawArraysInstancedARB)
|
||||||
USE_GL_FUNC(glDrawElementsInstancedARB)
|
USE_GL_FUNC(glDrawElementsInstancedARB)
|
||||||
|
@ -3866,6 +3870,7 @@ static BOOL wined3d_adapter_init_gl_caps(struct wined3d_adapter *adapter,
|
||||||
{ARB_TIMER_QUERY, MAKEDWORD_VERSION(3, 3)},
|
{ARB_TIMER_QUERY, MAKEDWORD_VERSION(3, 3)},
|
||||||
{ARB_VERTEX_TYPE_2_10_10_10_REV, MAKEDWORD_VERSION(3, 3)},
|
{ARB_VERTEX_TYPE_2_10_10_10_REV, MAKEDWORD_VERSION(3, 3)},
|
||||||
|
|
||||||
|
{ARB_DRAW_INDIRECT, MAKEDWORD_VERSION(4, 0)},
|
||||||
{ARB_GPU_SHADER5, MAKEDWORD_VERSION(4, 0)},
|
{ARB_GPU_SHADER5, MAKEDWORD_VERSION(4, 0)},
|
||||||
{ARB_TESSELLATION_SHADER, MAKEDWORD_VERSION(4, 0)},
|
{ARB_TESSELLATION_SHADER, MAKEDWORD_VERSION(4, 0)},
|
||||||
{ARB_TEXTURE_CUBE_MAP_ARRAY, MAKEDWORD_VERSION(4, 0)},
|
{ARB_TEXTURE_CUBE_MAP_ARRAY, MAKEDWORD_VERSION(4, 0)},
|
||||||
|
|
|
@ -56,6 +56,7 @@ enum wined3d_gl_extension
|
||||||
ARB_DERIVATIVE_CONTROL,
|
ARB_DERIVATIVE_CONTROL,
|
||||||
ARB_DRAW_BUFFERS,
|
ARB_DRAW_BUFFERS,
|
||||||
ARB_DRAW_ELEMENTS_BASE_VERTEX,
|
ARB_DRAW_ELEMENTS_BASE_VERTEX,
|
||||||
|
ARB_DRAW_INDIRECT,
|
||||||
ARB_DRAW_INSTANCED,
|
ARB_DRAW_INSTANCED,
|
||||||
ARB_ES2_COMPATIBILITY,
|
ARB_ES2_COMPATIBILITY,
|
||||||
ARB_ES3_COMPATIBILITY,
|
ARB_ES3_COMPATIBILITY,
|
||||||
|
|
Loading…
Reference in New Issue