Skip to content
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

Merged
merged 9 commits into from
Feb 1, 2024
Merged

Texture Compression #143

merged 9 commits into from
Feb 1, 2024

Conversation

erikhaandrikman
Copy link
Contributor

This PR introduces initial support for .KTX and .PVR contained compressed textures. The format will be internally indicated.

@erikhaandrikman erikhaandrikman linked an issue Jan 30, 2024 that may be closed by this pull request
@@ -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(
Copy link
Collaborator

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?

Copy link
Contributor Author

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

import type { ExampleSettings } from '../common/ExampleSettings.js';

export async function automation(settings: ExampleSettings) {
await test(settings);
Copy link
Collaborator

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?

Copy link
Contributor Author

@erikhaandrikman erikhaandrikman Feb 1, 2024

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.

@frank-weindel
Copy link
Collaborator

Looks great to me! Just had mostly minor suggestions.

@frank-weindel frank-weindel changed the title Feature/tx compression Texture Compression Feb 1, 2024
@erikhaandrikman erikhaandrikman added this pull request to the merge queue Feb 1, 2024
Merged via the queue into main with commit 4d32b86 Feb 1, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Texture Compression
2 participants