mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
wined3d: Implement SV_VertexID in GLSL backend.
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
2d97dbf87b
commit
05f6f111bf
1 changed files with 4 additions and 1 deletions
|
@ -1914,7 +1914,10 @@ static void shader_generate_glsl_declarations(const struct wined3d_context *cont
|
|||
for (i = 0; i < shader->input_signature.element_count; ++i)
|
||||
{
|
||||
const struct wined3d_shader_signature_element *e = &shader->input_signature.elements[i];
|
||||
if (e->sysval_semantic == WINED3D_SV_INSTANCE_ID)
|
||||
if (e->sysval_semantic == WINED3D_SV_VERTEX_ID)
|
||||
shader_addline(buffer, "vec4 %s_in%u = vec4(intBitsToFloat(gl_VertexID), 0.0, 0.0, 0.0);\n",
|
||||
prefix, e->register_idx);
|
||||
else if (e->sysval_semantic == WINED3D_SV_INSTANCE_ID)
|
||||
shader_addline(buffer, "vec4 %s_in%u = vec4(intBitsToFloat(gl_InstanceID), 0.0, 0.0, 0.0);\n",
|
||||
prefix, e->register_idx);
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue