image

package
v0.0.0-...-124f97e Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: GPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args struct {
	Type    core1_0.ImageType
	Key     string
	Width   int
	Height  int
	Depth   int
	Layers  int
	Levels  int
	Format  core1_0.Format
	Usage   core1_0.ImageUsageFlags
	Tiling  core1_0.ImageTiling
	Sharing core1_0.SharingMode
	Layout  core1_0.ImageLayout
	Memory  core1_0.MemoryPropertyFlags
}

type Data

type Data struct {
	Width  int
	Height int
	Format core1_0.Format
	Buffer []byte
}

func LoadFile

func LoadFile(file string) (*Data, error)

type T

type T interface {
	device.Resource[core1_0.Image]

	Key() string
	Memory() device.Memory
	View(format core1_0.Format, mask core1_0.ImageAspectFlags) (View, error)
	Width() int
	Height() int
	Format() core1_0.Format
	Size() vec3.T
}

func New

func New(device device.T, args Args) (T, error)

func New2D

func New2D(device device.T, key string, width, height int, format core1_0.Format, usage core1_0.ImageUsageFlags) (T, error)

func Wrap

func Wrap(dev device.T, ptr core1_0.Image, args Args) T

type View

type View interface {
	device.Resource[core1_0.ImageView]

	Image() T
	Format() core1_0.Format
}

Jump to

Keyboard shortcuts

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