Lines Matching defs:memory

23         // Says that the backing memory can only be accessed by the device. Additionally the device
24 // may lazily allocate the memory. This cannot be used with buffers that will be host
25 // visible. Setting this flag does not guarantee that we will allocate memory that respects
26 // it, but we will try to prefer memory that can respect it.
40 // in device local memory.
45 // will always be mappable and coherent memory, and it will prefer to be in device local
46 // memory.
49 // buffers). Will always be mappable and coherent memory.
52 // be mappable memory, and will prefer cached memory.
64 GrVkBackendMemory* memory) {
65 bool result = this->allocateMemoryForImage(image, flags, memory);
84 GrVkBackendMemory* memory) {
85 bool result = this->allocateMemoryForBuffer(buffer, usage, flags, memory);
98 // implementation may map more memory than just the allocation, but the returned pointer must
99 // point at the start of the memory for the requested allocation.
101 virtual VkResult mapMemory(const GrVkBackendMemory& memory, void** data) {
102 *data = this->mapMemory(memory);
111 // The following two calls are used for managing non-coherent memory. The offset is relative to
117 virtual VkResult flushMemory(const GrVkBackendMemory& memory, VkDeviceSize offset,
119 this->flushMappedMemory(memory, offset, size);
123 virtual VkResult invalidateMemory(const GrVkBackendMemory& memory, VkDeviceSize offset,
125 this->invalidateMappedMemory(memory, offset, size);
131 // Returns the total amount of memory that is allocated and in use by an allocation for this
135 // Returns the total amount of memory that is allocated by this allocator.