zworld/engine/renderapi/vertex/pointer.go

22 lines
340 B
Go
Raw Normal View History

2024-01-14 22:56:06 +08:00
package vertex
import (
"zworld/engine/renderapi/types"
)
type Pointer struct {
Name string
Binding int
Source types.Type
Destination types.Type
Elements int
Stride int
Offset int
Normalize bool
}
func (p *Pointer) Bind(binding int, kind types.Type) {
p.Binding = binding
p.Destination = kind
}