[PATCH] d3dx9: Use struct d3dx_object for objects.
hverbeet at gmail.com
Wed Sep 25 08:41:33 CDT 2013
On 25 September 2013 15:32, Rico Schüller <kgbricola at web.de> wrote:
> Yes. Depending on the use case we may create it on the Begin/BeginPass when
> the shader is needed the first time (this may also be something like
> isParameterUsed or GetVertexShader). We don't need the shaders for cases
> like GetPassDesc, where only the shader blob is used and in cases the
> shaders are not used at all (e.g. if some technique is for shader version 2
> and one for shader version 3). That's why I think it may be an option to
> defer the shader creation. Imho this needs some tests first before an useful
> decision could be made. The comment was added, because I removed the
> previously available shader creation (which had some flaws).
I think you almost always want to create shaders as early as possible.
Shader compilation time and associated stuttering is a real issue. We
could do better on that front in wined3d as well, and in some cases in
the driver, but if the application doesn't pass us the shader until
it's first used there's nothing we can do.
More information about the wine-devel