[PATCH 6/9] wined3d: Generate code for compute shaders.

Matteo Bruni matteo.mystral at gmail.com
Thu Feb 9 08:39:13 CST 2017


2017-02-09 12:00 GMT+01:00 Józef Kucia <jkucia at codeweavers.com>:

> +    shader_id = GL_EXTCALL(glCreateShader(GL_COMPUTE_SHADER));
> +
> +    shader_addline(buffer, "%s\n", shader_glsl_get_version_declaration(gl_info, &reg_maps->shader_version));
> +
> +    shader_glsl_enable_extensions(buffer, gl_info);
> +    if (gl_info->supported[ARB_COMPUTE_SHADER])
> +        shader_addline(buffer, "#extension GL_ARB_compute_shader : enable\n");

I don't know it for a fact but it seems weird to me that explicitly
enabling the extension in the GLSL source is ever necessary, given
that you just created the shader with GL_COMPUTE_SHADER anyway... FWIW
the extension enable is not mentioned in the ARB_compute_shader spec.



More information about the wine-devel mailing list