mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-04-13 05:43:18 -07:00
libs/vkd3d-shader: Add FIXME comment for local function variables.
This commit is contained in:
parent
a47724ce3a
commit
7c606089f1
@ -1963,6 +1963,9 @@ static void vkd3d_dxbc_compiler_emit_dcl_temps(struct vkd3d_dxbc_compiler *compi
|
|||||||
unsigned int i;
|
unsigned int i;
|
||||||
uint32_t id;
|
uint32_t id;
|
||||||
|
|
||||||
|
/* FIXME: Make sure that function variables are declared at the beginning
|
||||||
|
* of the first block in the function. Otherwise, we'll produce invalid
|
||||||
|
* SPIR-V code. */
|
||||||
assert(!compiler->temp_count);
|
assert(!compiler->temp_count);
|
||||||
compiler->temp_count = instruction->declaration.count;
|
compiler->temp_count = instruction->declaration.count;
|
||||||
for (i = 0; i < compiler->temp_count; ++i)
|
for (i = 0; i < compiler->temp_count; ++i)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user