diff options
| author | Tim Foley <tfoleyNV@users.noreply.github.com> | 2017-07-18 15:22:20 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-07-18 15:22:20 -0700 |
| commit | a01014567cccc2582547ed10870352629ffd6484 (patch) | |
| tree | 30e1bf209e232d7f8d6723959db68b2c0cb015dd /source/slang/slang-stdlib.cpp | |
| parent | 3d313d963f29f6ca6a8d12bd5c403a70c49aca2a (diff) | |
| parent | 2476c035ec15d3ee22239ebd1fe10e6e8c1e01e3 (diff) | |
Merge pull request #120 from tfoleyNV/compile-time-loop
Add a compile-time loop construct to Slang
Diffstat (limited to 'source/slang/slang-stdlib.cpp')
| -rw-r--r-- | source/slang/slang-stdlib.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/slang-stdlib.cpp b/source/slang/slang-stdlib.cpp index 3062112c6..b26fc8a8e 100644 --- a/source/slang/slang-stdlib.cpp +++ b/source/slang/slang-stdlib.cpp @@ -1603,7 +1603,7 @@ namespace Slang if( baseShape != TextureType::ShapeCube ) { - sb << "__intrinsic(glsl, \"textureOffset($p, $1)\")\n"; + sb << "__intrinsic(glsl, \"textureOffset($p, $1, $2)\")\n"; sb << "__intrinsic\n"; sb << "T Sample(SamplerState s, "; sb << "float" << kBaseTextureTypes[tt].coordCount + isArray << " location, "; |
