wined3d: Add GL_ARB_shader_viewport_layer_array 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
937f4897fd
commit
dbaaee8e4d
|
@ -113,6 +113,7 @@ static const struct wined3d_extension_map gl_extension_map[] =
|
||||||
{"GL_ARB_shader_storage_buffer_object", ARB_SHADER_STORAGE_BUFFER_OBJECT},
|
{"GL_ARB_shader_storage_buffer_object", ARB_SHADER_STORAGE_BUFFER_OBJECT},
|
||||||
{"GL_ARB_shader_texture_image_samples", ARB_SHADER_TEXTURE_IMAGE_SAMPLES},
|
{"GL_ARB_shader_texture_image_samples", ARB_SHADER_TEXTURE_IMAGE_SAMPLES},
|
||||||
{"GL_ARB_shader_texture_lod", ARB_SHADER_TEXTURE_LOD },
|
{"GL_ARB_shader_texture_lod", ARB_SHADER_TEXTURE_LOD },
|
||||||
|
{"GL_ARB_shader_viewport_layer_array", ARB_SHADER_VIEWPORT_LAYER_ARRAY},
|
||||||
{"GL_ARB_shading_language_100", ARB_SHADING_LANGUAGE_100 },
|
{"GL_ARB_shading_language_100", ARB_SHADING_LANGUAGE_100 },
|
||||||
{"GL_ARB_shading_language_420pack", ARB_SHADING_LANGUAGE_420PACK },
|
{"GL_ARB_shading_language_420pack", ARB_SHADING_LANGUAGE_420PACK },
|
||||||
{"GL_ARB_shading_language_packing", ARB_SHADING_LANGUAGE_PACKING },
|
{"GL_ARB_shading_language_packing", ARB_SHADING_LANGUAGE_PACKING },
|
||||||
|
|
|
@ -8140,6 +8140,8 @@ static GLuint shader_glsl_generate_vshader(const struct wined3d_context *context
|
||||||
shader_addline(buffer, "#extension GL_ARB_draw_instanced : enable\n");
|
shader_addline(buffer, "#extension GL_ARB_draw_instanced : enable\n");
|
||||||
if (shader_glsl_use_explicit_attrib_location(gl_info))
|
if (shader_glsl_use_explicit_attrib_location(gl_info))
|
||||||
shader_addline(buffer, "#extension GL_ARB_explicit_attrib_location : enable\n");
|
shader_addline(buffer, "#extension GL_ARB_explicit_attrib_location : enable\n");
|
||||||
|
if (gl_info->supported[ARB_SHADER_VIEWPORT_LAYER_ARRAY])
|
||||||
|
shader_addline(buffer, "#extension GL_ARB_shader_viewport_layer_array : enable\n");
|
||||||
|
|
||||||
/* Base Declarations */
|
/* Base Declarations */
|
||||||
shader_generate_glsl_declarations(context, buffer, shader, reg_maps, &priv_ctx);
|
shader_generate_glsl_declarations(context, buffer, shader, reg_maps, &priv_ctx);
|
||||||
|
|
|
@ -93,6 +93,7 @@ enum wined3d_gl_extension
|
||||||
ARB_SAMPLER_OBJECTS,
|
ARB_SAMPLER_OBJECTS,
|
||||||
ARB_SEAMLESS_CUBE_MAP,
|
ARB_SEAMLESS_CUBE_MAP,
|
||||||
ARB_SHADER_ATOMIC_COUNTERS,
|
ARB_SHADER_ATOMIC_COUNTERS,
|
||||||
|
ARB_SHADER_VIEWPORT_LAYER_ARRAY,
|
||||||
ARB_SHADER_BIT_ENCODING,
|
ARB_SHADER_BIT_ENCODING,
|
||||||
ARB_SHADER_IMAGE_LOAD_STORE,
|
ARB_SHADER_IMAGE_LOAD_STORE,
|
||||||
ARB_SHADER_IMAGE_SIZE,
|
ARB_SHADER_IMAGE_SIZE,
|
||||||
|
|
Loading…
Reference in New Issue