#[repr(C)]pub struct textureReference {
pub normalized: c_int,
pub filterMode: cudaTextureFilterMode,
pub addressMode: [cudaTextureAddressMode; 3],
pub channelDesc: cudaChannelFormatDesc,
pub sRGB: c_int,
pub maxAnisotropy: c_uint,
pub mipmapFilterMode: cudaTextureFilterMode,
pub mipmapLevelBias: f32,
pub minMipmapLevelClamp: f32,
pub maxMipmapLevelClamp: f32,
pub disableTrilinearOptimization: c_int,
pub __cudaReserved: [c_int; 14],
}Expand description
CUDA texture reference
Fields§
§normalized: c_intIndicates whether texture reads are normalized or not
filterMode: cudaTextureFilterModeTexture filter mode
addressMode: [cudaTextureAddressMode; 3]Texture address mode for up to 3 dimensions
channelDesc: cudaChannelFormatDescChannel descriptor for the texture reference
sRGB: c_intPerform sRGB->linear conversion during texture read
maxAnisotropy: c_uintLimit to the anisotropy ratio
mipmapFilterMode: cudaTextureFilterModeMipmap filter mode
mipmapLevelBias: f32Offset applied to the supplied mipmap level
minMipmapLevelClamp: f32Lower end of the mipmap level range to clamp access to
maxMipmapLevelClamp: f32Upper end of the mipmap level range to clamp access to
disableTrilinearOptimization: c_intDisable any trilinear filtering optimizations.
__cudaReserved: [c_int; 14]Trait Implementations§
Source§impl Clone for textureReference
impl Clone for textureReference
Source§fn clone(&self) -> textureReference
fn clone(&self) -> textureReference
Returns a duplicate 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 textureReference
impl Debug for textureReference
impl Copy for textureReference
Auto Trait Implementations§
impl Freeze for textureReference
impl RefUnwindSafe for textureReference
impl Send for textureReference
impl Sync for textureReference
impl Unpin for textureReference
impl UnwindSafe for textureReference
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