Skip to content

Commit 9b8dbd4

Browse files
committed
fixes visibility issues
1 parent 572c857 commit 9b8dbd4

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

shader/src/lib.rs

+8-8
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,22 @@ use spirv_std::{spirv, glam::UVec3};
33

44
#[repr(C)]
55
#[derive(Clone, Copy)]
6-
struct Data {
7-
a: f32,
8-
b: [f32; 3],
9-
c: f32,
6+
pub struct Data {
7+
pub a: f32,
8+
pub b: [f32; 3],
9+
pub c: f32,
1010
}
1111

1212
#[derive(Clone, Copy)]
13-
union DataOrArray {
13+
pub union DataOrArray {
1414
arr: [f32; 5],
1515
str: Data,
1616
}
1717

1818
impl DataOrArray {
19-
fn arr(self) -> [f32; 5] { unsafe { self.arr } }
20-
fn str(self) -> Data { unsafe { self.str } }
21-
fn new(arr: [f32; 5]) -> Self { Self { arr } }
19+
pub fn arr(self) -> [f32; 5] { unsafe { self.arr } }
20+
pub fn str(self) -> Data { unsafe { self.str } }
21+
pub fn new(arr: [f32; 5]) -> Self { Self { arr } }
2222
}
2323

2424

0 commit comments

Comments
 (0)