TAPs 0.7.7.3
TAPsCUDA_GlobalTextureRef.cu File Reference

The collection of CUDA's Texture References which have to be global. More...

Include dependency graph for TAPsCUDA_GlobalTextureRef.cu:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define TAPs_CUDA_GLOBAL_TEXTURE_REF_HPP
#define TAPs_CUDA_DATA_VERTEX_LIST_TEXTURE_FROM_LIN_MEM

Variables

texture< float4,
1, cudaReadModeElementType > 
CudaTexVertexList
 Texture References.
texture< float4,
1, cudaReadModeElementType > 
CudaTexPrevVertexList
 texture for list of previous vertices
texture< float4,
1, cudaReadModeElementType > 
CudaTexHomeVertexList
 texture for list of home vertices
texture< int1,
1, cudaReadModeElementType > 
CudaTexVertexConnectionList
 texture for list of vertex connections (x:=vertex#, y:=rest length, z:=stiffness, w:=damper)
texture< uint1,
1, cudaReadModeElementType > 
CudaTexSimFlagsList
 texture for list of simulation flags
texture< float4,
1, cudaReadModeElementType > 
CudaTexPosConstraintList
 texture for list of position constraints (xyz) plus force ratio (w)
texture< float4,
1, cudaReadModeElementType > 
CudaTexOrientationList
 texture for list of orientations
texture< float4,
1, cudaReadModeElementType > 
CudaTexPrevOrientationList
 texture for list of previous orientations
texture< float4,
1, cudaReadModeElementType > 
CudaTexForceList_1
 texture for a list of forces
texture< float4,
1, cudaReadModeElementType > 
CudaTexForceList_2
 texture for a list of forces

Detailed Description

The collection of CUDA's Texture References which have to be global.

"CUDA/TAPsCUDA_GlobalTextureRef.cu" CUDA texture dimension supports only 1-, 2-, and 4-component vector types, but not 3.

Use texture from CUDA Linear Memory by calling cudaBindTexture(...). CUDA Linear Memory is allocated by calling cudaMalloc(...). To enter or change the data in the Linear Memory, must use cudaMemcpy(...). and free by calling cudaFree(...).

Use texture from CUDA Arrays by calling cudaBindTextureToArray(...). CUDA Array is allocated by calling cudaMallocArray(...). To enter or change the data in the Array, must use cudaMemcpyToArray(...). and free by calling cudaFreeArray(...).

The texture reference has to be global, otherwise NVCC will generate error!

Definition in file TAPsCUDA_GlobalTextureRef.cu.


Define Documentation

#define TAPs_CUDA_DATA_VERTEX_LIST_TEXTURE_FROM_LIN_MEM

Definition at line 57 of file TAPsCUDA_GlobalTextureRef.cu.

#define TAPs_CUDA_GLOBAL_TEXTURE_REF_HPP

Definition at line 27 of file TAPsCUDA_GlobalTextureRef.cu.


Variable Documentation

texture<int1, 1, cudaReadModeElementType> CudaTexVertexConnectionList
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines