Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pastebin #1

Closed
BenXu86 opened this issue Jul 11, 2021 · 0 comments
Closed

pastebin #1

BenXu86 opened this issue Jul 11, 2021 · 0 comments

Comments

@BenXu86
Copy link
Collaborator

BenXu86 commented Jul 11, 2021

=== ZFX
define f3 @pos
define f3 @vel
define f1 arg0
parname arg0.0
@vel += arg0 * vec3(0,-9.8,0)
@pos += @vel * arg0

=== Parser
(+= vel (* arg0 (vec3 0 (- 9.8) 0)))
(+= pos (* vel arg0))
=== Transcriptor

  • $arg0 $_Tm1 $_Tm2
  • $_Tm3 @pos @pos
    === InitialPass
    sub $_Tm0 add option form #9.8
    vec3 $_Tm1 #0 $_Tm0 #0
    mul $_Tm2 $arg0 $_Tm1
    add @vel $_Tm2 @vel
    mul $_Tm3 @vel $arg0
    add @pos $_Tm3 @pos
    === UnfuncPass
    define f1 $_Tm0
    define f1 $_Tm1
    define f1 $_Tm2
    define f3 $_Tm3
    define f3 $_Tp0
    define f1 $arg0
    define f3 @pos
    define f3 @vel
    sub $_Tm0 add option form #9.8
    mov $_Tp0.0 #0
    mov $_Tp0.1 $_Tm0
    mov $_Tp0.2 #0
    mov $_Tm1 $_Tp0
    mul $_Tm2 $arg0 $_Tm1
    add @vel $_Tm2 @vel
    mul $_Tm3 @vel $arg0
    add @pos $_Tm3 @pos
    === UnwrapPass
    define f1 $_Tm0
    define f3 $_Tm1
    define f3 $_Tm2
    define f3 $_Tm3
    define f3 $_Tp0
    define f1 $_Tp0.0
    define f1 $_Tp0.1
    define f1 $_Tp0.2
    define f1 $arg0
    define f3 @pos
    define f3 @vel
    sub $_Tm0.0 add option form #9.8
    mov $_Tp0.0 #0
    mov $_Tp0.0 #0
    mov $_Tp0.0 #0
    mov $_Tp0.1 $_Tm0.0
    mov $_Tp0.1 $_Tm0.0
    mov $_Tp0.1 $_Tm0.0
    mov $_Tp0.2 #0
    mov $_Tp0.2 #0
    mov $_Tp0.2 #0
    mov $_Tm1.0 $_Tp0.0
    mov $_Tm1.1 $_Tp0.1
    mov $_Tm1.2 $_Tp0.2
    mul $_Tm2.0 $arg0.0 $_Tm1.0
    mul $_Tm2.1 $arg0.0 $_Tm1.1
    mul $_Tm2.2 $arg0.0 $_Tm1.2
    add @vel.0 $_Tm2.0 @vel.0
    add @vel.1 $_Tm2.1 @vel.1
    add @vel.2 $_Tm2.2 @vel.2
    mul $_Tm3.0 @vel.0 $arg0.0
    mul $_Tm3.1 @vel.1 $arg0.0
    mul $_Tm3.2 @vel.2 $arg0.0
    add @pos.0 $_Tm3.0 @pos.0
    add @pos.1 $_Tm3.1 @pos.1
    add @pos.2 $_Tm3.2 @pos.2
    === ReassignPass
    bind 3 pos.0
    bind 4 pos.1
    bind 5 pos.2
    bind 0 vel.0
    bind 1 vel.1
    bind 2 vel.2
    parm 0 arg0.0
    sub $1 add option form #9.8
    mov $2 #0
    mov $2 #0
    mov $2 #0
    mov $3 $1
    mov $3 $1
    mov $3 $1
    mov $4 #0
    mov $4 #0
    mov $4 #0
    mov $5 $2
    mov $6 $3
    mov $7 $4
    mul $8 $0 $5
    mul $9 $0 $6
    mul $10 $0 $7
    add @0 $8 @0
    add @1 $9 @1
    add @2 $10 @2
    mul $11 @0 $0
    mul $12 @1 $0
    mul $13 @2 $0
    add @3 $11 @3
    add @4 $12 @4
    add @5 $13 @5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants