Test custom types with cubes example

This commit is contained in:
Werner
2022-01-05 09:41:22 -03:00
parent f45d465c3f
commit 1ac2662011
10 changed files with 153 additions and 130 deletions

View File

@ -30,7 +30,7 @@ impl Shader {
pub fn FromGlsl(stage: ShaderStage, glsl: &str) -> Self {
Self {
label: "".into(),
label: "Glsl".into(),
source: ShaderSource::Glsl(glsl.to_string()),
stage,
}
@ -38,7 +38,7 @@ impl Shader {
pub fn FromWgsl(wgsl: &str) -> Self {
Self {
label: "".into(),
label: "Wgsl".into(),
source: ShaderSource::Wgsl(wgsl.to_string()),
stage: ShaderStage::Multiple,
}