pub(super) enum ImageQuery {
Size,
SizeLevel,
NumLevels,
NumLayers,
NumSamples,
}
Expand description
HLSL backend requires its own ImageQuery
enum.
It is used inside WrappedImageQuery
and should be unique per ImageQuery function.
IR version can’t be unique per function, because it’s store mipmap level as an expression.
For example:
let dim_cube_array_lod = textureDimensions(image_cube_array, 1);
let dim_cube_array_lod2 = textureDimensions(image_cube_array, 1);
ImageQuery {
image: [1],
query: Size {
level: Some(
[1],
),
},
},
ImageQuery {
image: [1],
query: Size {
level: Some(
[2],
),
},
},
HLSL should generate only 1 function for this case.
Variants§
Trait Implementations§
source§impl Clone for ImageQuery
impl Clone for ImageQuery
source§fn clone(&self) -> ImageQuery
fn clone(&self) -> ImageQuery
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ImageQuery
impl Debug for ImageQuery
source§impl From<ImageQuery> for ImageQuery
impl From<ImageQuery> for ImageQuery
source§fn from(q: ImageQuery) -> Self
fn from(q: ImageQuery) -> Self
Converts to this type from the input type.
source§impl Hash for ImageQuery
impl Hash for ImageQuery
source§impl Ord for ImageQuery
impl Ord for ImageQuery
source§fn cmp(&self, other: &ImageQuery) -> Ordering
fn cmp(&self, other: &ImageQuery) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ImageQuery
impl PartialEq for ImageQuery
source§impl PartialOrd for ImageQuery
impl PartialOrd for ImageQuery
impl Copy for ImageQuery
impl Eq for ImageQuery
impl StructuralPartialEq for ImageQuery
Auto Trait Implementations§
impl Freeze for ImageQuery
impl RefUnwindSafe for ImageQuery
impl Send for ImageQuery
impl Sync for ImageQuery
impl Unpin for ImageQuery
impl UnwindSafe for ImageQuery
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.