Shader use register constant array index
Today I wonder if using register constant array index will influence performance. I design my experiment is a three point light shading shader:
- Lighting color, intensity, and position all them use three constant floating to set into shader separately.
- Use color, intensity, and position array, their size is three for shader computing.