pub const ENTRY_POINT: &str = "workgroup_union_find_kernel";
pub const ENTRY_POINT_DECL: &str =
"@compute @workgroup_size(64, 1, 1)\nfn workgroup_union_find_kernel";
pub const BACKEND_FAMILY: &str = "workgroup";
pub const WGSL: &str = include_str!("union_find.wgsl");
#[must_use]
pub const fn shader_source() -> &'static str {
WGSL
}
#[must_use]
pub const fn backend_family() -> &'static str {
BACKEND_FAMILY
}
#[must_use]
pub fn exposes_registered_entry_point() -> bool {
WGSL.contains(ENTRY_POINT_DECL)
}
#[cfg(test)]
mod tests {
use super::exposes_registered_entry_point;
#[test]
fn entry_point_matches_compute_declaration() {
assert!(exposes_registered_entry_point());
}
}