Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
skgpu::graphite::MtlTextureInfo Struct Reference

#include <MtlGraphiteTypes.h>

Public Member Functions

 MtlTextureInfo ()=default
 
 MtlTextureInfo (CFTypeRef mtlTexture)
 
 MtlTextureInfo (uint32_t sampleCount, skgpu::Mipmapped mipmapped, MtlPixelFormat format, MtlTextureUsage usage, MtlStorageMode storageMode, bool framebufferOnly)
 

Public Attributes

uint32_t fSampleCount = 1
 
skgpu::Mipmapped fMipmapped = skgpu::Mipmapped::kNo
 
MtlPixelFormat fFormat = 0
 
MtlTextureUsage fUsage = 0
 
MtlStorageMode fStorageMode = 0
 
bool fFramebufferOnly = false
 

Detailed Description

Definition at line 39 of file MtlGraphiteTypes.h.

Constructor & Destructor Documentation

◆ MtlTextureInfo() [1/3]

skgpu::graphite::MtlTextureInfo::MtlTextureInfo ( )
default

◆ MtlTextureInfo() [2/3]

skgpu::graphite::MtlTextureInfo::MtlTextureInfo ( CFTypeRef  mtlTexture)

Definition at line 14 of file MtlGraphiteTypes.mm.

14 {
16 id<MTLTexture> mtlTex = (id<MTLTexture>)texture;
17
18 fSampleCount = mtlTex.sampleCount;
19 fMipmapped = mtlTex.mipmapLevelCount > 1 ? Mipmapped::kYes : Mipmapped::kNo;
20
21 fFormat = mtlTex.pixelFormat;
22 fUsage = mtlTex.usage;
23 fStorageMode = mtlTex.storageMode;
24 fFramebufferOnly = mtlTex.framebufferOnly;
25}
#define SkASSERT(cond)
Definition SkAssert.h:116
FlTexture * texture

◆ MtlTextureInfo() [3/3]

skgpu::graphite::MtlTextureInfo::MtlTextureInfo ( uint32_t  sampleCount,
skgpu::Mipmapped  mipmapped,
MtlPixelFormat  format,
MtlTextureUsage  usage,
MtlStorageMode  storageMode,
bool  framebufferOnly 
)
inline

Definition at line 52 of file MtlGraphiteTypes.h.

58 : fSampleCount(sampleCount)
59 , fMipmapped(mipmapped)
61 , fUsage(usage)
62 , fStorageMode(storageMode)
63 , fFramebufferOnly(framebufferOnly) {}
uint32_t uint32_t * format
static void usage(char *argv0)

Member Data Documentation

◆ fFormat

MtlPixelFormat skgpu::graphite::MtlTextureInfo::fFormat = 0

Definition at line 45 of file MtlGraphiteTypes.h.

◆ fFramebufferOnly

bool skgpu::graphite::MtlTextureInfo::fFramebufferOnly = false

Definition at line 48 of file MtlGraphiteTypes.h.

◆ fMipmapped

skgpu::Mipmapped skgpu::graphite::MtlTextureInfo::fMipmapped = skgpu::Mipmapped::kNo

Definition at line 41 of file MtlGraphiteTypes.h.

◆ fSampleCount

uint32_t skgpu::graphite::MtlTextureInfo::fSampleCount = 1

Definition at line 40 of file MtlGraphiteTypes.h.

◆ fStorageMode

MtlStorageMode skgpu::graphite::MtlTextureInfo::fStorageMode = 0

Definition at line 47 of file MtlGraphiteTypes.h.

◆ fUsage

MtlTextureUsage skgpu::graphite::MtlTextureInfo::fUsage = 0

Definition at line 46 of file MtlGraphiteTypes.h.


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