// …
const sampler = device.createSampler({
compare: "less",
});
sampler.label = "my_sampler";
console.log(sampler.label); // "my_sampler"GPUSampler: label property / notebook
GPUSampler: label property
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
// …
const sampler = device.createSampler({
compare: "less",
label: "my_sampler",
});
console.log(sampler.label); // "my_sampler"