mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d-shader/tpf: Determine SIV from SV and index in write_sm4_dcl_semantic().
This commit is contained in:
parent
df3aaac7cf
commit
ae2d86b99c
Notes:
Henri Verbeet
2024-10-16 21:47:54 +02:00
Approved-by: Elizabeth Figura (@zfigura) Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1187
@ -4918,7 +4918,7 @@ static void write_sm4_dcl_semantic(const struct tpf_compiler *tpf, const struct
|
|||||||
{
|
{
|
||||||
VKD3D_ASSERT(semantic != VKD3D_SHADER_SV_NONE);
|
VKD3D_ASSERT(semantic != VKD3D_SHADER_SV_NONE);
|
||||||
instr.idx_count = 1;
|
instr.idx_count = 1;
|
||||||
instr.idx[0] = semantic;
|
instr.idx[0] = vkd3d_siv_from_sysval_indexed(semantic, var->semantic.index);
|
||||||
}
|
}
|
||||||
|
|
||||||
write_sm4_instruction(tpf, &instr);
|
write_sm4_instruction(tpf, &instr);
|
||||||
|
Loading…
Reference in New Issue
Block a user