toggle menu
korge-root
5.1.0
common
switch theme
search in API
korge
/
korlibs.graphics.shader
/
Uniform
Uniform
open
class
Uniform
(
val
name
:
String
,
val
type
:
VarType
,
val
arrayCount
:
Int
,
val
precision
:
Precision
=
Precision.DEFAULT
,
val
offset
:
Int
?
=
null
,
val
typedUniform
:
TypedUniform
<
*
>
)
:
VariableWithOffset
Members
Members & Extensions
Constructors
Uniform
Link copied to clipboard
constructor
(
name
:
String
,
type
:
VarType
,
arrayCount
:
Int
,
precision
:
Precision
=
Precision.DEFAULT
,
offset
:
Int
?
=
null
,
typedUniform
:
TypedUniform
<
*
>
)
Properties
a
Link copied to clipboard
open
val
Operand
.
a
:
Operand
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
?
element
Count
Link copied to clipboard
val
elementCount
:
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
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
Element
Count
Link copied to clipboard
val
totalElementCount
:
Int
total
Elements
Link copied to clipboard
val
totalElements
:
Int
type
Link copied to clipboard
open
val
type
:
VarType
typed
Uniform
Link copied to clipboard
val
typedUniform
:
TypedUniform
<
*
>
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
)
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
<
*
>
)
:
Uniform
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
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
unary
Minus
Link copied to clipboard
open
operator
fun
Operand
.
unaryMinus
(
)
:
Operand