blob: 7b84ffdf7bc3e68e2ad247afb8b158d7acaa2c1b [file] [log] [blame]
////////////////////////////////////////////////////////////////////////////////
// Do not modify!
// Generated by codergen
////////////////////////////////////////////////////////////////////////////////
package replay
import (
"fmt"
"android.googlesource.com/platform/tools/gpu/binary/schema"
)
var ConstantValues schema.Constants
var _WireframeMode_map = map[WireframeMode]string{}
func init() {
_WireframeMode_cs := schema.ConstantSet{
Type: &schema.Primitive{Name: "WireframeMode", Method: schema.Int32},
Entries: []schema.Constant{
{Name: "NoWireframe", Value: int32(0)},
{Name: "WireframeOverlay", Value: int32(1)},
{Name: "AllWireframe", Value: int32(2)},
},
}
ConstantValues = append(ConstantValues, _WireframeMode_cs)
for _, cv := range _WireframeMode_cs.Entries {
_WireframeMode_map[WireframeMode(cv.Value.(int32))] = cv.Name
}
}
func (v WireframeMode) String() string {
if s, ok := _WireframeMode_map[v]; ok {
return s
}
return fmt.Sprintf("WireframeMode(%d)", v)
}
func (v *WireframeMode) Parse(s string) error {
for k, t := range _WireframeMode_map {
if s == t {
*v = k
return nil
}
}
return fmt.Errorf("%s not in WireframeMode", s)
}