public static String stringFor ( int n ) { switch ( n ) { case cudaGraphicsRegisterFlagsNone : return "cudaGraphicsRegisterFlagsNone" ; case cudaGraphicsRegisterFlagsReadOnly : return "cudaGraphicsRegisterFlagsReadOnly" ; case cudaGraphicsRegisterFlagsWriteDiscard : return "cudaGraphicsRegisterFlagsWriteDiscard" ; case cudaGraphicsRegisterFlagsSurfaceLoadStore : return "cudaGraphicsRegisterFlagsSurfaceLoadStore" ; case cudaGraphicsRegisterFlagsTextureGather : return "cudaGraphicsRegisterFlagsTextureGather" ; } return "INVALID cudaGraphicsRegisterFlags: " + n ; }
Returns the String identifying the given cudaGraphicsRegisterFlags