You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to dump, and I was hoping to use a CpuBufferPool for that, but it seems to be missing an ::array() allocator, it looks like it'll only take a fixed type for allocations, for example:
174 | let cpubuf = buffer::cpu_pool::CpuBufferPool::<[u8]>::download(self.vdevice.clone());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function or associated item not found in bulbvulk::vulkano::buffer::CpuBufferPool<[u8]>
|
= note: the method download exists but the following trait bounds were not satisfied: [u8] : std::marker::Sized
error[E0277]: the trait bound [u8]: std::marker::Sized is not satisfied
I think it would be good to be able to allocate a CpuBufferPool in the same way that DeviceLocalBuffer lets you.
(Actually an even nicer thing would be to be able to pass a reference to my DeviceLocalBuffer and to create a CpuBufferPool of exactly the right size/type)
I guess I'll use a CpuAccessibleBuffer but that has the scary warning it might disappear.
The text was updated successfully, but these errors were encountered:
Hi,
I've got a:
buffer::device_local::DeviceLocalBuffer::<[u8]>::array(vdevice.clone(), voxelsizevoxelsizevoxelsize,...
I'd like to dump, and I was hoping to use a CpuBufferPool for that, but it seems to be missing an ::array() allocator, it looks like it'll only take a fixed type for allocations, for example:
174 | let cpubuf = buffer::cpu_pool::CpuBufferPool::<[u8]>::download(self.vdevice.clone());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function or associated item not found in
bulbvulk::vulkano::buffer::CpuBufferPool<[u8]>
|
= note: the method
download
exists but the following trait bounds were not satisfied:[u8] : std::marker::Sized
error[E0277]: the trait bound
[u8]: std::marker::Sized
is not satisfiedI think it would be good to be able to allocate a CpuBufferPool in the same way that DeviceLocalBuffer lets you.
(Actually an even nicer thing would be to be able to pass a reference to my DeviceLocalBuffer and to create a CpuBufferPool of exactly the right size/type)
I guess I'll use a CpuAccessibleBuffer but that has the scary warning it might disappear.
The text was updated successfully, but these errors were encountered: