Flutter Engine
The Flutter Engine
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)
 
 DawnTextureInfo (uint32_t sampleCount, Mipmapped mipmapped, wgpu::TextureFormat format, wgpu::TextureFormat viewFormat, wgpu::TextureUsage usage, wgpu::TextureAspect aspect, uint32_t slice, wgpu::YCbCrVkDescriptor ycbcrVkDescriptor)
 

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
 
wgpu::YCbCrVkDescriptor fYcbcrVkDescriptor = {}
 

Detailed Description

Definition at line 16 of file DawnTypes.h.

Constructor & Destructor Documentation

◆ DawnTextureInfo() [1/4]

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

◆ DawnTextureInfo() [2/4]

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

Definition at line 43 of file DawnTypes.h.

48 : DawnTextureInfo(sampleCount,
49 mipmapped,
50 /*format=*/format,
51 /*viewFormat=*/format,
52 usage,
53 aspect,
54 /*slice=*/0) {}
uint32_t uint32_t * format
static void usage(char *argv0)

◆ DawnTextureInfo() [3/4]

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 56 of file DawnTypes.h.

63 : fSampleCount(sampleCount)
64 , fMipmapped(mipmapped)
66 , fViewFormat(viewFormat)
67 , fUsage(usage)
68 , fAspect(aspect)
69 , 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

◆ DawnTextureInfo() [4/4]

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

Definition at line 72 of file DawnTypes.h.

80 : fSampleCount(sampleCount)
81 , fMipmapped(mipmapped)
83 , fViewFormat(viewFormat)
84 , fUsage(usage)
85 , fAspect(aspect)
86 , fSlice(slice)
87 , fYcbcrVkDescriptor(ycbcrVkDescriptor) {}
wgpu::YCbCrVkDescriptor fYcbcrVkDescriptor
Definition: DawnTypes.h:34

Member Function Documentation

◆ getViewFormat()

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

Definition at line 37 of file DawnTypes.h.

37 {
38 return fViewFormat != wgpu::TextureFormat::Undefined ? fViewFormat : fFormat;
39 }

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.

◆ fYcbcrVkDescriptor

wgpu::YCbCrVkDescriptor skgpu::graphite::DawnTextureInfo::fYcbcrVkDescriptor = {}

Definition at line 34 of file DawnTypes.h.


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