init commit
This commit is contained in:
commit
15a4041785
20 changed files with 37592 additions and 0 deletions
7
crates/shaders-shared/Cargo.toml
Normal file
7
crates/shaders-shared/Cargo.toml
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
[package]
|
||||
name = "shaders-shared"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
glam.workspace = true
|
||||
11
crates/shaders-shared/src/lib.rs
Normal file
11
crates/shaders-shared/src/lib.rs
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
#![cfg_attr(target_arch = "spirv", no_std)]
|
||||
|
||||
use glam::Mat4;
|
||||
|
||||
#[repr(C)]
|
||||
#[derive(Clone)]
|
||||
pub struct UniformBufferObject {
|
||||
pub model: Mat4,
|
||||
pub view: Mat4,
|
||||
pub proj: Mat4,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue