-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcheck_mesh.lua
More file actions
24 lines (21 loc) · 769 Bytes
/
check_mesh.lua
File metadata and controls
24 lines (21 loc) · 769 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
local ffi = require("ffi")
local vk = require("vulkan.ffi")
local vulkan = require("vulkan")
function M_init()
local pd = vulkan.get_physical_device()
local count = ffi.new("uint32_t[1]")
vk.vkEnumerateDeviceExtensionProperties(pd, nil, count, nil)
local props = ffi.new("VkExtensionProperties[?]", count[0])
vk.vkEnumerateDeviceExtensionProperties(pd, nil, count, props)
local found = false
for i=0, count[0]-1 do
local name = ffi.string(props[i].extensionName)
if name == "VK_EXT_mesh_shader" then
print("FOUND: VK_EXT_mesh_shader revision " .. props[i].specVersion)
found = true
end
end
if not found then print("NOT FOUND: VK_EXT_mesh_shader") end
os.exit()
end
M_init()