metal

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2019 License: Apache-2.0 Imports: 11 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 graphics.CompositeMode, colorM *affine.ColorM, filter graphics.Filter, address graphics.Address) error

func (*Driver) End added in v1.9.2

func (d *Driver) End()

func (*Driver) Flush

func (d *Driver) Flush()

func (*Driver) IsGL

func (d *Driver) IsGL() bool

func (*Driver) NewImage

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

func (*Driver) NewScreenFramebufferImage

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

func (*Driver) Reset

func (d *Driver) Reset() error

func (*Driver) ResetSource

func (d *Driver) ResetSource()

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 uintptr)

func (*Driver) VDirection

func (d *Driver) VDirection() graphicsdriver.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(pixels []byte, x, y, width, height int)

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