apps

package
v0.0.0-...-594db45 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const MaxFramesInFlight = 2

Variables

This section is empty.

Functions

This section is empty.

Types

type HelloTriangleApplication

type HelloTriangleApplication struct {
	Shaders  embed.FS
	Vertices []Vertex
	Indices  []uint16
	// contains filtered or unexported fields
}

func (*HelloTriangleApplication) Run

func (app *HelloTriangleApplication) Run() error

type QueueFamilyIndices

type QueueFamilyIndices struct {
	GraphicsFamily *int
	PresentFamily  *int
}

func (*QueueFamilyIndices) IsComplete

func (i *QueueFamilyIndices) IsComplete() bool

type SwapChainSupportDetails

type SwapChainSupportDetails struct {
	Capabilities *khr_surface.SurfaceCapabilities
	Formats      []khr_surface.SurfaceFormat
	PresentModes []khr_surface.PresentMode
}

type UniformBufferObject

type UniformBufferObject struct {
	Model vkngmath.Mat4x4[float32]
	View  vkngmath.Mat4x4[float32]
	Proj  vkngmath.Mat4x4[float32]
}

type Vertex

type Vertex struct {
	Position vkngmath.Vec2[float32]
	Color    vkngmath.Vec3[float32]
}

Jump to

Keyboard shortcuts

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