metal

package
v1.11.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

README

These packages are copied from Dmitri Shuralyov's mtl packages and edited with Dmitri's permission:

  • github.com/hajimehoshi/ebiten/internal/graphicsdriver/metal/ca (copied from dmitri.shuralyov.com/gpu/mtl/example/movingtriangle/internal/ca)
  • github.com/hajimehoshi/ebiten/internal/graphicsdriver/metal/mtl (copied from dmitri.shuralyov.com/gpu/mtl)
  • github.com/hajimehoshi/ebiten/internal/graphicsdriver/metal/ns (copied from dmitri.shuralyov.com/gpu/mtl/example/movingtriangle/internal/ns)

Documentation

Rendered for darwin/amd64

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver struct {
	// contains filtered or unexported fields
}

func Get

func Get() *Driver

func (*Driver) Begin added in v1.9.2

func (d *Driver) Begin()

func (*Driver) Draw

func (d *Driver) Draw(indexLen int, indexOffset int, mode driver.CompositeMode, colorM *affine.ColorM, filter driver.Filter, address driver.Address) error

func (*Driver) End added in v1.9.2

func (d *Driver) End()

func (*Driver) HasHighPrecisionFloat added in v1.10.0

func (d *Driver) HasHighPrecisionFloat() bool

func (*Driver) IsGL

func (d *Driver) IsGL() bool

func (*Driver) MaxImageSize added in v1.10.0

func (d *Driver) MaxImageSize() int

func (*Driver) NeedsRestoring added in v1.10.0

func (d *Driver) NeedsRestoring() bool

func (*Driver) NewImage

func (d *Driver) NewImage(width, height int) (driver.Image, error)

func (*Driver) NewScreenFramebufferImage

func (d *Driver) NewScreenFramebufferImage(width, height int) (driver.Image, error)

func (*Driver) Reset

func (d *Driver) Reset() error

func (*Driver) ResetSource

func (d *Driver) ResetSource()

func (*Driver) SetThread added in v1.10.0

func (d *Driver) SetThread(thread *thread.Thread)

func (*Driver) SetTransparent added in v1.11.0

func (d *Driver) SetTransparent(transparent bool)

func (*Driver) SetUIView added in v1.10.0

func (d *Driver) SetUIView(uiview uintptr)

func (*Driver) SetVertices

func (d *Driver) SetVertices(vertices []float32, indices []uint16)

func (*Driver) SetVsyncEnabled

func (d *Driver) SetVsyncEnabled(enabled bool)

func (*Driver) SetWindow

func (d *Driver) SetWindow(window unsafe.Pointer)

func (*Driver) VDirection

func (d *Driver) VDirection() driver.VDirection

type Image

type Image struct {
	// contains filtered or unexported fields
}

func (*Image) Dispose

func (i *Image) Dispose()

func (*Image) IsInvalidated

func (i *Image) IsInvalidated() bool

func (*Image) Pixels

func (i *Image) Pixels() ([]byte, error)

func (*Image) ReplacePixels

func (i *Image) ReplacePixels(args []*driver.ReplacePixelsArgs)

func (*Image) SetAsDestination

func (i *Image) SetAsDestination()

func (*Image) SetAsSource

func (i *Image) SetAsSource()

Directories

Path Synopsis
Package ca provides access to Apple's Core Animation API (https://developer.apple.com/documentation/quartzcore).
Package ca provides access to Apple's Core Animation API (https://developer.apple.com/documentation/quartzcore).
Package mtl provides access to Apple's Metal API (https://developer.apple.com/documentation/metal).
Package mtl provides access to Apple's Metal API (https://developer.apple.com/documentation/metal).
Package ns provides access to Apple's AppKit API (https://developer.apple.com/documentation/appkit).
Package ns provides access to Apple's AppKit API (https://developer.apple.com/documentation/appkit).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL