toggle menu
korge-root
5.1.0
common
switch theme
search in API
korge
/
korlibs.graphics.shader
/
Attribute
Attribute
open
class
Attribute
(
val
name
:
String
,
val
type
:
VarType
,
val
normalized
:
Boolean
,
val
offset
:
Int
?
=
null
,
val
active
:
Boolean
=
true
,
val
precision
:
Precision
=
Precision.DEFAULT
,
val
divisor
:
Int
=
0
,
val
fixedLocation
:
Int
)
:
VariableWithOffset
Members
Members & Extensions
Constructors
Attribute
Link copied to clipboard
constructor
(
name
:
String
,
type
:
VarType
,
normalized
:
Boolean
,
precision
:
Precision
=
Precision.DEFAULT
,
fixedLocation
:
Int
)
constructor
(
name
:
String
,
type
:
VarType
,
normalized
:
Boolean
,
offset
:
Int
?
=
null
,
active
:
Boolean
=
true
,
precision
:
Precision
=
Precision.DEFAULT
,
divisor
:
Int
=
0
,
fixedLocation
:
Int
)
Types
Provider
Link copied to clipboard
class
Provider
(
val
type
:
VarType
,
val
normalized
:
Boolean
,
val
precision
:
Precision
=
Precision.DEFAULT
,
val
fixedLocation
:
Int
)
Properties
a
Link copied to clipboard
open
val
Operand
.
a
:
Operand
active
Link copied to clipboard
val
active
:
Boolean
=
true
array
Count
Link copied to clipboard
val
arrayCount
:
Int
b
Link copied to clipboard
open
val
Operand
.
b
:
Operand
data
Link copied to clipboard
var
data
:
Any
?
divisor
Link copied to clipboard
val
divisor
:
Int
=
0
element
Count
Link copied to clipboard
val
elementCount
:
Int
fixed
Location
Link copied to clipboard
val
fixedLocation
:
Int
g
Link copied to clipboard
open
val
Operand
.
g
:
Operand
id
Link copied to clipboard
var
id
:
Int
index
Names
Link copied to clipboard
val
indexNames
:
Array
<
String
>
kind
Link copied to clipboard
val
kind
:
VarKind
name
Link copied to clipboard
val
name
:
String
normalized
Link copied to clipboard
val
normalized
:
Boolean
offset
Link copied to clipboard
val
offset
:
Int
?
=
null
pow2
Link copied to clipboard
val
Operand
.
pow2
:
Operand
precision
Link copied to clipboard
val
precision
:
Precision
r
Link copied to clipboard
open
val
Operand
.
r
:
Operand
stride
Link copied to clipboard
val
stride
:
Int
total
Bytes
Link copied to clipboard
val
totalBytes
:
Int
total
Elements
Link copied to clipboard
val
totalElements
:
Int
type
Link copied to clipboard
open
val
type
:
VarType
w
Link copied to clipboard
open
val
Operand
.
w
:
Operand
x
Link copied to clipboard
open
val
Operand
.
x
:
Operand
y
Link copied to clipboard
open
val
Operand
.
y
:
Operand
z
Link copied to clipboard
open
val
Operand
.
z
:
Operand
Functions
and
Link copied to clipboard
open
infix
fun
Operand
.
and
(
that
:
Operand
)
:
Operand
assign
Link copied to clipboard
fun
Operand
.
assign
(
from
:
Operand
)
copy
Link copied to clipboard
fun
copy
(
name
:
String
=
this.name
,
type
:
VarType
=
this.type
,
normalized
:
Boolean
=
this.normalized
,
offset
:
Int
?
=
this.offset
,
active
:
Boolean
=
this.active
,
precision
:
Precision
=
this.precision
,
divisor
:
Int
=
this.divisor
,
fixedLocation
:
Int
=
this.fixedLocation
)
:
Attribute
div
Link copied to clipboard
open
operator
fun
Operand
.
div
(
that
:
Operand
)
:
Operand
open
operator
fun
Operand
.
div
(
that
:
Float
)
:
Operand
eq
Link copied to clipboard
open
infix
fun
Operand
.
eq
(
that
:
Operand
)
:
Operand
open
infix
fun
Operand
.
eq
(
that
:
Float
)
:
Operand
equals
Link copied to clipboard
open
operator override
fun
equals
(
other
:
Any
?
)
:
Boolean
ge
Link copied to clipboard
open
infix
fun
Operand
.
ge
(
that
:
Operand
)
:
Operand
open
infix
fun
Operand
.
ge
(
that
:
Float
)
:
Operand
get
Link copied to clipboard
open
operator
fun
Operand
.
get
(
index
:
Int
)
:
Operand
open
operator
fun
Operand
.
get
(
swizzle
:
String
)
:
Operand
get
Value
Link copied to clipboard
operator
fun
getValue
(
thisRef
:
Any
?
,
property
:
KProperty
<
*
>
)
:
Attribute
gt
Link copied to clipboard
open
infix
fun
Operand
.
gt
(
that
:
Operand
)
:
Operand
open
infix
fun
Operand
.
gt
(
that
:
Float
)
:
Operand
hash
Code
Link copied to clipboard
open
override
fun
hashCode
(
)
:
Int
inactived
Link copied to clipboard
fun
inactived
(
)
:
Attribute
in
Range
Link copied to clipboard
open
fun
Operand
.
inRange
(
low
:
Operand
,
high
:
Operand
)
:
Operand
le
Link copied to clipboard
open
infix
fun
Operand
.
le
(
that
:
Operand
)
:
Operand
open
infix
fun
Operand
.
le
(
that
:
Float
)
:
Operand
lt
Link copied to clipboard
open
infix
fun
Operand
.
lt
(
that
:
Operand
)
:
Operand
open
infix
fun
Operand
.
lt
(
that
:
Float
)
:
Operand
mequals
Link copied to clipboard
inline
fun
<
T
:
Variable
>
mequals
(
other
:
Any
?
)
:
Boolean
mhashcode
Link copied to clipboard
inline
fun
mhashcode
(
)
:
Int
minus
Link copied to clipboard
open
operator
fun
Operand
.
minus
(
that
:
Operand
)
:
Operand
open
operator
fun
Operand
.
minus
(
that
:
Float
)
:
Operand
ne
Link copied to clipboard
open
infix
fun
Operand
.
ne
(
that
:
Operand
)
:
Operand
open
infix
fun
Operand
.
ne
(
that
:
Float
)
:
Operand
not
Link copied to clipboard
open
fun
Operand
.
not
(
)
:
Operand
or
Link copied to clipboard
open
infix
fun
Operand
.
or
(
that
:
Operand
)
:
Operand
plus
Link copied to clipboard
open
operator
fun
Operand
.
plus
(
that
:
Operand
)
:
Operand
open
operator
fun
Operand
.
plus
(
that
:
Float
)
:
Operand
rem
Link copied to clipboard
open
operator
fun
Operand
.
rem
(
that
:
Operand
)
:
Operand
open
operator
fun
Operand
.
rem
(
that
:
Float
)
:
Operand
set
Link copied to clipboard
infix
fun
Operand
.
set
(
from
:
Operand
)
set
To
Link copied to clipboard
infix
fun
Operand
.
setTo
(
from
:
Operand
)
times
Link copied to clipboard
open
operator
fun
Operand
.
times
(
that
:
Operand
)
:
Operand
open
operator
fun
Operand
.
times
(
that
:
Float
)
:
Operand
to
String
Link copied to clipboard
open
override
fun
toString
(
)
:
String
to
String
Ex
Link copied to clipboard
fun
toStringEx
(
)
:
String
unary
Minus
Link copied to clipboard
open
operator
fun
Operand
.
unaryMinus
(
)
:
Operand
with
Divisor
Link copied to clipboard
fun
withDivisor
(
divisor
:
Int
)
:
Attribute
with
Fixed
Location
Link copied to clipboard
fun
withFixedLocation
(
fixedLocation
:
Int
)
:
Attribute