Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/andrewosh/cellarium
/ functions
Functions
212 in github.com/andrewosh/cellarium
⨍
Functions
212
◇
Types & classes
47
↓ 38 callers
Function
emit_expr
(expr: &Expr, ctx: &mut EmitCtx, closure_param: Option<&str>)
macros/src/lower.rs:384
↓ 23 callers
Method
title
(mut self, title: &str)
src/runtime.rs:43
↓ 22 callers
Method
run
(self)
src/runtime.rs:64
↓ 19 callers
Method
ticks_per_frame
(mut self, n: u32)
src/runtime.rs:48
↓ 12 callers
Method
neighbor_field_fetch
(&self, field_name: &str)
macros/src/lower.rs:375
↓ 8 callers
Method
distance
(self, other: Self)
src/types.rs:45
↓ 8 callers
Function
emit_expr_with_prefix
(expr: &Expr, ctx: &mut EmitCtx, closure_param: &str, prefix: &str)
macros/src/lower.rs:1035
↓ 6 callers
Method
length
(self)
src/types.rs:32
↓ 5 callers
Function
expr_spatial_needs
Check if an expression tree contains spatial accessor calls (offset/direction/distance) Which spatial accessors an expression needs: (offset, distance
macros/src/lower.rs:222
↓ 5 callers
Function
flush_pending_spatial_ops
(ctx: &mut EmitCtx)
macros/src/lower.rs:1090
↓ 4 callers
Method
adjust_param
(&mut self, idx: usize, factor: f32)
src/tui.rs:53
↓ 4 callers
Function
discover_neighbor_fields_in_expr
Discover fields accessed via c.X in closure bodies (neighbor fields)
macros/src/lower.rs:164
↓ 4 callers
Method
is_replaying
(&self)
src/tui.rs:143
↓ 4 callers
Method
radius
(&self)
macros/src/lower.rs:23
↓ 4 callers
Function
user_var
Prefix all user-defined variable/constant names to avoid WGSL keyword collisions.
macros/src/lower.rs:7
↓ 4 callers
Method
write_uniforms
(&self, tick: u32)
src/runtime.rs:136
↓ 3 callers
Function
discover_fields_in_block
(block: &Block, names: &mut Vec<FieldDef>, seen: &mut HashSet<String>)
macros/src/lower.rs:82
↓ 3 callers
Function
emit_param_reads
(info: &CellImplInfo)
macros/src/lower.rs:1464
↓ 3 callers
Function
emit_spatial_op
(op: &SpatialOp, ctx: &mut EmitCtx, var_prefix: &str)
macros/src/lower.rs:744
↓ 3 callers
Method
field_texture_swizzle
(&self, field_name: &str)
macros/src/lower.rs:353
↓ 3 callers
Method
finalize_replay
Call after replay finishes to snapshot current state and allow new recording.
src/tui.rs:148
↓ 3 callers
Function
fold_iter
(iter: &mut dyn Iterator<Item=(bool,bool,bool)>)
macros/src/lower.rs:224
↓ 3 callers
Method
read_views
(&self)
src/texture.rs:56
↓ 3 callers
Method
set_param
(&mut self, idx: usize, value: f32)
src/tui.rs:65
↓ 3 callers
Function
validate_method_body
(block: &Block, method: &str, neighborhood: &Neighborhood)
macros/src/check.rs:5
↓ 3 callers
Function
validate_stmt
(stmt: &Stmt, method: &str, neighborhood: &Neighborhood)
macros/src/check.rs:12
↓ 2 callers
Function
compute_tile_config
(radius: u32, num_textures: u32)
macros/src/lower.rs:1479
↓ 2 callers
Function
create_bind_group
( device: &Device, layout: &BindGroupLayout, texture_views: &[&TextureView], uniform_buffer: &
src/pipeline.rs:287
↓ 2 callers
Function
create_view_pipeline
( device: &Device, shader: &ShaderModule, bind_group_layout: &BindGroupLayout, surface_format:
src/pipeline.rs:199
↓ 2 callers
Function
discover_fields
(block: &Block)
macros/src/lower.rs:75
↓ 2 callers
Function
discover_fields_in_expr
(expr: &Expr, names: &mut Vec<FieldDef>, seen: &mut HashSet<String>)
macros/src/lower.rs:96
↓ 2 callers
Function
emit_return_struct
(expr: &Expr, ctx: &mut EmitCtx)
macros/src/lower.rs:1355
↓ 2 callers
Function
emit_stmt
(stmt: &Stmt, ctx: &mut EmitCtx)
macros/src/lower.rs:1277
↓ 2 callers
Function
emit_struct_output
(s: &ExprStruct, ctx: &mut EmitCtx)
macros/src/lower.rs:1379
↓ 2 callers
Function
emit_vertex_shader
()
macros/src/lower.rs:1475
↓ 2 callers
Method
ensure_self_field
(&mut self, field_name: &str)
macros/src/lower.rs:333
↓ 2 callers
Method
neighbor_count
(&self)
macros/src/lower.rs:38
↓ 2 callers
Function
parse_spatial_op
(mc: &ExprMethodCall)
macros/src/lower.rs:693
↓ 2 callers
Method
record_reset
(&mut self)
src/tui.rs:80
↓ 2 callers
Method
record_resize
(&mut self, width: u32, height: u32)
src/tui.rs:93
↓ 2 callers
Method
run_init_shader
(&mut self)
src/runtime.rs:263
↓ 2 callers
Method
run_tick
(&mut self)
src/runtime.rs:157
↓ 2 callers
Function
save_params
(state: &ParamState)
src/tui.rs:158
↓ 2 callers
Method
skip_condition
(&self)
macros/src/lower.rs:31
↓ 2 callers
Function
validate_expr
(expr: &Expr, method: &str, neighborhood: &Neighborhood, in_closure: bool)
macros/src/check.rs:31
↓ 2 callers
Method
write_defaults
(&self, queue: &Queue, defaults: &[[f32; 4]])
src/texture.rs:76
↓ 1 callers
Method
apply_pending_replay
Returns any pending actions (reset, resize) that the caller must perform.
src/tui.rs:112
↓ 1 callers
Function
cell_impl
(attr: TokenStream, item: TokenStream)
macros/src/parse.rs:55
↓ 1 callers
Function
create_bind_group_layout
(device: &Device, texture_count: u32, label: &str)
src/pipeline.rs:147
↓ 1 callers
Function
create_compute_bind_group
( device: &Device, layout: &BindGroupLayout, read_views: &[&TextureView], write_views: &[&Text
src/pipeline.rs:315
↓ 1 callers
Function
create_compute_bind_group_layout
(device: &Device, texture_count: u32)
src/pipeline.rs:77
↓ 1 callers
Function
create_compute_pipeline
( device: &Device, shader: &ShaderModule, bind_group_layout: &BindGroupLayout, )
src/pipeline.rs:126
↓ 1 callers
Function
create_init_bind_group_layout
(device: &Device)
src/pipeline.rs:182
↓ 1 callers
Function
create_init_pipeline
( device: &Device, shader: &ShaderModule, bind_group_layout: &BindGroupLayout, texture_count:
src/pipeline.rs:241
↓ 1 callers
Function
create_pipelines
( device: &Device, texture_count: u32, update_shader_src: &str, view_shader_src: &str, ini
src/pipeline.rs:28
↓ 1 callers
Function
derive_cell_state_impl
(input: TokenStream)
macros/src/layout.rs:33
↓ 1 callers
Function
draw_ui
(f: &mut ratatui::Frame, state: &ParamState)
src/tui.rs:320
↓ 1 callers
Function
emit_binary
(bin: &ExprBinary, ctx: &mut EmitCtx, closure_param: Option<&str>)
macros/src/lower.rs:475
↓ 1 callers
Function
emit_call
(call: &ExprCall, ctx: &mut EmitCtx, closure_param: Option<&str>)
macros/src/lower.rs:602
↓ 1 callers
Function
emit_compute_shader_header
(info: &CellImplInfo, num_textures: usize, tile_size: u32, radius: u32, use_shared: bool)
macros/src/lower.rs:1501
↓ 1 callers
Function
emit_field
(field: &ExprField, ctx: &mut EmitCtx, closure_param: Option<&str>)
macros/src/lower.rs:452
↓ 1 callers
Function
emit_fused_spatial_ops
(ops: &[DeferredSpatialOp], ctx: &mut EmitCtx)
macros/src/lower.rs:1109
↓ 1 callers
Function
emit_if
(if_expr: &ExprIf, ctx: &mut EmitCtx, closure_param: Option<&str>)
macros/src/lower.rs:634
↓ 1 callers
Function
emit_init_shader
(info: &CellImplInfo, block: &Block)
macros/src/lower.rs:1733
↓ 1 callers
Function
emit_lit
(lit: &ExprLit)
macros/src/lower.rs:416
↓ 1 callers
Function
emit_method_call
(mc: &ExprMethodCall, ctx: &mut EmitCtx, closure_param: Option<&str>)
macros/src/lower.rs:505
↓ 1 callers
Function
emit_path
(path: &ExprPath, ctx: &mut EmitCtx)
macros/src/lower.rs:425
↓ 1 callers
Function
emit_shader_header
(info: &CellImplInfo, num_textures: usize)
macros/src/lower.rs:1425
↓ 1 callers
Function
emit_unary
(un: &ExprUnary, ctx: &mut EmitCtx, closure_param: Option<&str>)
macros/src/lower.rs:496
↓ 1 callers
Function
emit_update_shader
(info: &CellImplInfo, block: &Block)
macros/src/lower.rs:1563
↓ 1 callers
Function
emit_view_return
(expr: &Expr, ctx: &mut EmitCtx)
macros/src/lower.rs:1713
↓ 1 callers
Function
emit_view_shader
(info: &CellImplInfo, block: &Block)
macros/src/lower.rs:1649
↓ 1 callers
Function
extract_self_type_name
(item_impl: &ItemImpl)
macros/src/parse.rs:43
↓ 1 callers
Function
is_fusible
(kind: &SpatialKind)
macros/src/lower.rs:668
↓ 1 callers
Function
load_params
(state: &mut ParamState, path: &Path)
src/tui.rs:177
↓ 1 callers
Function
mix
(a: f32, b: f32, t: f32)
src/types.rs:348
↓ 1 callers
Method
next_id
(&mut self)
macros/src/lower.rs:327
↓ 1 callers
Function
parse_neighborhood
(attr: &TokenStream)
macros/src/parse.rs:11
↓ 1 callers
Method
render
(&mut self, window: &Window)
src/runtime.rs:201
↓ 1 callers
Function
run_tui
(shared: &SharedParams)
src/tui.rs:236
↓ 1 callers
Function
smoothstep
(lo: f32, hi: f32, x: f32)
src/types.rs:356
↓ 1 callers
Function
spawn
(shared: SharedParams)
src/tui.rs:228
↓ 1 callers
Method
swap
(&mut self)
src/texture.rs:72
↓ 1 callers
Method
take_screenshot
(&mut self)
src/runtime.rs:324
↓ 1 callers
Function
try_parse_spatial_assignment
(expr: &Expr)
macros/src/lower.rs:1348
↓ 1 callers
Function
type_size
(ty: &Type)
macros/src/layout.rs:10
↓ 1 callers
Function
uniform_buffer_size
(param_count: usize)
src/pipeline.rs:23
↓ 1 callers
Method
write_views
(&self)
src/texture.rs:60
Method
add
(self, rhs: Self)
src/types.rs:52
Function
atan2
(y: f32, x: f32)
src/types.rs:361
Function
cell
(attr: TokenStream, item: TokenStream)
macros/src/lib.rs:16
Method
clear_history
(&mut self)
src/tui.rs:137
Method
cross
(self, other: Self)
src/types.rs:140
Method
default
()
examples/gray_scott.rs:10
Method
default
()
examples/cahn_hilliard.rs:10
Function
derive_cell_state
(input: TokenStream)
macros/src/lib.rs:9
Method
div
(self, rhs: Self)
src/types.rs:67
Method
dot
(self, other: Self)
src/types.rs:41
Function
expr_needs_spatial_accessors
(expr: &Expr, closure_param: &str)
macros/src/lower.rs:291
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
macros/src/lower.rs:59
next →
1–100 of 212, ranked by callers