Skia
2D Graphics Library
skgpu Namespace Reference

This file includes numerous public types that are used by all of our gpu backends. More...

Namespaces

 ganesh
 
 graphite
 

Classes

class  MutableTextureState
 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...
 
class  ShaderErrorHandler
 Abstract class to report errors when compiling shaders. More...
 

Enumerations

enum class  BackendApi : unsigned {
  kDawn , kMetal , kVulkan , kMock ,
  kUnsupported
}
 Possible 3D APIs that may be used by Graphite. More...
 
enum class  Budgeted : bool { kNo = false , kYes = true }
 Indicates whether an allocation should count against a cache budget. More...
 
enum class  CallbackResult : bool { kFailed = false , kSuccess = true }
 Value passed into various callbacks to tell the client the result of operations connected to a specific callback. More...
 
enum class  Mipmapped : bool { kNo = false , kYes = true }
 Is the texture mipmapped or not. More...
 
enum class  Protected : bool { kNo = false , kYes = true }
 Is the data protected on the GPU or not. More...
 
enum class  Renderable : bool { kNo = false , kYes = true }
 Is a texture renderable or not. More...
 
enum class  Origin : unsigned { kTopLeft , kBottomLeft }
 What is the logical origin of a BackendTexture passed into Skia. More...
 

Functions

ShaderErrorHandlerDefaultShaderErrorHandler ()
 Used when no error handler is set. More...
 

Detailed Description

This file includes numerous public types that are used by all of our gpu backends.

Enumeration Type Documentation

◆ BackendApi

enum skgpu::BackendApi : unsigned
strong

Possible 3D APIs that may be used by Graphite.

Enumerator
kDawn 
kMetal 
kVulkan 
kMock 
kUnsupported 

Graphite doesn't support some context types (e.g.

Direct3D) and will return Unsupported.

◆ Budgeted

enum skgpu::Budgeted : bool
strong

Indicates whether an allocation should count against a cache budget.

Enumerator
kNo 
kYes 

◆ CallbackResult

enum skgpu::CallbackResult : bool
strong

Value passed into various callbacks to tell the client the result of operations connected to a specific callback.

The actual interpretation of kFailed and kSuccess are dependent on the specific callbacks and are documented with the callback itself.

Enumerator
kFailed 
kSuccess 

◆ Mipmapped

enum skgpu::Mipmapped : bool
strong

Is the texture mipmapped or not.

Enumerator
kNo 
kYes 

◆ Origin

enum skgpu::Origin : unsigned
strong

What is the logical origin of a BackendTexture passed into Skia.

Enumerator
kTopLeft 
kBottomLeft 

◆ Protected

enum skgpu::Protected : bool
strong

Is the data protected on the GPU or not.

Enumerator
kNo 
kYes 

◆ Renderable

enum skgpu::Renderable : bool
strong

Is a texture renderable or not.

Enumerator
kNo 
kYes 

Function Documentation

◆ DefaultShaderErrorHandler()

ShaderErrorHandler* skgpu::DefaultShaderErrorHandler ( )

Used when no error handler is set.

Will report failures via SkDebugf and asserts.