mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d-shader/tpf: Use enum vkd3d_shader_component_type in write_sm4_signature().
This commit is contained in:
parent
c1babbc8aa
commit
b61675d0f3
Notes:
Henri Verbeet
2024-09-04 18:50:38 +02:00
Approved-by: Elizabeth Figura (@zfigura) Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1032
@ -2918,16 +2918,16 @@ static void write_sm4_signature(struct hlsl_ctx *ctx, struct dxbc_writer *dxbc,
|
|||||||
{
|
{
|
||||||
case HLSL_TYPE_FLOAT:
|
case HLSL_TYPE_FLOAT:
|
||||||
case HLSL_TYPE_HALF:
|
case HLSL_TYPE_HALF:
|
||||||
put_u32(&buffer, D3D_REGISTER_COMPONENT_FLOAT32);
|
put_u32(&buffer, VKD3D_SHADER_COMPONENT_FLOAT);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case HLSL_TYPE_INT:
|
case HLSL_TYPE_INT:
|
||||||
put_u32(&buffer, D3D_REGISTER_COMPONENT_SINT32);
|
put_u32(&buffer, VKD3D_SHADER_COMPONENT_INT);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case HLSL_TYPE_BOOL:
|
case HLSL_TYPE_BOOL:
|
||||||
case HLSL_TYPE_UINT:
|
case HLSL_TYPE_UINT:
|
||||||
put_u32(&buffer, D3D_REGISTER_COMPONENT_UINT32);
|
put_u32(&buffer, VKD3D_SHADER_COMPONENT_UINT);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
@ -2935,7 +2935,7 @@ static void write_sm4_signature(struct hlsl_ctx *ctx, struct dxbc_writer *dxbc,
|
|||||||
hlsl_error(ctx, &var->loc, VKD3D_SHADER_ERROR_HLSL_INVALID_TYPE,
|
hlsl_error(ctx, &var->loc, VKD3D_SHADER_ERROR_HLSL_INVALID_TYPE,
|
||||||
"Invalid data type %s for semantic variable %s.", string->buffer, var->name);
|
"Invalid data type %s for semantic variable %s.", string->buffer, var->name);
|
||||||
hlsl_release_string_buffer(ctx, string);
|
hlsl_release_string_buffer(ctx, string);
|
||||||
put_u32(&buffer, D3D_REGISTER_COMPONENT_UNKNOWN);
|
put_u32(&buffer, VKD3D_SHADER_COMPONENT_VOID);
|
||||||
}
|
}
|
||||||
put_u32(&buffer, reg_idx);
|
put_u32(&buffer, reg_idx);
|
||||||
put_u32(&buffer, vkd3d_make_u16(width, use_mask));
|
put_u32(&buffer, vkd3d_make_u16(width, use_mask));
|
||||||
|
Loading…
Reference in New Issue
Block a user