Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Temporary Register

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

Syntax



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.

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.