gpu,gpu/backend: implement GLSL 300 es shader variants

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2020-02-25 18:52:28 +01:00
parent 3a5a2cff6b
commit 0d266c413d
7 changed files with 190 additions and 109 deletions
+17 -6
View File
@@ -47,12 +47,18 @@ type Device interface {
}
type ShaderSources struct {
GLES2 string
HLSL []byte
Uniforms []UniformLocation
UniformSize int
Inputs []InputLocation
Textures []TextureBinding
GLSL100ES string
GLSL300ES string
HLSL []byte
Uniforms UniformsReflection
Inputs []InputLocation
Textures []TextureBinding
}
type UniformsReflection struct {
Blocks []UniformBlock
Locations []UniformLocation
Size int
}
type TextureBinding struct {
@@ -60,6 +66,11 @@ type TextureBinding struct {
Binding int
}
type UniformBlock struct {
Name string
Binding int
}
type UniformLocation struct {
Name string
Type DataType