shader – gioui.org/shader Index | Files | Directories

package shader

import "gioui.org/shader"

Index

Types

type BufferBinding

type BufferBinding struct {
	Name    string
	Binding int
}

type DataType

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

type ImageBinding

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
}

Source Files

shader.go

Directories

PathSynopsis
cmd
cmd/convertshaders
gio
piet
Version
v1.0.8 (latest)
Published
Oct 1, 2023
Platform
linux/amd64
Last checked
13 hours ago

Tools for package owners.