Fix PrimBuild with non Fixed Function Pipeline.

Fix PrimBuild with non Fixed Function Pipeline.
Thx for you review :)

I will fix it.