Skip to content

Commit

Permalink
Add baseline
Browse files Browse the repository at this point in the history
  • Loading branch information
wtholliday committed Oct 11, 2023
1 parent b27bc9a commit 715c140
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 18 deletions.
Binary file added Tests/vgerTests/images/text_scaled.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 1 addition & 18 deletions Tests/vgerTests/vgerTests.mm
Original file line number Diff line number Diff line change
Expand Up @@ -290,24 +290,7 @@ - (void) testScaleText {
vgerText(vger, "This is a test.", float4{0,1,1,1}, VGER_ALIGN_LEFT);
vgerRestore(vger);

auto commandBuffer = [queue commandBuffer];

vgerEncode(vger, commandBuffer, pass);
auto atlas = vgerGetGlyphAtlas(vger);

// Sync texture on macOS
#if TARGET_OS_OSX
auto blitEncoder = [commandBuffer blitCommandEncoder];
[blitEncoder synchronizeResource:texture];
[blitEncoder synchronizeResource:atlas];
[blitEncoder endEncoding];
#endif

[commandBuffer commit];
[commandBuffer waitUntilCompleted];

showTexture(atlas, @"glyph_atlas.png");
showTexture(texture, @"text.png");
[self checkRender:vger name:@"text_scaled.png"];

vgerDelete(vger);

Expand Down

0 comments on commit 715c140

Please sign in to comment.