call - ps

Performs a function call to the instruction marked with the provided label.

Syntax

call l#

 

Where:

  • l# is a label - ps marking the beginning of the subroutine to be called.

Remarks

Pixel shader versions 1_1 1_2 1_3 1_4 2_0 2_x 2_sw 3_0 3_sw
call x x x x

 

This instruction does the following:

  1. Push address of the next instruction to the return address stack.
  2. Continue execution from the instruction marked by the label.

Pixel Shader Instructions