toggle menu
korge-root
5.1.0
common
switch theme
search in API
korge
/
korlibs.graphics.shader.gl
/
GlslBodyGenerator
Glsl
Body
Generator
class
GlslBodyGenerator
(
val
kind
:
ShaderType
,
val
config
:
GlslConfig
)
:
Program.Visitor
<
String
>
,
BaseGlslGenerator
Members
Constructors
Glsl
Body
Generator
Link copied to clipboard
constructor
(
kind
:
ShaderType
,
config
:
GlslConfig
)
Properties
array
Decl
Link copied to clipboard
open
val
Variable
.
arrayDecl
:
String
config
Link copied to clipboard
open
override
val
config
:
GlslConfig
default
Link copied to clipboard
val
default
:
String
gl_Frag
Color
Link copied to clipboard
open
val
gl_FragColor
:
String
IN
Link copied to clipboard
open
val
IN
:
String
kind
Link copied to clipboard
val
kind
:
ShaderType
OUT
Link copied to clipboard
open
val
OUT
:
String
program
Indenter
Link copied to clipboard
val
programIndenter
:
Indenter
temps
Link copied to clipboard
val
temps
:
LinkedHashSet
<
Temp
>
UNIFORM
Link copied to clipboard
open
val
UNIFORM
:
String
Functions
prec
To
String
Link copied to clipboard
open
fun
precToString
(
prec
:
Precision
)
:
String
type
To
String
Link copied to clipboard
open
fun
typeToString
(
type
:
VarType
)
:
String
visit
Link copied to clipboard
open
fun
visit
(
arg
:
Arg
)
:
String
open
fun
visit
(
attribute
:
Attribute
)
:
String
open
fun
visit
(
func
:
FuncDecl
)
open
fun
visit
(
operand
:
Operand
)
:
String
open
fun
visit
(
func
:
Program.CustomFunc
)
:
String
open
fun
visit
(
func
:
Program.Func
)
:
String
open
fun
visit
(
stm
:
Program.Stm
?
)
open
fun
visit
(
sampler
:
Sampler
)
:
String
open
fun
visit
(
typedUniform
:
TypedUniform
<
*
>
)
:
String
open
fun
visit
(
uniform
:
Uniform
)
:
String
open
fun
visit
(
varying
:
Varying
)
:
String
open
fun
visit
(
stms
:
List
<
Program.Stm
?
>
)
open
override
fun
visit
(
output
:
Output
)
:
String
open
override
fun
visit
(
operand
:
Program.ArrayAccess
)
:
String
open
override
fun
visit
(
func
:
Program.BaseFunc
)
:
String
open
override
fun
visit
(
operand
:
Program.Binop
)
:
String
open
override
fun
visit
(
operand
:
Program.BoolLiteral
)
:
String
open
override
fun
visit
(
operand
:
Program.FloatLiteral
)
:
String
open
override
fun
visit
(
operand
:
Program.IntLiteral
)
:
String
open
override
fun
visit
(
stm
:
Program.Stm.Break
)
open
override
fun
visit
(
stm
:
Program.Stm.Continue
)
open
override
fun
visit
(
stm
:
Program.Stm.Discard
)
open
override
fun
visit
(
stm
:
Program.Stm.ForSimple
)
open
override
fun
visit
(
stm
:
Program.Stm.If
)
open
override
fun
visit
(
stm
:
Program.Stm.Raw
)
open
override
fun
visit
(
stm
:
Program.Stm.Return
)
open
override
fun
visit
(
stm
:
Program.Stm.Set
)
open
override
fun
visit
(
stms
:
Program.Stm.Stms
)
open
override
fun
visit
(
operand
:
Program.Swizzle
)
:
String
open
override
fun
visit
(
ternary
:
Program.Ternary
)
:
String
open
override
fun
visit
(
operand
:
Program.Unop
)
:
String
open
override
fun
visit
(
operand
:
Program.Vector
)
:
String
open
override
fun
visit
(
temp
:
Temp
)
:
String
open
override
fun
visit
(
operand
:
Variable
)
:
String