Sitelet https://github.com/gpuweb/gpuweb/pull/1335
Skip to content

Only allow 2d textures for copyImageBitmapToTexture for now - #1335

Merged
kainino0x merged 1 commit into
gpuweb:mainfrom
kainino0x:ib2t_dimension
Jan 11, 2021
Merged

kainino0x merged 1 commit into
gpuweb:mainfrom
kainino0x:ib2t_dimension

Conversation

@kainino0x

@kainino0x kainino0x commented Jan 7, 2021 •

Copy link
Copy Markdown
Contributor

It's more minimal and solves the majority of usecases. We can generalize it anytime.


Preview | Diff

It's more minimal and solves the majority of usecases. We can generalize
it anytime.
@kainino0x
kainino0x requested a review from shaoboyan January 7, 2021 05:17
@kainino0x

Copy link
Copy Markdown
Contributor Author

We could even consider limiting it to 2d textures with a depth (layer count) of 1.

@Kangz

Kangz commented Jan 7, 2021

Copy link
Copy Markdown
Contributor

I think we want to keep support for 2D array textures so applications can load their texture arrays (like cubemaps used for lightprobes or other stuff) using that method.

@Kangz

Kangz commented Jan 7, 2021

Copy link
Copy Markdown
Contributor

Happy to add a restriction, but what's the reasoning behind it?

@kainino0x

Copy link
Copy Markdown
Contributor Author

Happy to add a restriction, but what's the reasoning behind it?

Just to reduce unnecessary scope creep for the sake of generality.

@shaoboyan

Copy link
Copy Markdown
Contributor

@kainino0x Glad to have this.

@kainino0x

Copy link
Copy Markdown
Contributor Author

Resolution: accepted

@kainino0x
kainino0x merged commit c6dc6d6 into gpuweb:main Jan 11, 2021
@kainino0x
kainino0x deleted the ib2t_dimension branch January 11, 2021 20:57
@kdashg

kdashg commented Jan 11, 2021

Copy link
Copy Markdown
Contributor

We actually do want this for 1d and 3d textures, so we'll need to add this back.
Images are how authors deliver most texture content, and 3d textures are no exception here.

@kainino0x

Copy link
Copy Markdown
Contributor Author

I'm not sure how useful it is for 1d textures. They're kind of a niche feature that I think mostly gets used for pre-computed lookup tables (not downloaded resources). I kind of agree for 3D but I'm not exactly sure how perf sensitive it is - and the cpu path always still exists. Also note that uploading into 3d (or 2d array) textures from a 2d source requires multiple calls because we can't (currently) express tiled 2d-to-3d copies like WebGL.

ben-clayton pushed a commit to ben-clayton/gpuweb that referenced this pull request Sep 6, 2022
This commit changes execution of a testcase such that await'ing
of all subcases is await'ed at the end of a testcase. This allows
better test throughput by allowing subsequent subcases to begin
without waiting on previous eventual expectations.

Because eventual expectations now record logs for a subcase
asynchronously after other subcases may have started running,
subcase logs are recorded in a deferred manner through a Proxy.
This allows logs to appear as if subcases were executed serially.
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.

5 participants