cuda-0.11.0.1: FFI binding to the CUDA interface for programming NVIDIA GPUs
Copyright[2009..2023] Trevor L. McDonell
LicenseBSD
Safe HaskellSafe-Inferred
LanguageHaskell98

Foreign.CUDA.Runtime.Texture

Description

Texture references

Synopsis

Texture Reference Management

data Texture Source #

Constructors

Texture 

Fields

Instances

Instances details
Storable Texture Source # 
Instance details

Defined in Foreign.CUDA.Runtime.Texture

Show Texture Source # 
Instance details

Defined in Foreign.CUDA.Runtime.Texture

Eq Texture Source # 
Instance details

Defined in Foreign.CUDA.Runtime.Texture

Methods

(==) :: Texture -> Texture -> Bool #

(/=) :: Texture -> Texture -> Bool #

data FormatKind Source #

Texture channel format kind

data FormatDesc Source #

A description of how memory read through the texture cache should be interpreted, including the kind of data and the number of bits of each component (x,y,z and w, respectively).

Constructors

FormatDesc 

Fields

bind :: String -> Texture -> DevicePtr a -> Int64 -> IO () Source #

Bind the memory area associated with the device pointer to a texture reference given by the named symbol. Any previously bound references are unbound.

bind2D :: String -> Texture -> DevicePtr a -> (Int, Int) -> Int64 -> IO () Source #

Bind the two-dimensional memory area to the texture reference associated with the given symbol. The size of the area is constrained by (width,height) in texel units, and the row pitch in bytes. Any previously bound references are unbound.