KhronosGroup / KhronosGroup/WebGL

Better define valid texture uploads with explicit dimensions from `TexImageSource` objects

Open
#3,701 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
2.9k
Forks
704
Avg merge
2d 9h
Merged PRs (30d)
4

Description

WebGL 2.0 supports explicit dimensions for tex[Sub]Image{2|3}D calls with TexImageSource input data. The spec should define valid ranges for width, height, and depth parameters.

Additionally, all of these entrypoints should be tested with all image source (Image, Canvas, etc) and texture (2D, 3D, ...) types and preferably with all mip levels filled.

Relevant Chromium bug: https://issues.chromium.org/issues/40910322.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the WebGL 2.0 specification sections for tex[Sub]Image{2|3}D calls that accept TexImageSource data, then inspect existing tests for these entrypoints. Define valid width, height, and depth ranges, and add coverage for Image, Canvas, and other image sources across 2D and 3D texture types, preferably covering all mip levels.

Written by the indexing model from the issue text.

Assessment

Tech stack
html
Domain
computer-graphics, testing
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.