use crate::kernels::CudaKernel;
#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
pub(crate) enum CudaKernelName {
CopyU8,
}
impl CudaKernelName {
pub(crate) fn kernel(self) -> CudaKernel {
match self {
Self::CopyU8 => CudaKernel::CopyU8,
}
}
pub(crate) fn entrypoint(self) -> &'static str {
match self {
Self::CopyU8 => "j2k_copy_u8",
}
}
}
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
pub(crate) struct CudaKernelModule {
pub(crate) entrypoint: &'static str,
}
impl CudaKernelModule {
pub(crate) fn entrypoint(&self) -> &'static str {
self.entrypoint
}
}