Skia
2D Graphics Library
skgpu::MutableTextureState Class Reference

Since Skia and clients can both modify gpu textures and their connected state, Skia needs a way for clients to inform us if they have modifiend any of this state. More...

#include <MutableTextureState.h>

Public Member Functions

 MutableTextureState ()
 
 MutableTextureState (const MutableTextureState &that)
 
MutableTextureStateoperator= (const MutableTextureState &that)
 
BackendApi backend () const
 
bool isValid () const
 

Friends

class MutableTextureStateRef
 
class ::GrVkGpu
 

Detailed Description

Since Skia and clients can both modify gpu textures and their connected state, Skia needs a way for clients to inform us if they have modifiend any of this state.

In order to not need setters for every single API and state, we use this class to be a generic wrapper around all the mutable state. This class is used for calls that inform Skia of these texture/image state changes by the client as well as for requesting state changes to be done by Skia. The backend specific state that is wrapped by this class are:

Vulkan: VkImageLayout and QueueFamilyIndex

Constructor & Destructor Documentation

◆ MutableTextureState() [1/2]

skgpu::MutableTextureState::MutableTextureState ( )
inline

◆ MutableTextureState() [2/2]

skgpu::MutableTextureState::MutableTextureState ( const MutableTextureState that)
inline

Member Function Documentation

◆ backend()

BackendApi skgpu::MutableTextureState::backend ( ) const
inline

◆ isValid()

bool skgpu::MutableTextureState::isValid ( ) const
inline

◆ operator=()

MutableTextureState& skgpu::MutableTextureState::operator= ( const MutableTextureState that)
inline

Friends And Related Function Documentation

◆ ::GrVkGpu

friend class ::GrVkGpu
friend

◆ MutableTextureStateRef

friend class MutableTextureStateRef
friend

Member Data Documentation

◆ fPlaceholder

char skgpu::MutableTextureState::fPlaceholder

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