blob: 93203ff33eadfde24268ce2cfe57e22d3b0d6c7c [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_map[0] = "NoWireframe"
_WireframeMode_map[1] = "WireframeOverlay"
_WireframeMode_map[2] = "AllWireframe"
ConstantValues = append(ConstantValues, 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)},
},
})
}
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)
}