tree: 6ab7288d3e3b835a666481906ffa17a9b60fe74b [path history] [tgz]
  1. embed.go
  2. generate.go
  3. README.md
  4. rpc.go.tmpl
  5. rpc.java.tmpl
  6. rpc_common_go.tmpl
rpc/generate/README.md

generate


import "android.googlesource.com/platform/tools/gpu/rpc/generate"

Package generate contains the rpc code generation functionality.

Usage

func Go

func Go(f *template.Functions) error

Go invokes the main go code generation template.

func Init

func Init(apiFile string, api *semantic.API) *template.Functions

Init prepares a new template processor that layers the apic one with the functions from the binary codec generate package.

func Java

func Java(f *template.Functions) error

Java invokes the main go code generation template.