struct TexelAddress {
coordinate: Handle<Expression>,
array_index: Option<Handle<Expression>>,
sample: Option<Handle<Expression>>,
level: Option<LevelOfDetail>,
}
Expand description
Values needed to select a particular texel for ImageLoad
and ImageStore
.
When this is used in code paths unconcerned with the Restrict
bounds check
policy, the LevelOfDetail
enum introduces an unneeded match, since level
will always be either None
or Some(Direct(_))
. But this turns out not to
be too awkward. If that changes, we can revisit.
Fields§
§coordinate: Handle<Expression>
§array_index: Option<Handle<Expression>>
§sample: Option<Handle<Expression>>
§level: Option<LevelOfDetail>
Auto Trait Implementations§
impl Freeze for TexelAddress
impl RefUnwindSafe for TexelAddress
impl Send for TexelAddress
impl Sync for TexelAddress
impl Unpin for TexelAddress
impl UnwindSafe for TexelAddress
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more