mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-02-04 23:14:28 +01:00
shader: Fix comments
This commit is contained in:
parent
fc0604805a
commit
c8045210ac
@ -91,11 +91,11 @@ func NewShader(src []byte) (*Shader, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (s *Shader) addError(str string) {
|
func (s *Shader) addError(str string) {
|
||||||
|
// TODO: Add token positions.
|
||||||
s.errs = append(s.errs, str)
|
s.errs = append(s.errs, str)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *Shader) parse(f *ast.File) {
|
func (s *Shader) parse(f *ast.File) {
|
||||||
// TODO: Accumulate errors
|
|
||||||
for name, obj := range f.Scope.Objects {
|
for name, obj := range f.Scope.Objects {
|
||||||
switch name {
|
switch name {
|
||||||
case varyingStructName:
|
case varyingStructName:
|
||||||
|
Loading…
Reference in New Issue
Block a user