callnz bool - vs

Panggil jika bukan nol. Melakukan panggilan bersyarah ke instruksi yang ditandai oleh indeks label.

Sintaks

callnz l#, [!] B #

 

Dimana:

  • di mana l# adalah label - vs menandai awal subroutine yang akan dipanggil.
  • [!] adalah pengubah NOT boolean opsional.
  • b# mengidentifikasi Daftar Boolean Konstan.

Keterangan

Versi shader vertex 1_1 2_0 2_x 2_sw 3_0 3_sw
bool callnz x x x x x

 

Instruksi ini melakukan hal berikut:

if (specified boolean register is not zero)
{
    Push address of the next instruction to the return address stack.
    Continue execution from the instruction marked by the label.
}

Instruksi ini mengonsumsi satu slot instruksi shader vertex.

Instruksi Vertex Shader