Documentation ¶
Index ¶
Constants ¶
View Source
const Supported = true
Variables ¶
View Source
var ABIH []byte
View Source
var RuntimeH []byte
Functions ¶
This section is empty.
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()
Click to show internal directories.
Click to hide internal directories.