From 222771cb6f8f6903e917d88cf47eff1452074a60 Mon Sep 17 00:00:00 2001
From: Alexander Harvey Nitz <ahnitz@syr.edu>
Date: Fri, 19 Jul 2013 21:05:28 -0400
Subject: [PATCH] add fp texref hack for complex types

---
 dtypes.py |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/dtypes.py b/dtypes.py
index befe933..4f6e728 100644
--- a/dtypes.py
+++ b/dtypes.py
@@ -171,6 +171,10 @@ def dtype_to_ctype(dtype, with_fp_tex_hack=False):
             return "fp_tex_float"
         elif dtype == np.float64:
             return "fp_tex_double"
+        elif dtype == np.complex64:
+            return "fp_tex_cfloat"
+        elif dtype == np.complex128:
+            return "fp_tex_cdouble"
 
     try:
         return DTYPE_TO_NAME[dtype]
-- 
1.7.10.rc4.209.g0677f

