Fix PrimBuild with non Fixed Function Pipeline.

Fix PrimBuild with non Fixed Function Pipeline.