pub mod cache;
pub mod device;
pub mod serializer;
pub mod shader;
pub mod workgroup_size;
pub use workgroup_size::WORKGROUP_SIZE;
pub use cache::lru::AccessTracker;
pub use cache::tier::{AccessStats, CacheError, LruPolicy, TierPolicy};
pub use device::cached_device::cached_device;
pub use shader::compile_compute_pipeline::{
compile_compute_pipeline, compile_compute_pipeline_with_layout,
};
#[must_use]
#[inline]
pub fn bg_entry(binding: u32, buffer: &wgpu::Buffer) -> wgpu::BindGroupEntry<'_> {
wgpu::BindGroupEntry {
binding,
resource: buffer.as_entire_binding(),
}
}