Skip to content
Snippets Groups Projects

Add __str__ representation for TextureDeclaration

Merged Stephan Seitz requested to merge seitz/pystencils:TextureDeclaration.__str__ into master
1 file
+ 4
0
Compare changes
  • Side-by-side
  • Inline
@@ -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):
"""
Loading