shader

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2021 License: MIT, Unlicense Imports: 0 Imported by: 5

README

GPU programs for the Gio project

This repository contains the source code for the Gio project. It also contains the generators and dereived 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 DataType

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

type DepthFunc

type DepthFunc uint8

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
	GLSL100ES     string
	GLSL300ES     string
	GLSL310ES     string
	GLSL130       string
	GLSL150       string
	DXBC          string
	MetalLib      string
	Uniforms      UniformsReflection
	Inputs        []InputLocation
	Textures      []TextureBinding
	WorkgroupSize [3]int
}

type TextureBinding

type TextureBinding struct {
	Name    string
	Binding int
}

type UniformBlock

type UniformBlock struct {
	Name    string
	Binding int
}

type UniformLocation

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

type UniformsReflection

type UniformsReflection struct {
	Blocks    []UniformBlock
	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