Merge remote-tracking branch 'origin/master' into claude/issue-51
# Conflicts: # project.cpp
This commit is contained in:
commit
e4f8b057f3
8 changed files with 396 additions and 42 deletions
31
project.cpp
31
project.cpp
|
|
@ -322,6 +322,37 @@ extern "C" Configuration CrafterBuildProject(std::span<const std::string_view> a
|
|||
atlasImpls.emplace_back("tests/FontAtlasDirtyRect/main");
|
||||
ac.GetInterfacesAndImplementations(ifaces, atlasImpls);
|
||||
cfg.tests.push_back(std::move(atlasTest));
|
||||
|
||||
// Issue #52: shaped-run cache for UIRenderer::ShapeText. Shapes a
|
||||
// string against a real CPU-side FontAtlas and asserts that a cache
|
||||
// hit is byte-equivalent to the uncached path, that hits don't touch
|
||||
// the atlas, and that translate / alignment / truncation /
|
||||
// InvalidateFont all behave. Needs a headless Vulkan device (the
|
||||
// atlas image is a real GPU image) but no swapchain — same native
|
||||
// build settings as the others. The font file is copied next to the
|
||||
// binary; the test also probes the project-root path.
|
||||
Test textTest;
|
||||
Configuration& xc = textTest.config;
|
||||
xc.path = cfg.path;
|
||||
xc.name = "ShapeTextCache";
|
||||
xc.outputName = "ShapeTextCache";
|
||||
xc.type = ConfigurationType::Executable;
|
||||
xc.target = cfg.target;
|
||||
xc.march = cfg.march;
|
||||
xc.mtune = cfg.mtune;
|
||||
xc.debug = cfg.debug;
|
||||
xc.sysroot = cfg.sysroot;
|
||||
xc.dependencies = cfg.dependencies;
|
||||
xc.externalDependencies = cfg.externalDependencies;
|
||||
xc.compileFlags = cfg.compileFlags;
|
||||
xc.linkFlags = cfg.linkFlags;
|
||||
xc.defines = cfg.defines;
|
||||
xc.cFiles = cfg.cFiles;
|
||||
xc.files = { fs::path("tests/ShapeTextCache/font.ttf") };
|
||||
std::vector<fs::path> textImpls(impls.begin(), impls.end());
|
||||
textImpls.emplace_back("tests/ShapeTextCache/main");
|
||||
xc.GetInterfacesAndImplementations(ifaces, textImpls);
|
||||
cfg.tests.push_back(std::move(textTest));
|
||||
}
|
||||
|
||||
return cfg;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue