Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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 36 of file VulkanTypes.h.

Member Enumeration Documentation

◆ Flag

Enumerator
kNoncoherent_Flag 
kMappable_Flag 
kLazilyAllocated_Flag 

Definition at line 45 of file VulkanTypes.h.

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

Member Function Documentation

◆ operator==()

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

Definition at line 51 of file VulkanTypes.h.

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

Member Data Documentation

◆ fBackendMemory

VulkanBackendMemory skgpu::VulkanAlloc::fBackendMemory = 0

Definition at line 43 of file VulkanTypes.h.

◆ fFlags

uint32_t skgpu::VulkanAlloc::fFlags = 0

Definition at line 41 of file VulkanTypes.h.

◆ fMemory

VkDeviceMemory skgpu::VulkanAlloc::fMemory = VK_NULL_HANDLE

Definition at line 38 of file VulkanTypes.h.

◆ fOffset

VkDeviceSize skgpu::VulkanAlloc::fOffset = 0

Definition at line 39 of file VulkanTypes.h.

◆ fSize

VkDeviceSize skgpu::VulkanAlloc::fSize = 0

Definition at line 40 of file VulkanTypes.h.


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