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

Support zero-sized mappings #1989

Closed
wants to merge 1 commit into from
Closed

Conversation

kvark
Copy link
Member

@kvark kvark commented Sep 22, 2021

Connections
CTS

Description
Mapping an empty buffer should succeed still, and it should assume the mapped state.
That second part was missing.

Testing
Unlocks CTS

@kvark
Copy link
Member Author

kvark commented Sep 22, 2021

The workaround for the empty mapping is rather hacky. Open to better ideas :)

@kvark kvark marked this pull request as draft September 22, 2021 03:19
@kvark
Copy link
Member Author

kvark commented Sep 28, 2021

Weird, CTS fails on Windows but passes on macOS.

@cwfitzgerald
Copy link
Member

Closing this as out of date.

Patryk27 pushed a commit to Patryk27/wgpu that referenced this pull request Nov 23, 2022
* [hlsl-out] fix matCx2 as global uniform

* [hlsl-out] update comments

* [hlsl-out] fix `row_major` not being written on global arrays of matrices and also write it on nested arrays of matrices

* [hlsl-out] fix matCx2's nested inside global arrays

* [hlsl-out] fix struct members of type array<matCx2>

* [hlsl-out] test mat2x4 to make sure our matCx2 code behaves properly
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