vkd3d-shader/ir: Use a vkd3d_shader_instruction_array in struct cf_flattener.

This commit is contained in:
Francisco Casas
2025-09-16 03:12:59 -03:00
committed by Henri Verbeet
parent ebb180c2a8
commit 27dffc9f4e
Notes: Henri Verbeet 2025-09-29 13:04:35 +02:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1739
2 changed files with 35 additions and 38 deletions

View File

@@ -1486,8 +1486,9 @@ static inline struct vkd3d_shader_instruction *vsir_program_iterator_prev(
}
/* 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. */
* instruction as before the insertion, but all existing pointers to the same
* container, as well as any iterators pointing to instructions after the
* insertion point should be considered invalid. */
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);