Skip to content

Commit

Permalink
add space in array shader type
Browse files Browse the repository at this point in the history
  • Loading branch information
victorvde committed Jul 27, 2023
1 parent d9f0761 commit 06a624b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/types/array.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ impl<T: ShaderType + ShaderSize, const N: usize> ShaderType for [T; N] {
const SHADER_TYPE: &'static ::core::primitive::str = ConstStr::new()
.str("array<")
.str(T::SHADER_TYPE)
.str(",")
.str(", ")
.u64(N as u64)
.str(">")
.as_str();
Expand Down
18 changes: 9 additions & 9 deletions tests/general.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,15 +181,15 @@ fn wgsl_struct() {
mat4x2: mat2x4<f32>,
mat4x3: mat3x4<f32>,
mat4: mat4x4<f32>,
arrf: array<f32,32>,
arru: array<u32,32>,
arri: array<i32,32>,
arrvf: array<vec2<f32>,16>,
arrvu: array<vec3<u32>,16>,
arrvi: array<vec4<i32>,16>,
arrm2: array<mat2x2<f32>,8>,
arrm3: array<mat3x3<f32>,8>,
arrm4: array<mat4x4<f32>,8>,
arrf: array<f32, 32>,
arru: array<u32, 32>,
arri: array<i32, 32>,
arrvf: array<vec2<f32>, 16>,
arrvu: array<vec3<u32>, 16>,
arrvi: array<vec4<i32>, 16>,
arrm2: array<mat2x2<f32>, 8>,
arrm3: array<mat3x3<f32>, 8>,
arrm4: array<mat4x4<f32>, 8>,
rt_arr_len: u32,
rt_arr: array<mat3x2<f32>>,
}
Expand Down

0 comments on commit 06a624b

Please sign in to comment.