blob: 8cdf98f75902ecd0feae92ce29777934964ac484 (
plain)
1
2
3
4
5
6
7
8
9
10
|
const glslang = @import("main.zig");
var initialized: bool = false;
/// Call this function before any other tests in this package to ensure that
/// the glslang library is initialized.
pub fn ensureInit() !void {
if (initialized) return;
try glslang.init();
}
|