wined3d: Improve wined3d_sysval_semantic enum values naming.
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
17c07a9409
commit
e2f4aaa65a
|
@ -1898,7 +1898,7 @@ 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_INSTANCEID)
|
||||
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
|
||||
|
|
|
@ -223,10 +223,10 @@ static const struct
|
|||
sysval_semantic_names[] =
|
||||
{
|
||||
{WINED3D_SV_POSITION, "SV_Position"},
|
||||
{WINED3D_SV_INSTANCEID, "SV_InstanceID"},
|
||||
{WINED3D_SV_PRIMITIVEID, "SV_PrimitiveID"},
|
||||
{WINED3D_SV_ISFRONTFACE, "SV_IsFrontFace"},
|
||||
{WINED3D_SV_SAMPLEINDEX, "SV_SampleIndex"},
|
||||
{WINED3D_SV_INSTANCE_ID, "SV_InstanceID"},
|
||||
{WINED3D_SV_PRIMITIVE_ID, "SV_PrimitiveID"},
|
||||
{WINED3D_SV_IS_FRONT_FACE, "SV_IsFrontFace"},
|
||||
{WINED3D_SV_SAMPLE_INDEX, "SV_SampleIndex"},
|
||||
{WINED3D_SV_QUAD_U0_TESS_FACTOR, "finalQuadUeq0EdgeTessFactor"},
|
||||
{WINED3D_SV_QUAD_V0_TESS_FACTOR, "finalQuadVeq0EdgeTessFactor"},
|
||||
{WINED3D_SV_QUAD_U1_TESS_FACTOR, "finalQuadUeq1EdgeTessFactor"},
|
||||
|
|
|
@ -748,10 +748,10 @@ enum wined3d_decl_usage
|
|||
enum wined3d_sysval_semantic
|
||||
{
|
||||
WINED3D_SV_POSITION = 1,
|
||||
WINED3D_SV_PRIMITIVEID = 7,
|
||||
WINED3D_SV_INSTANCEID = 8,
|
||||
WINED3D_SV_ISFRONTFACE = 9,
|
||||
WINED3D_SV_SAMPLEINDEX = 10,
|
||||
WINED3D_SV_PRIMITIVE_ID = 7,
|
||||
WINED3D_SV_INSTANCE_ID = 8,
|
||||
WINED3D_SV_IS_FRONT_FACE = 9,
|
||||
WINED3D_SV_SAMPLE_INDEX = 10,
|
||||
WINED3D_SV_QUAD_U0_TESS_FACTOR = 11,
|
||||
WINED3D_SV_QUAD_V0_TESS_FACTOR = 12,
|
||||
WINED3D_SV_QUAD_U1_TESS_FACTOR = 13,
|
||||
|
|
Loading…
Reference in New Issue