toggle menu
korge-root
5.1.0
common
switch theme
search in API
korge
/
korlibs.graphics.shader.gl
/
GlslGenerator
Glsl
Generator
class
GlslGenerator
(
val
kind
:
ShaderType
,
val
config
:
GlslConfig
)
:
BaseGlslGenerator
Members
Constructors
Glsl
Generator
Link copied to clipboard
constructor
(
kind
:
ShaderType
,
config
:
GlslConfig
)
Types
Companion
Link copied to clipboard
object
Companion
Result
Link copied to clipboard
data
class
Result
(
val
generator
:
GlslGenerator
,
val
result
:
String
,
val
attributes
:
List
<
Attribute
>
,
val
uniforms
:
List
<
Uniform
>
,
val
varyings
:
List
<
Varying
>
)
Properties
array
Decl
Link copied to clipboard
open
val
Variable
.
arrayDecl
:
String
compatibility
Link copied to clipboard
val
compatibility
:
Boolean
config
Link copied to clipboard
open
override
val
config
:
GlslConfig
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
UNIFORM
Link copied to clipboard
open
val
UNIFORM
:
String
Functions
generate
Link copied to clipboard
fun
generate
(
root
:
Shader
)
:
String
fun
generate
(
root
:
Program.Stm
,
funcs
:
List
<
FuncDecl
>
)
:
String
generate
Result
Link copied to clipboard
fun
generateResult
(
shader
:
Shader
)
:
GlslGenerator.Result
fun
generateResult
(
root
:
Program.Stm
,
funcs
:
List
<
FuncDecl
>
)
:
GlslGenerator.Result
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