mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-12-15 08:03:30 -08:00
Emission of code into individual block instruction arrays was done to enable construction of a control flow graph. A graph is constructed from the flat instruction array in a later pass, so blocks are not needed. It is possible to emit instructions directly into the array in struct vsir_program instead of from sm6_function_emit_instructions(), but since the patch constant function occurs first in DXIL hull shaders, this would reverse the current order of functions in the flat array. That may be acceptable, but it is left for a later patch in case any issues arise.