Parents: | benchmark |
Authors: | Slava Pestov |
Class | Superclass | Slots |
group | sphere | objs |
hit | tuple | normal lambda |
ray | tuple | orig dir |
sphere | tuple | center radius |
Word | Syntax |
no-compile |
Word | Stack effect |
-+ | ( x y -- x-y x+y ) |
<group> | ( objs bound -- group ) |
<hit> | ( normal lambda -- hit ) |
<ray> | ( orig dir -- ray ) |
<sphere> | ( center radius -- sphere ) |
cast-ray | ( ray scene -- g ) |
create | ( level c r -- scene ) |
create-bound | ( c r -- sphere ) |
create-center | ( c r d -- c2 ) |
create-group | ( level c r -- scene ) |
create-offsets | ( -- value ) |
create-step | ( level c r d -- scene ) |
delta | ( -- n ) |
if-ray-sphere | ( hit ray sphere quot: ( hit ray sphere l -- hit ) -- hit ) |
initial-hit | ( -- value ) |
initial-intersect | ( ray scene -- hit ) |
intersect-scene | ( hit ray scene -- hit ) |
levels | ( -- value ) |
light | ( -- value ) |
make-group | ( bound quot -- ) |
oversampling | ( -- value ) |
pgm-header | ( w h -- ) |
pgm-pixel | ( n -- ) |
ray-g | ( hit -- g ) |
ray-o | ( ray hit -- o ) |
ray-pixel | ( scene point -- ray-grid ) |
ray-sphere | ( sphere ray -- t ) |
ray-trace | ( scene -- grid ) |
raytracer-simd-benchmark | ( -- ) |
run-raytracer-simd | ( -- string ) |
size | ( -- value ) |
sphere-b | ( v ray -- b ) |
sphere-b&v | ( sphere ray -- b v ) |
sphere-d | ( sphere b v -- d ) |
sphere-n | ( ray sphere l -- n ) |
sphere-t | ( b d -- t ) |
sphere-v | ( sphere ray -- v ) |
sray-intersect | ( ray scene hit -- ray ) |
ss-point | ( dx dy -- point ) |
Word | Stack effect |
group? | ( object -- ? ) |
hit? | ( object -- ? ) |
ray? | ( object -- ? ) |
sphere? | ( object -- ? ) |