flowchart LR app["CreateSampler2
UINT_BORDER_COLOR c"] --> rec["sampler record
[sampler][white sampler][c as bits]"] subgraph ps["shader (SPIRV-Cross patch 0021)"] direction TB a["a = sample with
transparent-black border"] --> sel["per channel:
a ≠ b ? c : a"] b["b = sample with
opaque-white border"] --> sel end rec --> a rec --> b sel --> out["uint4 result
texel, or c outside"] f["float path:
a + (b − a)·c"] -. "integer results
are point sampled" .-> sel