#[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: cudaTextureFilterMode
Texture filter mode
readMode: cudaTextureReadMode
Texture read mode
sRGB: c_int
Perform sRGB->linear conversion during texture read
borderColor: [f32; 4]
Texture Border Color
normalizedCoords: c_int
Indicates whether texture reads are normalized or not
maxAnisotropy: c_uint
Limit to the anisotropy ratio
mipmapFilterMode: cudaTextureFilterMode
Mipmap filter mode
mipmapLevelBias: f32
Offset applied to the supplied mipmap level
minMipmapLevelClamp: f32
Lower end of the mipmap level range to clamp access to
maxMipmapLevelClamp: f32
Upper end of the mipmap level range to clamp access to
disableTrilinearOptimization: c_int
Disable any trilinear filtering optimizations.
seamlessCubemap: c_int
Enable 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