Home
last modified time | relevance | path

Searched refs:WriteLockError (Results 1 – 4 of 4) sorted by relevance

/external/rust/android-crates-io/crates/vulkano/src/buffer/
Dmod.rs110 subbuffer::{ReadLockError, WriteLockError},
645 pub(crate) fn check_cpu_write(&self, range: Range<DeviceSize>) -> Result<(), WriteLockError> { in check_cpu_write() argument
648 CurrentAccess::CpuExclusive => return Err(WriteLockError::CpuLocked), in check_cpu_write()
649 CurrentAccess::GpuExclusive { .. } => return Err(WriteLockError::GpuLocked), in check_cpu_write()
655 return Err(WriteLockError::CpuLocked) in check_cpu_write()
657 CurrentAccess::Shared { .. } => return Err(WriteLockError::GpuLocked), in check_cpu_write()
1035 impl From<WriteLockError> for BufferError {
1036 fn from(err: WriteLockError) -> Self { in from()
1038 WriteLockError::CpuLocked => Self::InUseByHost, in from()
1039 WriteLockError::GpuLocked => Self::InUseByDevice, in from()
Dsubbuffer.rs695 pub enum WriteLockError { enum
702 impl Error for WriteLockError {} implementation
704 impl Display for WriteLockError { implementation
710 WriteLockError::CpuLocked => "the buffer is already locked by the CPU", in fmt()
711 WriteLockError::GpuLocked => "the buffer is already locked by the GPU", in fmt()
/external/crosvm/base/src/
Dperiodic_logger.rs52 .map_err(|e| PeriodicLoggerError::WriteLockError(e.to_string()))?; in add_counter_item()
148 WriteLockError(String), enumerator
/external/rust/android-crates-io/crates/vulkano/src/image/
Dsys.rs22 buffer::subbuffer::{ReadLockError, WriteLockError},
2458 pub(crate) fn check_cpu_write(&self, range: Range<DeviceSize>) -> Result<(), WriteLockError> { in check_cpu_write() argument
2461 CurrentAccess::CpuExclusive => return Err(WriteLockError::CpuLocked), in check_cpu_write()
2462 CurrentAccess::GpuExclusive { .. } => return Err(WriteLockError::GpuLocked), in check_cpu_write()
2468 return Err(WriteLockError::CpuLocked) in check_cpu_write()
2470 CurrentAccess::Shared { .. } => return Err(WriteLockError::GpuLocked), in check_cpu_write()