libs/vkd3d-shader: Add FIXME comment for local function variables.

This commit is contained in:
Józef Kucia 2017-07-14 13:44:35 +02:00
parent a47724ce3a
commit 7c606089f1

View File

@ -1963,6 +1963,9 @@ static void vkd3d_dxbc_compiler_emit_dcl_temps(struct vkd3d_dxbc_compiler *compi
unsigned int i;
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);
compiler->temp_count = instruction->declaration.count;
for (i = 0; i < compiler->temp_count; ++i)