-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Texture Compression #143
Texture Compression #143
Conversation
@@ -33,7 +33,10 @@ sdfData.chars.forEach((glyph) => { | |||
describe('measureText', () => { | |||
it('should measure text width', () => { | |||
const PERIOD_WIDTH = 10.332; | |||
const shaper = new SdfFontShaper(sdfData as unknown as SdfFontData, glyphMap); | |||
const shaper = new SdfFontShaper( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason these lines got touched with formatting?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not really sure, using the project configured formatter
examples/tests/tx-compression.ts
Outdated
import type { ExampleSettings } from '../common/ExampleSettings.js'; | ||
|
||
export async function automation(settings: ExampleSettings) { | ||
await test(settings); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you forget to commit the certified snapshot for this test?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have removed visual regression testing from the compression test due to the apparent lack of support for compressed textures in Playwright.
Looks great to me! Just had mostly minor suggestions. |
This PR introduces initial support for .KTX and .PVR contained compressed textures. The format will be internally indicated.