Skip to content

Commit

Permalink
delete unused examples
Browse files Browse the repository at this point in the history
  • Loading branch information
shiinamiyuki committed Sep 22, 2023
1 parent 2f056e4 commit 3783950
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 170 deletions.
56 changes: 0 additions & 56 deletions luisa_compute/examples/sdf_renderer.rs

This file was deleted.

80 changes: 0 additions & 80 deletions luisa_compute/examples/shadertoy.rs

This file was deleted.

11 changes: 0 additions & 11 deletions luisa_compute/tests/misc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -954,14 +954,3 @@ fn atomic() {
assert_eq!(foo_min, expected_foo_min);

}


#[test]
fn expr_proxy() {
let device = get_device();
let foo = device.create_buffer_from_fn(1024, |_| Foo {
i: 0,
v: Float2::new(0.0, 0.0),
a: [0; 4],
});
}
23 changes: 0 additions & 23 deletions luisa_compute_track/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -344,26 +344,3 @@ fn track_impl(mut ast: Expr) -> TokenStream {

quote!(#ast)
}

#[test]
fn test_macro() {
#[rustfmt::skip]
assert_eq!(
track_impl(parse_quote!(|x: Expr<f32>, y: Expr<f32>| {
if x > y {
x * y
} else {
y * x + (x / 32.0 * PI).sin()
}
}))
.to_string(),
quote!(|x: Expr<f32>, y: Expr<f32>| {
<_ as ::luisa_compute::lang::maybe_expr::BoolIfElseMaybeExpr<_> >::if_then_else(
<_ as ::luisa_compute::lang::maybe_expr::PartialOrdMaybeExpr<_> >::gt(x, y),
| | { x * y },
| | { y * x + (x / 32.0 * PI).sin() }
)
})
.to_string()
);
}

0 comments on commit 3783950

Please sign in to comment.