mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-19 22:11:01 +01:00
Merge #1562
1562: Fix check for QUERY_SET_MAX_QUERIES was using >= instead of > r=cwfitzgerald a=HalfVoxel Fixes #1560 Co-authored-by: Aron Granberg <aron.granberg@gmail.com>
This commit is contained in:
commit
4ca6ab302d
2 files changed
+5
-1
No files matched your search
@@ -1,5 +1,9 @@
|
||||
# Change Log
|
||||
|
||||
## Unreleased
|
||||
- Fixed:
|
||||
- `Device::create_query_set` would return an error when creating exactly `QUERY_SET_MAX_QUERIES` (8192) queries. Now it only returns an error when trying to create *more* than `QUERY_SET_MAX_QUERIES` queries.
|
||||
|
||||
## v0.9 (2021-06-18)
|
||||
- Updated:
|
||||
- naga to `v0.5`.
|
||||
|
||||
@@ -2292,7 +2292,7 @@ impl<A: HalApi> Device<A> {
|
||||
return Err(Error::ZeroCount);
|
||||
}
|
||||
|
||||
if desc.count >= wgt::QUERY_SET_MAX_QUERIES {
|
||||
if desc.count > wgt::QUERY_SET_MAX_QUERIES {
|
||||
return Err(Error::TooManyQueries {
|
||||
count: desc.count,
|
||||
maximum: wgt::QUERY_SET_MAX_QUERIES,
|
||||
|
||||
Reference in new issue
Block a user