Struct rcudnn::textureReference[][src]

#[repr(C)]
pub struct textureReference { pub normalized: i32, pub filterMode: cudaTextureFilterMode, pub addressMode: [cudaTextureAddressMode; 3], pub channelDesc: cudaChannelFormatDesc, pub sRGB: i32, pub maxAnisotropy: u32, pub mipmapFilterMode: cudaTextureFilterMode, pub mipmapLevelBias: f32, pub minMipmapLevelClamp: f32, pub maxMipmapLevelClamp: f32, pub disableTrilinearOptimization: i32, pub __cudaReserved: [i32; 14], }
Expand description

CUDA texture reference

Fields

normalized: i32

Indicates whether texture reads are normalized or not

filterMode: cudaTextureFilterMode

Texture filter mode

addressMode: [cudaTextureAddressMode; 3]

Texture address mode for up to 3 dimensions

channelDesc: cudaChannelFormatDesc

Channel descriptor for the texture reference

sRGB: i32

Perform sRGB->linear conversion during texture read

maxAnisotropy: u32

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: i32

Disable any trilinear filtering optimizations.

__cudaReserved: [i32; 14]

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.