Flutter Engine
The Flutter Engine
Public Member Functions | Public Attributes | List of all members
GrD3DTextureResourceInfo Struct Reference

#include <GrD3DTypes.h>

Public Member Functions

 GrD3DTextureResourceInfo ()=default
 
 GrD3DTextureResourceInfo (ID3D12Resource *resource, const sk_sp< GrD3DAlloc > alloc, D3D12_RESOURCE_STATES resourceState, DXGI_FORMAT format, uint32_t sampleCount, uint32_t levelCount, unsigned int sampleQualityLevel, skgpu::Protected isProtected=skgpu::Protected::kNo)
 
 GrD3DTextureResourceInfo (const GrD3DTextureResourceInfo &info, D3D12_RESOURCE_STATES resourceState)
 

Public Attributes

gr_cp< ID3D12Resource > fResource = nullptr
 
sk_sp< GrD3DAllocfAlloc = nullptr
 
D3D12_RESOURCE_STATES fResourceState = D3D12_RESOURCE_STATE_COMMON
 
DXGI_FORMAT fFormat = DXGI_FORMAT_UNKNOWN
 
uint32_t fSampleCount = 1
 
uint32_t fLevelCount = 0
 
unsigned int fSampleQualityPattern = DXGI_STANDARD_MULTISAMPLE_QUALITY_PATTERN
 
skgpu::Protected fProtected = skgpu::Protected::kNo
 

Detailed Description

Definition at line 179 of file GrD3DTypes.h.

Constructor & Destructor Documentation

◆ GrD3DTextureResourceInfo() [1/3]

GrD3DTextureResourceInfo::GrD3DTextureResourceInfo ( )
default

◆ GrD3DTextureResourceInfo() [2/3]

GrD3DTextureResourceInfo::GrD3DTextureResourceInfo ( ID3D12Resource *  resource,
const sk_sp< GrD3DAlloc alloc,
D3D12_RESOURCE_STATES  resourceState,
DXGI_FORMAT  format,
uint32_t  sampleCount,
uint32_t  levelCount,
unsigned int  sampleQualityLevel,
skgpu::Protected  isProtected = skgpu::Protected::kNo 
)
inline

Definition at line 191 of file GrD3DTypes.h.

200 , fAlloc(alloc)
201 , fResourceState(resourceState)
202 , fFormat(format)
203 , fSampleCount(sampleCount)
204 , fLevelCount(levelCount)
205 , fSampleQualityPattern(sampleQualityLevel)
206 , fProtected(isProtected) {}
static SkString resource(SkPDFResourceType type, int index)
uint32_t uint32_t * format
unsigned int fSampleQualityPattern
Definition: GrD3DTypes.h:186
D3D12_RESOURCE_STATES fResourceState
Definition: GrD3DTypes.h:182
gr_cp< ID3D12Resource > fResource
Definition: GrD3DTypes.h:180
skgpu::Protected fProtected
Definition: GrD3DTypes.h:187
sk_sp< GrD3DAlloc > fAlloc
Definition: GrD3DTypes.h:181

◆ GrD3DTextureResourceInfo() [3/3]

GrD3DTextureResourceInfo::GrD3DTextureResourceInfo ( const GrD3DTextureResourceInfo info,
D3D12_RESOURCE_STATES  resourceState 
)
inline

Definition at line 208 of file GrD3DTypes.h.

210 : fResource(info.fResource)
211 , fAlloc(info.fAlloc)
212 , fResourceState(resourceState)
213 , fFormat(info.fFormat)
214 , fSampleCount(info.fSampleCount)
215 , fLevelCount(info.fLevelCount)
216 , fSampleQualityPattern(info.fSampleQualityPattern)
217 , fProtected(info.fProtected) {}
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
Definition: DM.cpp:213

Member Data Documentation

◆ fAlloc

sk_sp<GrD3DAlloc> GrD3DTextureResourceInfo::fAlloc = nullptr

Definition at line 181 of file GrD3DTypes.h.

◆ fFormat

DXGI_FORMAT GrD3DTextureResourceInfo::fFormat = DXGI_FORMAT_UNKNOWN

Definition at line 183 of file GrD3DTypes.h.

◆ fLevelCount

uint32_t GrD3DTextureResourceInfo::fLevelCount = 0

Definition at line 185 of file GrD3DTypes.h.

◆ fProtected

skgpu::Protected GrD3DTextureResourceInfo::fProtected = skgpu::Protected::kNo

Definition at line 187 of file GrD3DTypes.h.

◆ fResource

gr_cp<ID3D12Resource> GrD3DTextureResourceInfo::fResource = nullptr

Definition at line 180 of file GrD3DTypes.h.

◆ fResourceState

D3D12_RESOURCE_STATES GrD3DTextureResourceInfo::fResourceState = D3D12_RESOURCE_STATE_COMMON

Definition at line 182 of file GrD3DTypes.h.

◆ fSampleCount

uint32_t GrD3DTextureResourceInfo::fSampleCount = 1

Definition at line 184 of file GrD3DTypes.h.

◆ fSampleQualityPattern

unsigned int GrD3DTextureResourceInfo::fSampleQualityPattern = DXGI_STANDARD_MULTISAMPLE_QUALITY_PATTERN

Definition at line 186 of file GrD3DTypes.h.


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