mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-09-13 09:16:14 -07:00
vkd3d-shader/d3dbc: Avoid D3DVS_VERSION and D3DPS_VERSION.
This commit is contained in:
parent
de6abd964e
commit
f163df787e
Notes:
Henri Verbeet
2024-09-10 21:56:24 +02:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Elizabeth Figura (@zfigura) Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1045
@ -1481,10 +1481,8 @@ struct d3dbc_compiler
|
|||||||
|
|
||||||
static uint32_t sm1_version(enum vkd3d_shader_type type, unsigned int major, unsigned int minor)
|
static uint32_t sm1_version(enum vkd3d_shader_type type, unsigned int major, unsigned int minor)
|
||||||
{
|
{
|
||||||
if (type == VKD3D_SHADER_TYPE_VERTEX)
|
return vkd3d_make_u32(vkd3d_make_u16(minor, major),
|
||||||
return D3DVS_VERSION(major, minor);
|
type == VKD3D_SHADER_TYPE_VERTEX ? VKD3D_SM1_VS : VKD3D_SM1_PS);
|
||||||
else
|
|
||||||
return D3DPS_VERSION(major, minor);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
D3DXPARAMETER_CLASS hlsl_sm1_class(const struct hlsl_type *type)
|
D3DXPARAMETER_CLASS hlsl_sm1_class(const struct hlsl_type *type)
|
||||||
|
Loading…
Reference in New Issue
Block a user