#[repr(C)]pub struct cudaTextureDesc {Show 13 fields
pub addressMode: [cudaTextureAddressMode; 3],
pub filterMode: cudaTextureFilterMode,
pub readMode: cudaTextureReadMode,
pub sRGB: c_int,
pub borderColor: [f32; 4],
pub normalizedCoords: c_int,
pub maxAnisotropy: c_uint,
pub mipmapFilterMode: cudaTextureFilterMode,
pub mipmapLevelBias: f32,
pub minMipmapLevelClamp: f32,
pub maxMipmapLevelClamp: f32,
pub disableTrilinearOptimization: c_int,
pub seamlessCubemap: c_int,
}Expand description
CUDA texture descriptor
Fields§
§addressMode: [cudaTextureAddressMode; 3]Texture address mode for up to 3 dimensions
filterMode: cudaTextureFilterModeTexture filter mode
readMode: cudaTextureReadModeTexture read mode
sRGB: c_intPerform sRGB->linear conversion during texture read
borderColor: [f32; 4]Texture Border Color
normalizedCoords: c_intIndicates whether texture reads are normalized or not
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.
seamlessCubemap: c_intEnable seamless cube map filtering.
Trait Implementations§
Source§impl Clone for cudaTextureDesc
impl Clone for cudaTextureDesc
Source§fn clone(&self) -> cudaTextureDesc
fn clone(&self) -> cudaTextureDesc
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 cudaTextureDesc
impl Debug for cudaTextureDesc
impl Copy for cudaTextureDesc
Auto Trait Implementations§
impl Freeze for cudaTextureDesc
impl RefUnwindSafe for cudaTextureDesc
impl Send for cudaTextureDesc
impl Sync for cudaTextureDesc
impl Unpin for cudaTextureDesc
impl UnwindSafe for cudaTextureDesc
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