Home | History | Annotate | Download | only in vk

Lines Matching refs:BufferUsage

15 using BufferUsage = GrVkMemoryAllocator::BufferUsage;
17 static BufferUsage get_buffer_usage(GrVkBuffer::Type type, bool dynamic) {
22 return dynamic ? BufferUsage::kCpuWritesGpuReads : BufferUsage::kGpuOnly;
25 return BufferUsage::kCpuWritesGpuReads;
28 return BufferUsage::kCpuOnly;
31 return BufferUsage::kCpuOnly; // Just returning an arbitrary value.
42 GrVkMemoryAllocator::BufferUsage usage = get_buffer_usage(type, dynamic);
45 if (usage == GrVkMemoryAllocator::BufferUsage::kCpuWritesGpuReads) {