Skip to content

vkd3d-shader/hlsl: make hlsl_emit_bytecode reentrant

fx embedded shaders need the hlsl_emit_bytecode to be called multiple times, but there's the two issues of the lowering passes modifying the body, and the linked list of hlsl_ir_var that changes per entry function.

we then clone the body, so that lowering passes and copy-prop only affect a copy and not the original, as well as re-initializing the extern_var lists.

Edited by navi

Merge request reports

Loading