Skip to main content

generic-effect

source

Functions


generic-initialize

generic-initialize(arg0: generic-dma-foreground-sink, arg1: matrix, arg2: vu-lights) => nonesource

generic-initialize-without-sink

generic-initialize-without-sink(arg0: matrix, arg1: vu-lights) => nonesource
Prepare for Generic.
Upload the generic vu0 block and set the matrix and lights.
The generic VU0 block is loaded to program address 0.

generic-upload-vu0

generic-upload-vu0() => nonesource
Start upload, but don't sync yet.
Generating the DMA chain is not as optimized.

generic-work-init

generic-work-init(arg0: generic-dma-foreground-sink) => nonesource
Initialize generic-work.

generic-wrapup

generic-wrapup(arg0: generic-dma-foreground-sink) => nonesource

upload-vu0-program

upload-vu0-program(func: vu-function, wait-ptr: pointer) => nonesource
Upload and block until done.
Generating the DMA is highly optimized.

Variables


*generic-consts*

*generic-consts*: generic-constssource

*target-lock*

*target-lock*: symbolsource

generic-h

source

Types


ad-cmd

ad-cmd: structuresource
Fields
word: uint32
quad: uint128
data: uint64
cmds: uint64
cmd: gs-reg
x: uint32
y: uint32
z: uint32
w: uint32

generic-consts

generic-consts: structuresource
Fields
dma-header: dma-packet
vif-header: uint32
dma-ref-vtxs: dma-packet
dma-cnt-call: dma-packet
matrix: matrix
base-strgif: generic-gif-tag
alpha-opaque: ad-cmd
alpha-translucent: ad-cmd
ztest-normal: ad-cmd
ztest-opaque: ad-cmd
adcmd-offsets: uint8
adcmds: ad-cmd
stcycle-tag: uint32
unpack-vtx-tag: uint32
unpack-clr-tag: uint32
unpack-tex-tag: uint32
mscal-tag: uint32
flush-tag: uint32
reset-cycle-tag: uint32
dummy0: uint32
dma-tag-cnt: uint64
envmap: generic-envmap-consts
light-consts: vector
texture-offset: uint16

generic-envmap-consts

generic-envmap-consts: structuresource
Fields
consts: vector
strgif: generic-gif-tag
colors: vector4w
shader: adgif-shader

generic-envmap-saves

generic-envmap-saves: structuresource
Fields
index-mask: vector4w
verts: uint128
kicks: uint128

generic-frag

generic-frag: structuresource
Fields
start-pos: uint16
end-pos: uint16

generic-gif-tag

generic-gif-tag: structuresource
Fields
data: uint32
qword: qword
fan-prim: uint32
str-prim: uint32
regs: uint32
num-strips: uint32

generic-interp-job

generic-interp-job: structuresource
Fields
job-type: uint16
num: uint16
first: uint16
pad: uint16
ptr-data: uint32
morph-z: uint16
morph-w: uint16

generic-saves

generic-saves: structuresource
Fields
ptr-dma: uint32
ptr-vtxs: uint32
ptr-clrs: uint32
ptr-texs: uint32
ptr-env-clrs: uint32
ptr-env-texs: uint32
cur-outbuf: uint32
ptr-fx-buf: uint32
xor-outbufs: uint32
num-dps: uint32
qwc: uint32
gsf-buf: gsf-buffer
ptr-shaders: uint32
ptr-env-shader: uint32
is-envmap: uint32
basep: uint32
ptr-interp-job: generic-interp-job
gifbuf-adr: uint32
inbuf-adr: uint32
fade-val: uint32
time-of-day-color: rgba
to-vu0-waits: uint32
to-spr-waits: uint32
from-spr-waits: uint32
envmap: generic-envmap-saves

generic-storage

generic-storage: structuresource
Fields
data: uint128

generic-strip

generic-strip: structuresource
Fields
pos: uint16
len: uint16

gsf-buffer

gsf-buffer: structuresource
Fields
data: uint8
info: gsf-info
header: gsf-header
work-area: uint8

gsf-fx-vertex

gsf-fx-vertex: structuresource
Fields
clr: vector4ub
tex: vector2uh

gsf-fx-vertex-array

gsf-fx-vertex-array: structuresource
Fields
data: gsf-fx-vertex

gsf-header

gsf-header: structuresource
Fields
num-strips: uint8
expanded: uint8
num-dps: uint16
num-vtxs: uint16
strip-table: uint8

gsf-ik

