mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
WebGPU update (#2364)
* Update WebGPU renderer to match new state of API * Update WebGPU files
This commit is contained in:
@@ -184,9 +184,10 @@ function bgfxProjectBase(_kind, _defines)
|
||||
if _OPTIONS["with-webgpu"] then
|
||||
defines {
|
||||
"BGFX_CONFIG_RENDERER_WEBGPU=1",
|
||||
"BGFX_CONFIG_DEBUG_ANNOTATION=0", -- does not work
|
||||
}
|
||||
|
||||
local generator = "out/VS2019"
|
||||
local generator = "out/Default"
|
||||
|
||||
configuration { "wasm*" }
|
||||
defines {
|
||||
@@ -196,10 +197,8 @@ function bgfxProjectBase(_kind, _defines)
|
||||
|
||||
configuration { "not wasm*" }
|
||||
includedirs {
|
||||
path.join(DAWN_DIR, "src"),
|
||||
path.join(DAWN_DIR, "src/include"),
|
||||
path.join(DAWN_DIR, "third_party/vulkan-headers/include"),
|
||||
path.join(DAWN_DIR, generator, "gen/src"),
|
||||
path.join(DAWN_DIR, generator, "gen/src/include"),
|
||||
}
|
||||
|
||||
@@ -297,13 +296,10 @@ if _OPTIONS["with-webgpu"] then
|
||||
}
|
||||
|
||||
configuration { "not wasm*" }
|
||||
--local generator = "out/Default"
|
||||
local generator = "out/VS2019"
|
||||
local generator = "out/Default"
|
||||
|
||||
includedirs {
|
||||
path.join(DAWN_DIR, "src"),
|
||||
path.join(DAWN_DIR, "src/include"),
|
||||
path.join(DAWN_DIR, generator, "gen/src"),
|
||||
path.join(DAWN_DIR, generator, "gen/src/include"),
|
||||
}
|
||||
|
||||
@@ -312,10 +308,6 @@ if _OPTIONS["with-webgpu"] then
|
||||
path.join(DAWN_DIR, generator, "lib/Debug"),
|
||||
}
|
||||
|
||||
files {
|
||||
path.join(DAWN_DIR, generator, "gen/src/dawn/webgpu_cpp.cpp"),
|
||||
}
|
||||
|
||||
links {
|
||||
-- shared
|
||||
"dawn_proc_shared",
|
||||
|
||||
Reference in New Issue
Block a user