mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-12-15 08:03:30 -08:00
vkd3d-shader/ir: Use the iterator in vsir_program_lower_ifc().
This commit is contained in:
committed by
Henri Verbeet
parent
2d848b5bc0
commit
9867d48c3a
Notes:
Henri Verbeet
2025-07-17 14:18:45 +02:00
Approved-by: Francisco Casas (@fcasas) Approved-by: Elizabeth Figura (@zfigura) Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1614
@@ -1456,6 +1456,14 @@ static inline struct vkd3d_shader_instruction *vsir_program_iterator_next(
|
||||
return vsir_program_iterator_current(iterator);
|
||||
}
|
||||
|
||||
/* 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)
|
||||
{
|
||||
return shader_instruction_array_insert_at(it->array, it->idx + 1, count);
|
||||
}
|
||||
|
||||
enum vkd3d_shader_config_flags
|
||||
{
|
||||
VKD3D_SHADER_CONFIG_FLAG_FORCE_VALIDATION = 0x00000001,
|
||||
|
||||
Reference in New Issue
Block a user