gsf-ik: structuresource
Fields
index: uint8
no-kick: uint8

gsf-info

gsf-info: structuresource
Fields
ptr-iks: uint32
ptr-verts: uint32
ptr-fx: uint32
dummy2: uint32

gsf-vertex

gsf-vertex: structuresource
Fields
data: uint32
byte: uint8
quad: uint128
vt: qword
pos: vector3s
tex: vector2uh
nrm: vector3s
nc: qword
clr: vector4ub
dtex: vector2uh
dclr: vector4ub

gsf-vertex-array

gsf-vertex-array: structuresource
Fields
vtx: gsf-vertex

Variables


*gsf-buffer*

*gsf-buffer*: gsf-buffersource

generic-merc

source

Types


invinitdata

invinitdata: structuresource
Fields
count: uint8
init-data: uint8
init-addr: uint16

Functions


generic-merc-add-to-cue

generic-merc-add-to-cue(arg0: generic-dma-foreground-sink) => nonesource

generic-merc-execute-all

generic-merc-execute-all(arg0: dma-buffer) => nonesource
Run the EE part of the generic renderer for all generic merc stuff.
This will build DMA data in the format for generic.

Variables


*inv-init-table*

*inv-init-table*: inline-arraysource

mercneric-vu0-block

const mercneric-vu0-block: vu-functionsource

generic-tie

source

Functions


generic-tie-execute

generic-tie-execute(arg0: generic-dma-foreground-sink, arg1: dma-buffer, arg2: basic) => nonesource

Variables


*generic-tie*

*generic-tie*: symbolsource

generic-vu0

source

Variables


generic-vu0-block

generic-vu0-block: vu-functionsource

generic-vu1-h

source

Types


generic-constants

generic-constants: structuresource
Fields
fog: vector
adgif: gs-gif-tag
giftag: gs-gif-tag
hvdf-offset: vector
hmge-scale: vector
invh-scale: vector
guard: vector
adnop: qword
flush: qword
stores: qword

generic-pris-mtx-save

generic-pris-mtx-save: structuresource
Fields
loc-mtx: pris-mtx
par-mtx: pris-mtx
dif-mtx: pris-mtx

pris-mtx

pris-mtx: structuresource
Fields
data: float
vector: vector
t-mtx: matrix
n-mtx: matrix3
scale: vector

generic-vu1

source

Functions


generic-add-constants

generic-add-constants(arg0: dma-buffer, arg1: int) => nonesource

generic-init-buf

generic-init-buf(arg0: dma-buffer, arg1: int, arg2: gs-zbuf) => nonesource

generic-setup-constants

generic-setup-constants(arg0: generic-constants, arg1: int) => nonesource

Variables


generic-vu1-block

generic-vu1-block: vu-functionsource

generic-work-h

source

Types


generic-debug

generic-debug: structuresource
Fields
locks: uint32
timer: uint32
count: uint32
vps: uint32
buffer: int32
start-addr: int32
lock: int32

generic-effect-buffer

generic-effect-buffer: structuresource
Fields
outbuf-0: uint8
work: generic-effect-work
outbuf-1: uint8

generic-effect-work

generic-effect-work: structuresource
Fields
consts: generic-consts
storage: generic-storage
storage2: generic-storage
lights: vu-lights

generic-input-buffer

generic-input-buffer: structuresource
Fields
merc: generic-merc-work
tie: generic-tie-work
data: uint128

generic-texbuf

generic-texbuf: structuresource
Fields
tag: dma-packet
header: generic-vu1-header
shader: uint32

generic-vu1-header

generic-vu1-header: structuresource
Fields
matrix: matrix
strgif: generic-gif-tag
adnop1: ad-cmd
adnop2: ad-cmd
adcmds: ad-cmd
dps: uint16
kickoff: uint16
strips: uint16

generic-vu1-texbuf

generic-vu1-texbuf: structuresource
Fields
header: generic-vu1-header
shader: uint32

generic-work

generic-work: structuresource

Variables


*generic-debug*

*generic-debug*: generic-debugsource

generic

source

Functions


generic-dma-foreground-sink-init

generic-dma-foreground-sink-init(arg0: generic-dma-foreground-sink) => nonesource

generic-init-buffers

generic-init-buffers() => symbolsource

generic-sink

generic-sink(i: int) => generic-dma-foreground-sinksource
Get the generic sink i

Variables


*generic-foreground-sinks*

*generic-foreground-sinks*: arraysource