diff options
Diffstat (limited to 'examples/gpu-printing/kernels.slang')
| -rw-r--r-- | examples/gpu-printing/kernels.slang | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/gpu-printing/kernels.slang b/examples/gpu-printing/kernels.slang index ec4533958..8693bfed1 100644 --- a/examples/gpu-printing/kernels.slang +++ b/examples/gpu-printing/kernels.slang @@ -29,10 +29,10 @@ void computeMain(uint3 tid : SV_DispatchThreadID) // in terms of their hash code, and the current Slang implementation // of `getStringHash` only applies to string literals. // - println(getStringHash("hello from thread number "), tid.x); + println("hello from thread number ", tid.x); // The second facility supported by `printing.slang` is a C-style // `printf()` function. // - printf(getStringHash("printf from thread 0x%x\n"), tid.x); + printf("printf from thread 0x%x\n", tid.x); } |
