Skip to main content

Module functions

Module functions 

Source
Expand description

Auto-generated module

🤖 Generated with SplitRS

Constants§

BOUNDARY_ENFORCE_WGSL
WGSL compute shader for boundary condition enforcement.
BROADPHASE_SORT_SHADER
WGSL compute shader for bitonic sort used in SAP broadphase.
CELL_LIST_WGSL
WGSL compute shader for parallel cell-list construction.
INTEGRATE_WGSL
WGSL shader for particle integration (velocity Verlet half-step).
LBM_BGK_D2Q9_WGSL
WGSL shader for LBM BGK collision (D2Q9).
LBM_STREAMING_SHADER
WGSL compute shader for LBM streaming step (D3Q19).
RIGID_INTEGRATE_SHADER
WGSL compute shader for rigid body semi-implicit Euler integration.
SDF_COMPUTE_WGSL
WGSL compute shader that computes a sphere SDF on the GPU.
SPH_DENSITY_WGSL
WGSL compute shader for SPH density computation.
SPH_FORCE_WGSL
WGSL compute shader for SPH pressure force computation.

Functions§

count_total_bindings
Count the total number of binding annotations across all built-in shaders.
mock_compile_to_spirv
Produce a mock SPIR-V byte sequence from WGSL source.
resolve_includes
Resolves #include "filename" directives in shader source.
validate_shader_metadata
Validate that a ShaderMetadata record is internally consistent.
validate_shader_sources
Validate that all built-in shader sources contain the @compute entry point marker.
validate_wgsl_structure
Validate that a WGSL source has basic structural correctness.