namespace skgpu { enumclass BackendApi : unsignedint; class MutableTextureStateData;
/** * 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 located in files like: * - include/gpu/vk/VulkanMutableTextureState.h
*/ class SK_API MutableTextureState : public SkRefCnt { public:
MutableTextureState();
~MutableTextureState() override;
// Returns true if the backend mutable state has been initialized. bool isValid() const { return fIsValid; }
private: friendclass MutableTextureStateData; friendclass MutableTextureStatePriv; // Size determined by looking at the MutableTextureStateData subclasses, then // guessing-and-checking. Compiler will complain if this is too small - in that case, // just increase the number. inline constexpr static size_t kMaxSubclassSize = 16; using AnyStateData = SkAnySubclass<MutableTextureStateData, kMaxSubclassSize>;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.