Skia
2D Graphics Library
SkRuntimeEffect::Uniform Struct Reference

#include <SkRuntimeEffect.h>

Public Types

enum class  Type {
  kFloat , kFloat2 , kFloat3 , kFloat4 ,
  kFloat2x2 , kFloat3x3 , kFloat4x4 , kInt ,
  kInt2 , kInt3 , kInt4
}
 
enum  Flags {
  kArray_Flag = 0x1 , kColor_Flag = 0x2 , kVertex_Flag = 0x4 , kFragment_Flag = 0x8 ,
  kHalfPrecision_Flag = 0x10
}
 

Public Member Functions

bool isArray () const
 
bool isColor () const
 
size_t sizeInBytes () const
 

Public Attributes

std::string_view name
 
size_t offset
 
Type type
 
int count
 
uint32_t flags
 

Member Enumeration Documentation

◆ Flags

Enumerator
kArray_Flag 
kColor_Flag 
kVertex_Flag 
kFragment_Flag 
kHalfPrecision_Flag 

◆ Type

Enumerator
kFloat 
kFloat2 
kFloat3 
kFloat4 
kFloat2x2 
kFloat3x3 
kFloat4x4 
kInt 
kInt2 
kInt3 
kInt4 

Member Function Documentation

◆ isArray()

bool SkRuntimeEffect::Uniform::isArray ( ) const
inline

◆ isColor()

bool SkRuntimeEffect::Uniform::isColor ( ) const
inline

◆ sizeInBytes()

size_t SkRuntimeEffect::Uniform::sizeInBytes ( ) const

Member Data Documentation

◆ count

int SkRuntimeEffect::Uniform::count

◆ flags

uint32_t SkRuntimeEffect::Uniform::flags

◆ name

std::string_view SkRuntimeEffect::Uniform::name

◆ offset

size_t SkRuntimeEffect::Uniform::offset

◆ type

Type SkRuntimeEffect::Uniform::type

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