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

Pixel(Un)PackData with None #326

Merged
merged 1 commit into from
Nov 11, 2024
Merged

Pixel(Un)PackData with None #326

merged 1 commit into from
Nov 11, 2024

Conversation

sagudev
Copy link
Contributor

@sagudev sagudev commented Nov 5, 2024

As announced in #322 (comment).

Option is put into PixelUnpackData::Slice variant because it matches webgl better.

Alternatives:

  • PixelUnpackData::None variant
  • do nothing as we can already express this as PixelUnpackData::BufferOffset(0) actually this is not true, there is no way to pass null/0 in WebGL 1 context as BufferOffset variants are not supported by spec (glow panics) but null value is supported by spec (for example see tex_image_2d).

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
@sagudev
Copy link
Contributor Author

sagudev commented Nov 7, 2024

@grovesNL This is ready for review!

Copy link
Owner

@grovesNL grovesNL left a comment

Choose a reason for hiding this comment

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

Thanks!

@grovesNL grovesNL merged commit cf08bc4 into grovesNL:main Nov 11, 2024
7 checks passed
@sagudev
Copy link
Contributor Author

sagudev commented Nov 11, 2024

Thanks! Could you also create new release (due to various breaking changes it would need to be 0.16)?

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.

2 participants