mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-12-15 08:03:30 -08:00
vkd3d-shader/ir: Use size_t in the instruction array.
This commit is contained in:
committed by
Henri Verbeet
parent
bb51b976df
commit
17ffd21113
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
@@ -1413,14 +1413,14 @@ struct vkd3d_shader_instruction_array
|
||||
struct vkd3d_shader_src_param *outpointid_param;
|
||||
};
|
||||
|
||||
bool shader_instruction_array_init(struct vkd3d_shader_instruction_array *instructions, unsigned int reserve);
|
||||
bool shader_instruction_array_reserve(struct vkd3d_shader_instruction_array *instructions, unsigned int reserve);
|
||||
bool shader_instruction_array_init(struct vkd3d_shader_instruction_array *instructions, size_t reserve);
|
||||
bool shader_instruction_array_reserve(struct vkd3d_shader_instruction_array *instructions, size_t reserve);
|
||||
bool shader_instruction_array_insert_at(struct vkd3d_shader_instruction_array *instructions,
|
||||
unsigned int idx, unsigned int count);
|
||||
size_t idx, size_t count);
|
||||
bool shader_instruction_array_add_icb(struct vkd3d_shader_instruction_array *instructions,
|
||||
struct vkd3d_shader_immediate_constant_buffer *icb);
|
||||
bool shader_instruction_array_clone_instruction(struct vkd3d_shader_instruction_array *instructions,
|
||||
unsigned int dst, unsigned int src);
|
||||
size_t dst, size_t src);
|
||||
void shader_instruction_array_destroy(struct vkd3d_shader_instruction_array *instructions);
|
||||
|
||||
struct vsir_program_iterator
|
||||
@@ -1463,7 +1463,7 @@ static inline struct vkd3d_shader_instruction *vsir_program_iterator_next(
|
||||
/* When insertion takes place, argument `it' is updated to point to the same
|
||||
* instruction as before the insertion, but all other iterators and pointers
|
||||
* to the same container are invalidated and cannot be used any more. */
|
||||
static inline bool vsir_program_iterator_insert_after(struct vsir_program_iterator *it, unsigned int count)
|
||||
static inline bool vsir_program_iterator_insert_after(struct vsir_program_iterator *it, size_t count)
|
||||
{
|
||||
return shader_instruction_array_insert_at(it->array, it->idx + 1, count);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user