blob: 37a53355483e9a23921049130374f35d0c761869 [file] [log] [blame]
////////////////////////////////////////////////////////////////////////////////
// Do not modify!
// Generated by codergen
////////////////////////////////////////////////////////////////////////////////
package gfxapi
import (
"fmt"
"android.googlesource.com/platform/tools/gpu/binary/schema"
)
var ConstantValues schema.Constants
var _FramebufferAttachment_map = map[FramebufferAttachment]string{}
func init() {
_FramebufferAttachment_map[0] = "Color"
_FramebufferAttachment_map[1] = "Depth"
_FramebufferAttachment_map[2] = "Stencil"
ConstantValues = append(ConstantValues, schema.ConstantSet{
Type: &schema.Primitive{Name: "FramebufferAttachment", Method: schema.Uint32},
Entries: []schema.Constant{
{Name: "Color", Value: uint32(0)},
{Name: "Depth", Value: uint32(1)},
{Name: "Stencil", Value: uint32(2)},
},
})
}
func (v FramebufferAttachment) String() string {
if s, ok := _FramebufferAttachment_map[v]; ok {
return s
}
return fmt.Sprintf("FramebufferAttachment(%d)", v)
}
func (v *FramebufferAttachment) Parse(s string) error {
for k, t := range _FramebufferAttachment_map {
if s == t {
*v = k
return nil
}
}
return fmt.Errorf("%s not in FramebufferAttachment", s)
}