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

#include <DawnTypes.h>

Public Member Functions

wgpu::TextureFormat getViewFormat () const
 
 DawnTextureInfo ()=default
 
 DawnTextureInfo (uint32_t sampleCount, Mipmapped mipmapped, wgpu::TextureFormat format, wgpu::TextureUsage usage, wgpu::TextureAspect aspect)
 
 DawnTextureInfo (uint32_t sampleCount, Mipmapped mipmapped, wgpu::TextureFormat format, wgpu::TextureFormat viewFormat, wgpu::TextureUsage usage, wgpu::TextureAspect aspect, uint32_t slice)
 

Public Attributes

uint32_t fSampleCount = 1
 
Mipmapped fMipmapped = Mipmapped::kNo
 
wgpu::TextureFormat fFormat = wgpu::TextureFormat::Undefined
 
wgpu::TextureFormat fViewFormat = wgpu::TextureFormat::Undefined
 
wgpu::TextureUsage fUsage = wgpu::TextureUsage::None
 
wgpu::TextureAspect fAspect = wgpu::TextureAspect::All
 
uint32_t fSlice = 0
 

Detailed Description

Definition at line 16 of file DawnTypes.h.

Constructor & Destructor Documentation

◆ DawnTextureInfo() [1/3]

skgpu::graphite::DawnTextureInfo::DawnTextureInfo ( )
default

◆ DawnTextureInfo() [2/3]

skgpu::graphite::DawnTextureInfo::DawnTextureInfo ( uint32_t  sampleCount,
Mipmapped  mipmapped,
wgpu::TextureFormat  format,
wgpu::TextureUsage  usage,
wgpu::TextureAspect  aspect 
)
inline

Definition at line 34 of file DawnTypes.h.

39 : DawnTextureInfo(sampleCount,
40 mipmapped,
41 /*format=*/format,
42 /*viewFormat=*/format,
43 usage,
44 aspect,
45 /*slice=*/0) {}
uint32_t uint32_t * format
static void usage(char *argv0)

◆ DawnTextureInfo() [3/3]

skgpu::graphite::DawnTextureInfo::DawnTextureInfo ( uint32_t  sampleCount,
Mipmapped  mipmapped,
wgpu::TextureFormat  format,
wgpu::TextureFormat  viewFormat,
wgpu::TextureUsage  usage,
wgpu::TextureAspect  aspect,
uint32_t  slice 
)
inline

Definition at line 46 of file DawnTypes.h.

53 : fSampleCount(sampleCount)
54 , fMipmapped(mipmapped)
56 , fViewFormat(viewFormat)
57 , fUsage(usage)
58 , fAspect(aspect)
59 , fSlice(slice) {}
wgpu::TextureFormat fViewFormat
Definition DawnTypes.h:23
wgpu::TextureFormat fFormat
Definition DawnTypes.h:21
wgpu::TextureAspect fAspect
Definition DawnTypes.h:26
wgpu::TextureUsage fUsage
Definition DawnTypes.h:24

Member Function Documentation

◆ getViewFormat()

wgpu::TextureFormat skgpu::graphite::DawnTextureInfo::getViewFormat ( ) const
inline

Definition at line 29 of file DawnTypes.h.

29 {
30 return fViewFormat != wgpu::TextureFormat::Undefined ? fViewFormat : fFormat;
31 }

Member Data Documentation

◆ fAspect

wgpu::TextureAspect skgpu::graphite::DawnTextureInfo::fAspect = wgpu::TextureAspect::All

Definition at line 26 of file DawnTypes.h.

◆ fFormat

wgpu::TextureFormat skgpu::graphite::DawnTextureInfo::fFormat = wgpu::TextureFormat::Undefined

Definition at line 21 of file DawnTypes.h.

◆ fMipmapped

Mipmapped skgpu::graphite::DawnTextureInfo::fMipmapped = Mipmapped::kNo

Definition at line 18 of file DawnTypes.h.

◆ fSampleCount

uint32_t skgpu::graphite::DawnTextureInfo::fSampleCount = 1

Definition at line 17 of file DawnTypes.h.

◆ fSlice

uint32_t skgpu::graphite::DawnTextureInfo::fSlice = 0

Definition at line 27 of file DawnTypes.h.

◆ fUsage

wgpu::TextureUsage skgpu::graphite::DawnTextureInfo::fUsage = wgpu::TextureUsage::None

Definition at line 24 of file DawnTypes.h.

◆ fViewFormat

wgpu::TextureFormat skgpu::graphite::DawnTextureInfo::fViewFormat = wgpu::TextureFormat::Undefined

Definition at line 23 of file DawnTypes.h.


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