test: fix effects source cache harness initialization (#3490)

This commit is contained in:
LunaDL authored and GitHub committed 2026-11-30 18:15:04 -05:00
1 parent 768661928e
commit fcd197934a
2 files changed
+4 -1

No files matched your search

@@ -84,6 +84,9 @@ static void check_generated_settings_and_layout(void) {
g_vk.CmdBindPipeline = bind_pipeline; g_vk.CmdBindDescriptorSets = bind_sets;
g_vk.CmdPushConstants = push; g_vk.CmdDraw = draw; g_vk.CmdEndRenderPass = end_pass;
g_vk.CmdBlitImage = blit;
g_rp = (VkRenderPass)(uintptr_t)5;
g_pipe[P_SGSR] = (VkPipeline)(uintptr_t)6;
g_pipe[P_COLOR] = (VkPipeline)(uintptr_t)7;
g_ready = 1;
for (int k = 0; k < 2; k++) {
struct fx_target *t = &g_contexts[1].targets[k];
+1 -1
View File
@@ -32,7 +32,7 @@ class LazyEffectPipelineSourceTest(unittest.TestCase):
self.assertIn("effect pipelines are created when needed", body)
def test_pipelines_are_prepared_before_effect_chain_resources_and_draws(self):
body = function_body(self.source, "VkImage vkp_effects_run(")
body = function_body(self.source, "static VkImage effects_run(")
prepare = body.index("pipelines_ensure(spatial, s)")
scene = body.index("scene_ensure(scene, scene_w, scene_h)")
self.assertLess(prepare, scene)