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

#include <VulkanGraphiteTypesPriv.h>

Public Member Functions

 VulkanTextureSpec ()
 
 VulkanTextureSpec (const VulkanTextureInfo &info)
 
bool operator== (const VulkanTextureSpec &that) const
 
bool isCompatible (const VulkanTextureSpec &that) const
 
SkString toString () const
 

Public Attributes

VkImageCreateFlags fFlags
 
VkFormat fFormat
 
VkImageTiling fImageTiling
 
VkImageUsageFlags fImageUsageFlags
 
VkSharingMode fSharingMode
 
VkImageAspectFlags fAspectMask
 
VulkanYcbcrConversionInfo fYcbcrConversionInfo
 

Detailed Description

Definition at line 17 of file VulkanGraphiteTypesPriv.h.

Constructor & Destructor Documentation

◆ VulkanTextureSpec() [1/2]

skgpu::graphite::VulkanTextureSpec::VulkanTextureSpec ( )
inline

◆ VulkanTextureSpec() [2/2]

skgpu::graphite::VulkanTextureSpec::VulkanTextureSpec ( const VulkanTextureInfo info)
inline

Definition at line 26 of file VulkanGraphiteTypesPriv.h.

27 : fFlags(info.fFlags)
28 , fFormat(info.fFormat)
29 , fImageTiling(info.fImageTiling)
30 , fImageUsageFlags(info.fImageUsageFlags)
31 , fSharingMode(info.fSharingMode)
32 , fAspectMask(info.fAspectMask)
33 , fYcbcrConversionInfo(info.fYcbcrConversionInfo) {}
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
Definition: DM.cpp:213

Member Function Documentation

◆ isCompatible()

bool skgpu::graphite::VulkanTextureSpec::isCompatible ( const VulkanTextureSpec that) const
inline

Definition at line 45 of file VulkanGraphiteTypesPriv.h.

45 {
46 // The usages may match or the usage passed in may be a superset of the usage stored within.
47 return fFlags == that.fFlags &&
48 fFormat == that.fFormat &&
49 fImageTiling == that.fImageTiling &&
50 fSharingMode == that.fSharingMode &&
51 fAspectMask == that.fAspectMask &&
52 (fImageUsageFlags & that.fImageUsageFlags) == fImageUsageFlags &&
53 fYcbcrConversionInfo == that.fYcbcrConversionInfo;
54 }

◆ operator==()

bool skgpu::graphite::VulkanTextureSpec::operator== ( const VulkanTextureSpec that) const
inline

Definition at line 35 of file VulkanGraphiteTypesPriv.h.

35 {
36 return fFlags == that.fFlags &&
37 fFormat == that.fFormat &&
38 fImageTiling == that.fImageTiling &&
39 fImageUsageFlags == that.fImageUsageFlags &&
40 fSharingMode == that.fSharingMode &&
41 fAspectMask == that.fAspectMask &&
42 fYcbcrConversionInfo == that.fYcbcrConversionInfo;
43 }

◆ toString()

SkString skgpu::graphite::VulkanTextureSpec::toString ( ) const
inline

Definition at line 56 of file VulkanGraphiteTypesPriv.h.

56 {
57 return SkStringPrintf(
58 "flags=0x%08X,format=%d,imageTiling=%d,imageUsageFlags=0x%08X,sharingMode=%d,"
59 "aspectMask=%u",
60 fFlags,
61 fFormat,
66 }
SK_API SkString SkStringPrintf(const char *format,...) SK_PRINTF_LIKE(1
Creates a new string and writes into it using a printf()-style format.

Member Data Documentation

◆ fAspectMask

VkImageAspectFlags skgpu::graphite::VulkanTextureSpec::fAspectMask

Definition at line 73 of file VulkanGraphiteTypesPriv.h.

◆ fFlags

VkImageCreateFlags skgpu::graphite::VulkanTextureSpec::fFlags

Definition at line 68 of file VulkanGraphiteTypesPriv.h.

◆ fFormat

VkFormat skgpu::graphite::VulkanTextureSpec::fFormat

Definition at line 69 of file VulkanGraphiteTypesPriv.h.

◆ fImageTiling

VkImageTiling skgpu::graphite::VulkanTextureSpec::fImageTiling

Definition at line 70 of file VulkanGraphiteTypesPriv.h.

◆ fImageUsageFlags

VkImageUsageFlags skgpu::graphite::VulkanTextureSpec::fImageUsageFlags

Definition at line 71 of file VulkanGraphiteTypesPriv.h.

◆ fSharingMode

VkSharingMode skgpu::graphite::VulkanTextureSpec::fSharingMode

Definition at line 72 of file VulkanGraphiteTypesPriv.h.

◆ fYcbcrConversionInfo

VulkanYcbcrConversionInfo skgpu::graphite::VulkanTextureSpec::fYcbcrConversionInfo

Definition at line 74 of file VulkanGraphiteTypesPriv.h.


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