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

Deduplicate TimestampWrites structs #443

Merged
merged 3 commits into from
Nov 26, 2024

Conversation

kainino0x
Copy link
Collaborator

@kainino0x kainino0x commented Nov 26, 2024

If we need to extend TimestampWrites (e.g. with end of vertex stage or something) then we can still extend them off this struct, we'll just allow different extensions in different places.

(I previously wanted to avoid the allowed extensions being dependent on where the base struct is used, with extensibility of WGPUImageCopyTexture etc., but here it makes a lot more sense IMO as we have a much more concrete idea of what the extensions would be, and some could be shared. Still open to opinions if anyone thinks we should avoid this.)

Fixes #430

@kainino0x kainino0x requested review from Kangz and lokokung November 26, 2024 06:33
@kainino0x kainino0x enabled auto-merge (squash) November 26, 2024 19:41
@kainino0x kainino0x merged commit 5538c58 into webgpu-native:main Nov 26, 2024
5 checks passed
@kainino0x kainino0x deleted the dedup-timestamp-writes branch November 26, 2024 19:55
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.

Deduplicate TimestampWrites structs
2 participants