[vfx] refactor a bit init code for testing in vfx.c example
[vfx] refactor a bit init code for testing in vfx.c example

OpenISS/OpenISS,OpenISS/OpenISS,OpenISS/OpenISS,OpenISS/OpenISS,OpenISS/OpenISS,OpenISS/OpenISS,OpenISS/OpenISS