spirv_std/sampler.rs
1/// An opaque reference to settings that describe how to access, filter, or
2/// sample an image.
3#[spirv(sampler)]
4#[derive(Copy, Clone)]
5// HACK(eddyb) avoids "transparent newtype of `_anti_zst_padding`" misinterpretation.
6#[repr(C)]
7pub struct Sampler {
8 // HACK(eddyb) avoids the layout becoming ZST (and being elided in one way
9 // or another, before `#[spirv(sampler)]` can special-case it).
10 _anti_zst_padding: core::mem::MaybeUninit<u32>,
11}