From 86d4df038ec934e67b5df82ad564d9914d550060 Mon Sep 17 00:00:00 2001
From: Stephan Seitz <stephan.seitz@fau.de>
Date: Tue, 15 Oct 2019 16:04:40 +0200
Subject: [PATCH] Add __str__ representation for TextureDeclaration

---
 pystencils/interpolation_astnodes.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/pystencils/interpolation_astnodes.py b/pystencils/interpolation_astnodes.py
index 51fa20f40..a13f57421 100644
--- a/pystencils/interpolation_astnodes.py
+++ b/pystencils/interpolation_astnodes.py
@@ -395,6 +395,10 @@ class TextureDeclaration(Node):
     def headers(self):
         return ['"pycuda-helpers.hpp"']
 
+    def __str__(self):
+        from pystencils.backends.cuda_backend import CudaBackend
+        return CudaBackend()(self)
+
 
 class TextureObject(TextureDeclaration):
     """
-- 
GitLab