Struct rcudnn_sys::cudaTextureDesc[][src]

#[repr(C)]
pub struct cudaTextureDesc { 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, }
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.

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.