mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-12-15 08:03:30 -08:00
vkd3d-shader/dxil: Emit an error if a return instruction has operands.
This commit is contained in:
committed by
Henri Verbeet
parent
32d0613bcb
commit
8a6c5cb401
Notes:
Henri Verbeet
2025-11-20 18:36:32 +01:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1133
@@ -7742,7 +7742,8 @@ static void sm6_parser_emit_ret(struct sm6_parser *dxil,
|
||||
return;
|
||||
|
||||
if (record->operand_count)
|
||||
FIXME("Non-void return is not implemented.\n");
|
||||
vkd3d_shader_parser_error(&dxil->p, VKD3D_SHADER_ERROR_DXIL_INVALID_OPERAND_COUNT,
|
||||
"Non-void return is not implemented.");
|
||||
|
||||
vsir_instruction_init(ins, &dxil->p.location, VSIR_OP_RET);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user