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

feat(textures): Add texture format utils #1133

Merged
merged 2 commits into from
Jan 26, 2021
Merged

Conversation

ibgreen
Copy link
Collaborator

@ibgreen ibgreen commented Jan 25, 2021

  • Add getSupportedGPUTextureFormats() to discover which formats are available.
  • Use getSupportedGPUTextureFormats() in textures example
  • Use getSupportedGPUTextureFormats() in basis decoder, align constants and code

@dryabinin-actionengine Please take over and land

@ibgreen ibgreen mentioned this pull request Jan 25, 2021
31 tasks
@dryabinin94
Copy link
Collaborator

Test is failed
image

/* global document */
const canvas = document.createElement('canvas');
return canvas.getContext('webgl');
} catch {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This requires updating JS settings to latest JS syntax, to fix easily do:

Suggested change
} catch {
} catch (error) {

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@dryabinin94 dryabinin94 merged commit 29d1800 into master Jan 26, 2021
@dryabinin94 dryabinin94 deleted the ib/texture-format-utils branch January 26, 2021 16:25
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.

None yet

2 participants