Commit 27697df
committed
algorithm: check DescriptorType when creating pool
The function that was prevously used, `mem->type()`, is not explicitly
the same as the descriptor type, so using `mem->getDescriptorType()` is
more accurate.
It also makes it easier to create new image-like subclasses of
`kp::Memory` because as long as they specify the correct descriptor
type, the correct pools will be created.1 parent 6e5380d commit 27697df
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
137 | | - | |
| 137 | + | |
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
| |||
0 commit comments