texture

package
v0.0.0-...-59761c8 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnyData

type AnyData interface {
	~gpu.RGBA | ~gpu.Vec4 | ~gpu.Vec4i | ~gpu.Vec4u
}

type ArraySampler2D

type ArraySampler2D[T AnyData] struct {
	// contains filtered or unexported fields
}

func (ArraySampler2D[T]) TexelFetch

func (s ArraySampler2D[T]) TexelFetch(p gpu.Vec3i, lod gpu.Int) T

func (ArraySampler2D[T]) TexelFetchOffset

func (s ArraySampler2D[T]) TexelFetchOffset(p gpu.Vec3i, lod gpu.Int, offset gpu.Vec2i) T

func (ArraySampler2D[T]) Texture

func (s ArraySampler2D[T]) Texture(uv gpu.Vec3) T

func (ArraySampler2D[T]) TextureGrad

func (s ArraySampler2D[T]) TextureGrad(uv gpu.Vec3, dPdx, dPdy gpu.Vec2) T

func (ArraySampler2D[T]) TextureGradOffset

func (s ArraySampler2D[T]) TextureGradOffset(uv gpu.Vec3, dPdx, dPdy gpu.Vec2, offset gpu.Vec2i) T

func (ArraySampler2D[T]) TextureLOD

func (s ArraySampler2D[T]) TextureLOD(uv gpu.Vec3, lod gpu.Float) T

func (ArraySampler2D[T]) TextureOffsetLOD

func (s ArraySampler2D[T]) TextureOffsetLOD(uv gpu.Vec3, offset gpu.Vec2i, lod gpu.Float) T

func (ArraySampler2D[T]) TextureSize

func (s ArraySampler2D[T]) TextureSize(lod gpu.Int) gpu.Vec3i

func (ArraySampler2D[T]) TextureWithBias

func (s ArraySampler2D[T]) TextureWithBias(uv gpu.Vec3, bias gpu.Float) T

type ArraySampler3D

type ArraySampler3D[T float64 | int | uint] struct {
	// contains filtered or unexported fields
}

type CubeSampler

type CubeSampler[T AnyData] struct {
	// contains filtered or unexported fields
}

func (CubeSampler[T]) Texture

func (s CubeSampler[T]) Texture(uv gpu.Vec3) T

func (CubeSampler[T]) TextureGrad

func (s CubeSampler[T]) TextureGrad(uv, dPdx, dPdy gpu.Vec3) T

func (CubeSampler[T]) TextureLOD

func (s CubeSampler[T]) TextureLOD(uv gpu.Vec3, lod gpu.Float) T

func (CubeSampler[T]) TextureSize

func (s CubeSampler[T]) TextureSize(lod gpu.Int) gpu.Vec2i

func (CubeSampler[T]) TextureWithBias

func (s CubeSampler[T]) TextureWithBias(uv gpu.Vec3, bias gpu.Float) T

type Sampler2D

type Sampler2D[T AnyData] struct {
	// contains filtered or unexported fields
}

func (Sampler2D[T]) TexelFetch

func (s Sampler2D[T]) TexelFetch(p gpu.Vec2i, lod gpu.Int) T

func (Sampler2D[T]) TexelFetchOffset

func (s Sampler2D[T]) TexelFetchOffset(p gpu.Vec2i, lod gpu.Int, offset gpu.Vec2i) T

func (Sampler2D[T]) Texture

func (s Sampler2D[T]) Texture(uv gpu.Vec2) T

func (Sampler2D[T]) TextureBias

func (s Sampler2D[T]) TextureBias(uv gpu.Vec2, bias gpu.Float) T

func (Sampler2D[T]) TextureGrad

func (s Sampler2D[T]) TextureGrad(uv, dPdx, dPdy gpu.Vec2) T

func (Sampler2D[T]) TextureGradOffset

func (s Sampler2D[T]) TextureGradOffset(uv, dPdx, dPdy gpu.Vec2, offset gpu.Vec2i) T

func (Sampler2D[T]) TextureLOD

func (s Sampler2D[T]) TextureLOD(uv gpu.Vec2, lod gpu.Float) T

func (Sampler2D[T]) TextureOffset

func (s Sampler2D[T]) TextureOffset(uv gpu.Vec2, offset gpu.Vec2i) T

func (Sampler2D[T]) TextureOffsetBias

func (s Sampler2D[T]) TextureOffsetBias(uv gpu.Vec2, offset gpu.Vec2i, bias gpu.Float) T

func (Sampler2D[T]) TextureOffsetLOD

func (s Sampler2D[T]) TextureOffsetLOD(uv gpu.Vec2, offset gpu.Vec2i, lod gpu.Float) T

func (Sampler2D[T]) TextureProj3

func (s Sampler2D[T]) TextureProj3(uv gpu.Vec3) T

func (Sampler2D[T]) TextureProj3Bias

func (s Sampler2D[T]) TextureProj3Bias(uv gpu.Vec3, bias gpu.Float) T

func (Sampler2D[T]) TextureProj3Grad

func (s Sampler2D[T]) TextureProj3Grad(uv gpu.Vec3, dPdx, dPdy gpu.Vec2) T

func (Sampler2D[T]) TextureProj3GradOffset

func (s Sampler2D[T]) TextureProj3GradOffset(uv gpu.Vec3, dPdx, dPdy gpu.Vec2, offset gpu.Vec2i) T

func (Sampler2D[T]) TextureProj3LOD

func (s Sampler2D[T]) TextureProj3LOD(uv gpu.Vec3, lod gpu.Float) T

func (Sampler2D[T]) TextureProj3LODOffset

func (s Sampler2D[T]) TextureProj3LODOffset(uv gpu.Vec3, lod gpu.Float, offset gpu.Vec2i) T

func (Sampler2D[T]) TextureProj3Offset

func (s Sampler2D[T]) TextureProj3Offset(uv gpu.Vec3, offset gpu.Vec2i) T

func (Sampler2D[T]) TextureProj3OffsetBias

func (s Sampler2D[T]) TextureProj3OffsetBias(uv gpu.Vec3, offset gpu.Vec2i, bias gpu.Float) T

func (Sampler2D[T]) TextureProj4

func (s Sampler2D[T]) TextureProj4(uv gpu.Vec4) T

func (Sampler2D[T]) TextureProj4Bias

func (s Sampler2D[T]) TextureProj4Bias(uv gpu.Vec4, bias gpu.Float) T

func (Sampler2D[T]) TextureProj4Grad

func (s Sampler2D[T]) TextureProj4Grad(uv gpu.Vec4, dPdx, dPdy gpu.Vec2) T

func (Sampler2D[T]) TextureProj4GradOffset

func (s Sampler2D[T]) TextureProj4GradOffset(uv gpu.Vec4, dPdx, dPdy gpu.Vec2, offset gpu.Vec2i) T

func (Sampler2D[T]) TextureProj4LOD

func (s Sampler2D[T]) TextureProj4LOD(uv gpu.Vec4, lod gpu.Float) T

func (Sampler2D[T]) TextureProj4LODOffset

func (s Sampler2D[T]) TextureProj4LODOffset(uv gpu.Vec4, lod gpu.Float, offset gpu.Vec2i) T

func (Sampler2D[T]) TextureProj4Offset

func (s Sampler2D[T]) TextureProj4Offset(uv gpu.Vec4, offset gpu.Vec2i) T

func (Sampler2D[T]) TextureProj4OffsetBias

func (s Sampler2D[T]) TextureProj4OffsetBias(uv gpu.Vec4, offset gpu.Vec2i, bias gpu.Float) T

func (Sampler2D[T]) TextureSize

func (s Sampler2D[T]) TextureSize(lod gpu.Int) gpu.Vec2i

type Sampler3D

type Sampler3D[T AnyData] struct {
	// contains filtered or unexported fields
}

func (Sampler3D[T]) TexelFetch

func (s Sampler3D[T]) TexelFetch(p gpu.Vec3i, lod gpu.Int) T

func (Sampler3D[T]) TexelFetchOffset

func (s Sampler3D[T]) TexelFetchOffset(p gpu.Vec3i, lod gpu.Int, offset gpu.Vec3i) T

func (Sampler3D[T]) Texture

func (s Sampler3D[T]) Texture(uv gpu.Vec3) T

func (Sampler3D[T]) TextureBias

func (s Sampler3D[T]) TextureBias(uv gpu.Vec3, bias gpu.Float) T

func (Sampler3D[T]) TextureGrad

func (s Sampler3D[T]) TextureGrad(uv gpu.Vec3, dPdx, dPdy gpu.Vec3) T

func (Sampler3D[T]) TextureGradOffset

func (s Sampler3D[T]) TextureGradOffset(uv gpu.Vec3, dPdx, dPdy gpu.Vec3, offset gpu.Vec3i) T

func (Sampler3D[T]) TextureLOD

func (s Sampler3D[T]) TextureLOD(uv gpu.Vec3, lod gpu.Float) T

func (Sampler3D[T]) TextureOffset

func (s Sampler3D[T]) TextureOffset(uv gpu.Vec3, offset gpu.Vec3i) T

func (Sampler3D[T]) TextureOffsetBias

func (s Sampler3D[T]) TextureOffsetBias(uv gpu.Vec3, offset gpu.Vec3i, bias gpu.Float) T

func (Sampler3D[T]) TextureOffsetLOD

func (s Sampler3D[T]) TextureOffsetLOD(uv gpu.Vec3, offset gpu.Vec3i, lod gpu.Float) T

func (Sampler3D[T]) TextureProj

func (s Sampler3D[T]) TextureProj(uv gpu.Vec4) T

func (Sampler3D[T]) TextureProjBias

func (s Sampler3D[T]) TextureProjBias(uv gpu.Vec4, bias gpu.Float) T

func (Sampler3D[T]) TextureProjGrad

func (s Sampler3D[T]) TextureProjGrad(uv gpu.Vec4, dPdx, dPdy gpu.Vec3) T

func (Sampler3D[T]) TextureProjGradOffset

func (s Sampler3D[T]) TextureProjGradOffset(uv gpu.Vec4, dPdx, dPdy gpu.Vec3, offset gpu.Vec3i) T

func (Sampler3D[T]) TextureProjLOD

func (s Sampler3D[T]) TextureProjLOD(uv gpu.Vec4, lod gpu.Float) T

func (Sampler3D[T]) TextureProjLODOffset

func (s Sampler3D[T]) TextureProjLODOffset(uv gpu.Vec4, lod gpu.Float, offset gpu.Vec3i) T

func (Sampler3D[T]) TextureProjOffset

func (s Sampler3D[T]) TextureProjOffset(uv gpu.Vec4, offset gpu.Vec3i) T

func (Sampler3D[T]) TextureProjOffsetBias

func (s Sampler3D[T]) TextureProjOffsetBias(uv gpu.Vec4, offset gpu.Vec3i, bias gpu.Float) T

func (Sampler3D[T]) TextureSize

func (s Sampler3D[T]) TextureSize(lod gpu.Int) gpu.Vec3i

Jump to

Keyboard shortcuts

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