Shader: Use constexpr maps for static data

This commit is contained in:
SirLynix
2022-04-05 08:41:47 +02:00
parent 18edd41048
commit 262c82b9e1
6 changed files with 43 additions and 37 deletions

View File

@@ -80,8 +80,8 @@ local modules = {
Deps = {"NazaraPlatform", "NazaraShader"}
},
Shader = {
Packages = {"efsw", "fmt"},
Deps = {"NazaraCore"},
Packages = {"efsw", "fmt", "frozen"},
Custom = function()
-- Set precise floating-points models to ensure shader optimization leads to correct results
set_fpmodels("precise")
@@ -131,7 +131,7 @@ option_end()
set_project("NazaraEngine")
set_xmakever("2.6.3")
add_requires("chipmunk2d", "dr_wav", "efsw", "entt >=3.9", "fmt", "kiwisolver", "libflac", "libsdl", "minimp3", "stb")
add_requires("chipmunk2d", "dr_wav", "efsw", "entt >=3.9", "fmt", "frozen", "kiwisolver", "libflac", "libsdl", "minimp3", "stb")
add_requires("freetype", { configs = { bzip2 = true, png = true, woff2 = true, zlib = true, debug = is_mode("debug") } })
add_requires("libvorbis", { configs = { with_vorbisenc = false } })
add_requires("openal-soft", { configs = { shared = true }})