Flutter Engine
The Flutter Engine
Classes | Functions
skgpu::MutableTextureStates Namespace Reference

Classes

class  VulkanMutableTextureState
 

Functions

SK_API MutableTextureState MakeVulkan (VkImageLayout layout, uint32_t queueFamilyIndex)
 
SK_API VkImageLayout GetVkImageLayout (const MutableTextureState &state)
 
SK_API VkImageLayout GetVkImageLayout (const MutableTextureState *state)
 
SK_API uint32_t GetVkQueueFamilyIndex (const MutableTextureState &state)
 
SK_API uint32_t GetVkQueueFamilyIndex (const MutableTextureState *state)
 
static const VulkanMutableTextureStateget_and_cast_data (const MutableTextureState &mts)
 
static const VulkanMutableTextureStateget_and_cast_data (const MutableTextureState *mts)
 
static VulkanMutableTextureStateget_and_cast_data (MutableTextureState *mts)
 
void SetVkImageLayout (MutableTextureState *state, VkImageLayout layout)
 
void SetVkQueueFamilyIndex (MutableTextureState *state, uint32_t queueFamilyIndex)
 

Function Documentation

◆ get_and_cast_data() [1/3]

static const VulkanMutableTextureState * skgpu::MutableTextureStates::get_and_cast_data ( const MutableTextureState mts)
static

Definition at line 43 of file VulkanMutableTextureState.cpp.

43 {
45 SkASSERT(!data || data->type() == BackendApi::kVulkan);
46 return static_cast<const VulkanMutableTextureState*>(data);
47}
#define SkASSERT(cond)
Definition: SkAssert.h:116
static const MutableTextureStateData * GetStateData(const MutableTextureState &mts)
@ kVulkan
Definition: embedder.h:86
std::shared_ptr< const fml::Mapping > data
Definition: texture_gles.cc:63

◆ get_and_cast_data() [2/3]

static const VulkanMutableTextureState * skgpu::MutableTextureStates::get_and_cast_data ( const MutableTextureState mts)
static

Definition at line 49 of file VulkanMutableTextureState.cpp.

49 {
51 SkASSERT(!data || data->type() == BackendApi::kVulkan);
52 return static_cast<const VulkanMutableTextureState*>(data);
53}

◆ get_and_cast_data() [3/3]

static VulkanMutableTextureState * skgpu::MutableTextureStates::get_and_cast_data ( MutableTextureState mts)
static

Definition at line 55 of file VulkanMutableTextureState.cpp.

55 {
57 SkASSERT(!data || data->type() == BackendApi::kVulkan);
58 return static_cast<VulkanMutableTextureState*>(data);
59}

◆ GetVkImageLayout() [1/2]

VkImageLayout skgpu::MutableTextureStates::GetVkImageLayout ( const MutableTextureState state)

Definition at line 61 of file VulkanMutableTextureState.cpp.

61 {
64}
AtkStateType state
static VulkanMutableTextureState * get_and_cast_data(MutableTextureState *mts)

◆ GetVkImageLayout() [2/2]

VkImageLayout skgpu::MutableTextureStates::GetVkImageLayout ( const MutableTextureState state)

Definition at line 66 of file VulkanMutableTextureState.cpp.

66 {
68 SkASSERT(state->backend() == BackendApi::kVulkan);
70}

◆ GetVkQueueFamilyIndex() [1/2]

uint32_t skgpu::MutableTextureStates::GetVkQueueFamilyIndex ( const MutableTextureState state)

◆ GetVkQueueFamilyIndex() [2/2]

uint32_t skgpu::MutableTextureStates::GetVkQueueFamilyIndex ( const MutableTextureState state)

Definition at line 82 of file VulkanMutableTextureState.cpp.

◆ MakeVulkan()

MutableTextureState skgpu::MutableTextureStates::MakeVulkan ( VkImageLayout  layout,
uint32_t  queueFamilyIndex 
)

Definition at line 37 of file VulkanMutableTextureState.cpp.

37 {
38 return MutableTextureStatePriv::MakeMutableTextureState(
40 VulkanMutableTextureState(layout, queueFamilyIndex));
41}

◆ SetVkImageLayout()

void skgpu::MutableTextureStates::SetVkImageLayout ( MutableTextureState state,
VkImageLayout  layout 
)

Definition at line 72 of file VulkanMutableTextureState.cpp.

72 {
73 SkASSERT(state->backend() == BackendApi::kVulkan);
75}

◆ SetVkQueueFamilyIndex()

void skgpu::MutableTextureStates::SetVkQueueFamilyIndex ( MutableTextureState state,
uint32_t  queueFamilyIndex 
)

Definition at line 88 of file VulkanMutableTextureState.cpp.

88 {
89 SkASSERT(state->backend() == BackendApi::kVulkan);
90 get_and_cast_data(state)->fQueueFamilyIndex = queueFamilyIndex;
91}