pub struct ExternalTextureBindTarget {
pub planes: [BindTarget; 3],
pub params: BindTarget,
}
Expand description
HLSL binding information for a Naga External
image global variable.
See the module documentation’s section on External textures for details.
Fields§
§planes: [BindTarget; 3]
HLSL binding information for the individual plane textures.
Each of these should refer to an HLSL Texture2D<float4>
holding one
plane of data for the external texture. The exact meaning of each plane
varies at runtime depending on where the external texture’s data
originated.
params: BindTarget
HLSL binding information for a buffer holding the sampling parameters.
This should refer to a cbuffer of type NagaExternalTextureParams
, that
the code Naga generates for textureSampleBaseClampToEdge
consults to
decide how to combine the data in planes
to get the result required
by the spec.
Trait Implementations§
Source§impl Clone for ExternalTextureBindTarget
impl Clone for ExternalTextureBindTarget
Source§fn clone(&self) -> ExternalTextureBindTarget
fn clone(&self) -> ExternalTextureBindTarget
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 ExternalTextureBindTarget
impl Debug for ExternalTextureBindTarget
Source§impl Default for ExternalTextureBindTarget
impl Default for ExternalTextureBindTarget
Source§fn default() -> ExternalTextureBindTarget
fn default() -> ExternalTextureBindTarget
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ExternalTextureBindTarget
impl<'de> Deserialize<'de> for ExternalTextureBindTarget
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for ExternalTextureBindTarget
impl Hash for ExternalTextureBindTarget
impl Copy for ExternalTextureBindTarget
impl Eq for ExternalTextureBindTarget
impl StructuralPartialEq for ExternalTextureBindTarget
Auto Trait Implementations§
impl Freeze for ExternalTextureBindTarget
impl RefUnwindSafe for ExternalTextureBindTarget
impl Send for ExternalTextureBindTarget
impl Sync for ExternalTextureBindTarget
impl Unpin for ExternalTextureBindTarget
impl UnwindSafe for ExternalTextureBindTarget
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,
§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.