gpu,gpu/internal: move InputDesc back from gioui.org/shader module

It was moved to gioui.org/shader by mistake.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2021-08-11 16:11:26 +02:00
parent afaa31eca8
commit d38c78d7ac
7 changed files with 18 additions and 10 deletions
+9 -1
View File
@@ -60,11 +60,19 @@ type Pipeline interface {
type PipelineDesc struct {
VertexShader VertexShader
FragmentShader FragmentShader
VertexLayout []shader.InputDesc
VertexLayout []InputDesc
BlendDesc BlendDesc
PixelFormat TextureFormat
}
// InputDesc describes a vertex attribute as laid out in a Buffer.
type InputDesc struct {
Type shader.DataType
Size int
Offset int
}
type BlendDesc struct {
Enable bool
SrcFactor, DstFactor BlendFactor