mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-04-15 05:41:59 +00:00
[vulkan] Use provided config property list
There's still a lot of work needed to separate out quake from quakeforge, but this lets my test scene get a rather mangled scene rendering (weird translucency: not sure what I've done wrong: probably bad clear).
This commit is contained in:
parent
11d970c7c9
commit
06d9b1a056
2 changed files with 11 additions and 0 deletions
|
@ -128,6 +128,16 @@ vulkan_R_Init (struct plitem_s *config)
|
|||
Vulkan_Compose_Init (vulkan_ctx);
|
||||
|
||||
if (config) {
|
||||
auto samplers = PL_ObjectForKey (config, "samplers");
|
||||
auto render_graph = PL_ObjectForKey (config, "render_graph");
|
||||
if (!render_graph) {
|
||||
Sys_Error ("render_graph not found in config");
|
||||
}
|
||||
if (!samplers) {
|
||||
Sys_Error ("samplers not found in config");
|
||||
}
|
||||
QFV_LoadSamplerInfo (vulkan_ctx, samplers);
|
||||
QFV_LoadRenderInfo (vulkan_ctx, render_graph);
|
||||
} else {
|
||||
const char *mode = vulkan_render_mode ? "main_def" : "main_fwd";
|
||||
auto render_graph = Vulkan_GetConfig (vulkan_ctx, mode);
|
||||
|
|
|
@ -858,6 +858,7 @@ QFV_Render_DSManager (vulkan_ctx_t *ctx, const char *setName)
|
|||
return ds;
|
||||
}
|
||||
}
|
||||
Sys_Printf ("descriptor set '%s' not found\n", setName);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue