Stdlib index
- Captured-borrow migration worklist (3.3.3)
- Owned-bind migration worklist (8.2.7)
- Return-side title audit — the ride-through enumeration
- stdlib ownership audit
- stdlib ownership dispositions (plan 1.3.1 / 4.3.1)
aot
codec
codec / csv
codec / json
collection
- ArrayList
- BPlusTree
- Cache
- Collectors
- HashMap
- HashSet
- Heap
- ImmutableList
- ImmutableMap
- ImmutableSet
- LinkedList
- RedBlackTree
- Sort
collection / ltm
concurrent
error
- Exception
- NoOptionalValueException
- NotProvidedException
- RecoverableException
- ScopedBuildFailedException
- ScopeNotActiveException
- Throwable
- UnrecoverableException
gfx
hash
ifx
io
io / file
io / net
io / net / dns
io / net / uri
lang
lang / stream
math
math / fft
math / linalg
math / npio
math / poly
math / random
math / stats
nucleo
- Columns — the Arrow-laid-out substrate
- Fused tensor expressions — Fuse
- Table — the lazy, typed dataframe
- Tape — define-by-run autograd
- Transform intrinsics — Grad, Vmap, Jit
process
reflect
search / distance
search / fuzzy
search / ngram
session
time
- Clock
- DateTimeFormatter
- Duration
- Instant
- LocalDate
- LocalDateTime
- LocalTime
- Period
- ZonedDateTime
- ZoneId
- ZoneOffset
wire
xpu
xpu / mesh
Sampler
cajeta.gfx.Sampler — filtering + addressing configuration for
Texture2D.sample. A small host-side value carrying the mode
bits; the runtime builds the backend sampler object (Vulkan VkSampler,
CUDA/HIP texture-object sampler state, or CPU emulation) from these at launch.
A Sampler is admissible as a kernel argument by name. v1 limits: two filter
modes and two address modes, isotropic — no mip bias, anisotropy, border
color, or compare.
Sampler lin = stack Sampler(1, 0); // linear filter, clamp-to-edge
Sampler wrap = heap Sampler(0, 1); // nearest filter, repeat
Methods
| Signature | |
|---|---|
Sampler(int32 filterMode, int32 addressMode) ⚑ | Build a sampler from its filter mode (0 = nearest, 1 = linear) and address mode (0 = clamp-to-edge, 1 = repeat) |
⚑ = @EntryPoint
See also
- Tour: XpuTour
- Texture2D — the texture this sampler filters
- Source:
runtime/src/cajeta/gfx/Sampler.cajeta