在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:JuliaGPU/VulkanCore.jl开源软件地址:https://github.com/JuliaGPU/VulkanCore.jl开源编程语言:Julia 100.0%开源软件介绍:VulkanCoreVulkanCore wraps Vulkan and exposes the library calls necessary to work with Vulkan. It is targeted for developers wanting to directly work with Vulkan in Julia. If you are looking for a high-level idiomatic Julia API you might wish to take a look at Vulkan.jl. InstallationYou are required to have a Vulkan capable device and the appropriate drivers. If these are present, run:
ReferencesUsageThe Vulkan wrapper is generated using Clang.jl with the generator file. The API aims to replicate the Vulkan C-API and is thus very bare bones and hands-on. using VulkanCore.LibVulkan
count = Ref{Cuint}(0)
# Scan layers
err = vkEnumerateInstanceLayerProperties(count, C_NULL)
@assert err == VK_SUCCESS
global_layer_properties = Vector{VkLayerProperties}(undef, count[])
err = vkEnumerateInstanceLayerProperties(count, global_layer_properties)
@assert err == VK_SUCCESS ContributingYou are welcome to submit pull-request for improvements, but since this is primarily a wrapper you might focus your attention on the high-level API at Vulkan.jl. ThanksThis package is inspired by the work done on CUDArt.jl and OpenCL.jl. A big thank you also to all core Julia developers, who made this possible in the first place. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论