mirror of
https://github.com/Kbz-8/Pulse.git
synced 2026-01-11 07:23:35 +00:00
adding device selection, buffer creation and pipeline creation to Metal backend
This commit is contained in:
@@ -60,7 +60,7 @@ local backends = {
|
||||
end,
|
||||
before_build = function(target, os)
|
||||
local gles_dir = target:pkg("opengl-headers"):installdir()
|
||||
os.runv("python", {"Scripts/GenerateOpenGLDefs.py", "Sources/Backends/OpenGL/OpenGLFunctions.h", gles_dir .. "/include/GLES3/gl32.h", "Sources/Backends/OpenGL/OpenGLWraps.h"})
|
||||
os.runv("python3", {"Scripts/GenerateOpenGLDefs.py", "Sources/Backends/OpenGL/OpenGLFunctions.h", gles_dir .. "/include/GLES3/gl32.h", "Sources/Backends/OpenGL/OpenGLWraps.h"})
|
||||
end
|
||||
},
|
||||
}
|
||||
@@ -157,7 +157,11 @@ target("pulse_gpu")
|
||||
add_headerfiles("Sources/Backends/" .. name .. "/**.h", { prefixdir = "private", install = false })
|
||||
add_headerfiles("Sources/Backends/" .. name .. "/**.inl", { prefixdir = "private", install = false })
|
||||
|
||||
add_files("Sources/Backends/" .. name .. "/**.c")
|
||||
-- Checks if there are C files in the backend directory and add them if so
|
||||
local cfiles = os.files("Sources/Backends/" .. name .. "/**.c")
|
||||
if #cfiles > 0 then
|
||||
add_files("Sources/Backends/" .. name .. "/**.c")
|
||||
end
|
||||
|
||||
if module.custom then
|
||||
module.custom()
|
||||
|
||||
Reference in New Issue
Block a user