Flutter Engine
The Flutter Engine
Public Types | Public Member Functions | Public Attributes | List of all members
skgpu::VulkanAlloc Struct Reference

#include <VulkanTypes.h>

Public Types

enum  Flag { kNoncoherent_Flag = 0x1 , kMappable_Flag = 0x2 , kLazilyAllocated_Flag = 0x4 }
 

Public Member Functions

bool operator== (const VulkanAlloc &that) const
 

Public Attributes

VkDeviceMemory fMemory = VK_NULL_HANDLE
 
VkDeviceSize fOffset = 0
 
VkDeviceSize fSize = 0
 
uint32_t fFlags = 0
 
VulkanBackendMemory fBackendMemory = 0
 

Detailed Description

Types for interacting with Vulkan resources created externally to Skia.

Definition at line 37 of file VulkanTypes.h.

Member Enumeration Documentation

◆ Flag

Enumerator
kNoncoherent_Flag 
kMappable_Flag 
kLazilyAllocated_Flag 

Definition at line 46 of file VulkanTypes.h.

46 {
47 kNoncoherent_Flag = 0x1, // memory must be flushed to device after mapping
48 kMappable_Flag = 0x2, // memory is able to be mapped.
49 kLazilyAllocated_Flag = 0x4, // memory was created with lazy allocation
50 };

Member Function Documentation

◆ operator==()

bool skgpu::VulkanAlloc::operator== ( const VulkanAlloc that) const
inline

Definition at line 52 of file VulkanTypes.h.

52 {
53 return fMemory == that.fMemory && fOffset == that.fOffset && fSize == that.fSize &&
54 fFlags == that.fFlags && fUsesSystemHeap == that.fUsesSystemHeap;
55 }
VkDeviceSize fSize
Definition: VulkanTypes.h:41
VkDeviceMemory fMemory
Definition: VulkanTypes.h:39
VkDeviceSize fOffset
Definition: VulkanTypes.h:40

Member Data Documentation

◆ fBackendMemory

VulkanBackendMemory skgpu::VulkanAlloc::fBackendMemory = 0

Definition at line 44 of file VulkanTypes.h.

◆ fFlags

uint32_t skgpu::VulkanAlloc::fFlags = 0

Definition at line 42 of file VulkanTypes.h.

◆ fMemory

VkDeviceMemory skgpu::VulkanAlloc::fMemory = VK_NULL_HANDLE

Definition at line 39 of file VulkanTypes.h.

◆ fOffset

VkDeviceSize skgpu::VulkanAlloc::fOffset = 0

Definition at line 40 of file VulkanTypes.h.

◆ fSize

VkDeviceSize skgpu::VulkanAlloc::fSize = 0

Definition at line 41 of file VulkanTypes.h.


The documentation for this struct was generated from the following file: