tensor_compute 0.1.0

A Tensor computing library for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
mod shader_runner;
use crate::gpu_internals::GpuInstance;
pub use shader_runner::*;
use wgpu::{ShaderModule, ShaderModuleSource};

impl GpuInstance {
    pub fn shader_from_file_bytes(&self, shader_module: ShaderModuleSource) -> ShaderModule {
        let cs_module = self.device().create_shader_module(shader_module);
        cs_module
    }
}