|
@@ -10,10 +10,10 @@ WGPU_DEBUG :: #config(WGPU_DEBUG, false)
|
|
when ODIN_OS == .Windows {
|
|
when ODIN_OS == .Windows {
|
|
@(private) ARCH :: "x86_64" when ODIN_ARCH == .amd64 else "x86_64" when ODIN_ARCH == .i386 else #panic("unsupported WGPU Native architecture")
|
|
@(private) ARCH :: "x86_64" when ODIN_ARCH == .amd64 else "x86_64" when ODIN_ARCH == .i386 else #panic("unsupported WGPU Native architecture")
|
|
@(private) EXT :: ".dll.lib" when WGPU_SHARED else ".lib"
|
|
@(private) EXT :: ".dll.lib" when WGPU_SHARED else ".lib"
|
|
- @(private) LIB :: "lib/wgpu-windows-" + ARCH + "-" + TYPE + "/lib/wgpu_native" + EXT
|
|
|
|
|
|
+ @(private) LIB :: "lib/wgpu-windows-" + ARCH + "-msvc-" + TYPE + "/lib/wgpu_native" + EXT
|
|
|
|
|
|
when !#exists(LIB) {
|
|
when !#exists(LIB) {
|
|
- #panic("Could not find the compiled WGPU Native library at '" + #directory + LIB + "', these can be downloaded from https://github.com/gfx-rs/wgpu-native/releases/tag/v24.0.1, make sure to read the README at '" + #directory + "README.md'")
|
|
|
|
|
|
+ #panic("Could not find the compiled WGPU Native library at '" + #directory + LIB + "', these can be downloaded from https://github.com/gfx-rs/wgpu-native/releases/tag/v24.0.0.1, make sure to read the README at '" + #directory + "README.md'")
|
|
}
|
|
}
|
|
|
|
|
|
@(export)
|
|
@(export)
|
|
@@ -37,7 +37,7 @@ when ODIN_OS == .Windows {
|
|
@(private) LIB :: "lib/wgpu-macos-" + ARCH + "-" + TYPE + "/lib/libwgpu_native" + EXT
|
|
@(private) LIB :: "lib/wgpu-macos-" + ARCH + "-" + TYPE + "/lib/libwgpu_native" + EXT
|
|
|
|
|
|
when !#exists(LIB) {
|
|
when !#exists(LIB) {
|
|
- #panic("Could not find the compiled WGPU Native library at '" + #directory + LIB + "', these can be downloaded from https://github.com/gfx-rs/wgpu-native/releases/tag/v24.0.1, make sure to read the README at '" + #directory + "README.md'")
|
|
|
|
|
|
+ #panic("Could not find the compiled WGPU Native library at '" + #directory + LIB + "', these can be downloaded from https://github.com/gfx-rs/wgpu-native/releases/tag/v24.0.0.1, make sure to read the README at '" + #directory + "README.md'")
|
|
}
|
|
}
|
|
|
|
|
|
@(export)
|
|
@(export)
|
|
@@ -53,7 +53,7 @@ when ODIN_OS == .Windows {
|
|
@(private) LIB :: "lib/wgpu-linux-" + ARCH + "-" + TYPE + "/lib/libwgpu_native" + EXT
|
|
@(private) LIB :: "lib/wgpu-linux-" + ARCH + "-" + TYPE + "/lib/libwgpu_native" + EXT
|
|
|
|
|
|
when !#exists(LIB) {
|
|
when !#exists(LIB) {
|
|
- #panic("Could not find the compiled WGPU Native library at '" + #directory + LIB + "', these can be downloaded from https://github.com/gfx-rs/wgpu-native/releases/tag/v24.0.1, make sure to read the README at '" + #directory + "README.md'")
|
|
|
|
|
|
+ #panic("Could not find the compiled WGPU Native library at '" + #directory + LIB + "', these can be downloaded from https://github.com/gfx-rs/wgpu-native/releases/tag/v24.0.0.1, make sure to read the README at '" + #directory + "README.md'")
|
|
}
|
|
}
|
|
|
|
|
|
@(export)
|
|
@(export)
|