cpu – gioui.org/cpu Index | Files | Directories

package cpu

import "gioui.org/cpu"

Index

Constants

const Supported = true

Variables

var ABIH []byte
var RuntimeH []byte

Types

type BufferDescriptor

type BufferDescriptor = C.struct_buffer_descriptor

func NewBuffer

func NewBuffer(size int) BufferDescriptor

func (*BufferDescriptor) Data

func (d *BufferDescriptor) Data() []byte

func (*BufferDescriptor) Free

func (d *BufferDescriptor) Free()

type DispatchContext

type DispatchContext = C.struct_dispatch_context

func NewDispatchContext

func NewDispatchContext() *DispatchContext

func (*DispatchContext) Dispatch

func (c *DispatchContext) Dispatch(threadIdx int, ctx *ThreadContext)

func (*DispatchContext) Free

func (c *DispatchContext) Free()

func (*DispatchContext) Prepare

func (c *DispatchContext) Prepare(numThreads int, prog *ProgramInfo, descSet unsafe.Pointer, x, y, z int)

type ImageDescriptor

type ImageDescriptor = C.struct_image_descriptor

func NewImageRGBA

func NewImageRGBA(width, height int) ImageDescriptor

func (*ImageDescriptor) Data

func (d *ImageDescriptor) Data() []byte

func (*ImageDescriptor) Free

func (d *ImageDescriptor) Free()

type ProgramInfo

type ProgramInfo = C.struct_program_info

type ThreadContext

type ThreadContext = C.struct_thread_context

func NewThreadContext

func NewThreadContext() *ThreadContext

func (*ThreadContext) Free

func (c *ThreadContext) Free()

Source Files

driver.go embed.go

Directories

PathSynopsis
cmd
cmd/compile
cmd/example
Version
v0.0.0-20220412190645-f1e9e8c3b1f7 (latest)
Published
Apr 12, 2022
Platform
linux/amd64
Imports
3 packages
Last checked
2 weeks ago

Tools for package owners.