mirror of
https://github.com/vulkano-rs/vulkano.git
synced 2024-11-23 15:24:25 +00:00
Change Buffer impl of BufferSlice
This commit is contained in:
parent
9a114a03b7
commit
77481c1540
@ -161,12 +161,17 @@ impl<T, B> BufferSlice<[T], B> {
|
||||
}
|
||||
}
|
||||
|
||||
unsafe impl<T: ?Sized, B> Buffer for BufferSlice<T, B> where B: BufferAccess {
|
||||
type Access = Self;
|
||||
unsafe impl<T: ?Sized, B> Buffer for BufferSlice<T, B> where B: Buffer {
|
||||
type Access = BufferSlice<T, B::Access>;
|
||||
|
||||
#[inline]
|
||||
fn access(self) -> Self {
|
||||
self
|
||||
fn access(self) -> Self::Access {
|
||||
BufferSlice {
|
||||
marker: PhantomData,
|
||||
resource: self.resource.access(),
|
||||
offset: self.offset,
|
||||
size: self.size,
|
||||
}
|
||||
}
|
||||
|
||||
#[inline]
|
||||
|
Loading…
Reference in New Issue
Block a user