vkd3d-shader/hlsl: Use a simple counter for indexable temps.

This commit is contained in:
Elizabeth Figura
2025-07-09 19:45:48 -05:00
committed by Henri Verbeet
parent 8db9465693
commit a44d79a13c
Notes: Henri Verbeet 2025-09-04 14:12:02 +02:00
Approved-by: Francisco Casas (@fcasas)
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1713
2 changed files with 19 additions and 39 deletions

View File

@@ -1187,8 +1187,8 @@ struct hlsl_ctx
} constant_defs;
/* 'c' registers where the constants expected by SM2 sincos are stored. */
struct hlsl_reg d3dsincosconst1, d3dsincosconst2;
/* Number of allocated SSA and temp IDs, used in translation to vsir. */
unsigned int ssa_count, temp_count;
/* Number of allocated registers, used in translation to vsir. */
unsigned int ssa_count, temp_count, indexable_temp_count;
/* Number of threads to be executed (on the X, Y, and Z dimensions) in a single thread group in
* compute shader profiles. It is set using the numthreads() attribute in the entry point. */