mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-shader/ir: Use size_t in the parameter allocator.
The idea is to, by default, use size_t for any quantity that is a memory size or an array index.
This commit is contained in:
committed by
Henri Verbeet
parent
83e54bdc0c
commit
bb51b976df
Notes:
Henri Verbeet
2025-07-23 17:30:32 +02:00
Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1638
@@ -4087,14 +4087,14 @@ static void tpf_simple_instruction(struct tpf_compiler *tpf, const struct vkd3d_
|
||||
|
||||
if (ins->dst_count != dst_count)
|
||||
{
|
||||
ERR("Invalid destination count %u for vsir instruction %#x (expected %u).\n",
|
||||
ERR("Invalid destination count %zu for vsir instruction %#x (expected %u).\n",
|
||||
ins->dst_count, ins->opcode, dst_count);
|
||||
tpf->result = VKD3D_ERROR_INVALID_SHADER;
|
||||
return;
|
||||
}
|
||||
if (ins->src_count != src_count)
|
||||
{
|
||||
ERR("Invalid source count %u for vsir instruction %#x (expected %u).\n",
|
||||
ERR("Invalid source count %zu for vsir instruction %#x (expected %u).\n",
|
||||
ins->src_count, ins->opcode, src_count);
|
||||
tpf->result = VKD3D_ERROR_INVALID_SHADER;
|
||||
return;
|
||||
|
Reference in New Issue
Block a user