Temporary Register

Pixel shader input temporary registers are used to hold intermediate results.


no declaration is required

Pixel shader versions1_11_21_31_42_02_sw2_x3_03_sw
Temporary Registerxxxxx


  • There are 12 pixel-shader temporary registers: r0 to r11.
  • These registers are used for storing intermediate results during computations.
  • If a temporary register uses components that are not defined in previous code, shader validation will fail.
  • These are at least floating-point precision.
  • A maximum of three can be used in a single instruction.

Related topics