shader

package module
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2023 License: MIT, Unlicense Imports: 0 Imported by: 5

README

GPU programs for the Gio project

This repository contains source code for the Gio project. It also contains the generators and derived versions for use with the GPU APIs supported by Gio.

Generating CPU fallbacks

The piet/gencpu.sh script updates the piet-gpu binaries:

$ cd piet
$ ./gencpu.sh

Issues and contributions

See the Gio contribution guide.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BufferBinding added in v1.0.3

type BufferBinding struct {
	Name    string
	Binding int
}

type DataType

type DataType uint8
const (
	DataTypeFloat DataType = iota
	DataTypeInt
	DataTypeShort
)

type ImageBinding added in v1.0.3

type ImageBinding struct {
	Name    string
	Binding int
}

type InputLocation

type InputLocation struct {
	// For GLSL.
	Name     string
	Location int
	// For HLSL.
	Semantic      string
	SemanticIndex int

	Type DataType
	Size int
}

type Sources

type Sources struct {
	Name           string
	SPIRV          string
	GLSL100ES      string
	GLSL150        string
	DXBC           string
	MetalLib       string
	Uniforms       UniformsReflection
	Inputs         []InputLocation
	Textures       []TextureBinding
	StorageBuffers []BufferBinding
	Images         []ImageBinding
	WorkgroupSize  [3]int
}

type TextureBinding

type TextureBinding struct {
	Name    string
	Binding int
}

type UniformLocation

type UniformLocation struct {
	Name   string
	Type   DataType
	Size   int
	Offset int
}

type UniformsReflection

type UniformsReflection struct {
	Locations []UniformLocation
	Size      int
}

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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