I’ve adapted the particles example in the SDK so it uses SPH, but can’t seem to compile it in emulation mode, because I get loads of complaints about texture binding from the compiler.
Can textures be used in emulation mode? If so, how?
I’ve adapted the particles example in the SDK so it uses SPH, but can’t seem to compile it in emulation mode, because I get loads of complaints about texture binding from the compiler.
Can textures be used in emulation mode? If so, how?
Hmm, that’s probably just a bug in the particles sample, it used to work!
You can certainly use textures in emulation mode, although they are very slow.
the textures are declared in the particles_kernel.cu file, but are wrapped in a #if USE_TEX/endif statement. When I removed that condition the 40 compiler errors I was getting disappeared.