adding entry point to soft driver, adding C test
This commit is contained in:
@@ -1,7 +0,0 @@
|
||||
const std = @import("std");
|
||||
|
||||
const common = @import("common");
|
||||
|
||||
test {
|
||||
std.testing.refAllDeclsRecursive(@This());
|
||||
}
|
||||
11
src/soft/libvulkan.zig
git.filemode.normal_file
11
src/soft/libvulkan.zig
git.filemode.normal_file
@@ -0,0 +1,11 @@
|
||||
const std = @import("std");
|
||||
const vk = @import("vulkan");
|
||||
const common = @import("common");
|
||||
|
||||
pub export fn vk_icdGetInstanceProcAddr(instance: vk.Instance, pName: ?[*:0]const u8) callconv(vk.vulkan_call_conv) vk.PfnVoidFunction {
|
||||
if (pName == null) {
|
||||
return null;
|
||||
}
|
||||
const name = std.mem.span(pName.?);
|
||||
return common.icd.getInstanceProcAddr(instance, name);
|
||||
}
|
||||
Reference in New Issue
Block a user