mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-09-13 09:16:14 -07:00
vkd3d-shader/d3dbc: Use VKD3D_SM1_DCL_USAGE_SHIFT and VKD3D_SM1_DCL_USAGE_INDEX_SHIFT in d3dbc_write_semantic_dcl().
This commit is contained in:
parent
1aa857735f
commit
14ee3b3e4a
Notes:
Henri Verbeet
2024-09-12 18:58:10 +02:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1065
@ -2264,8 +2264,8 @@ static void d3dbc_write_semantic_dcl(struct d3dbc_compiler *d3dbc,
|
|||||||
put_u32(buffer, token);
|
put_u32(buffer, token);
|
||||||
|
|
||||||
token = (1u << 31);
|
token = (1u << 31);
|
||||||
token |= usage << D3DSP_DCL_USAGE_SHIFT;
|
token |= usage << VKD3D_SM1_DCL_USAGE_SHIFT;
|
||||||
token |= usage_idx << D3DSP_DCL_USAGEINDEX_SHIFT;
|
token |= usage_idx << VKD3D_SM1_DCL_USAGE_INDEX_SHIFT;
|
||||||
put_u32(buffer, token);
|
put_u32(buffer, token);
|
||||||
|
|
||||||
reg.writemask = element->mask;
|
reg.writemask = element->mask;
|
||||||
|
Loading…
Reference in New Issue
Block a user