diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2021-03-02 17:03:16 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-02 14:03:16 -0800 |
| commit | c2653ba1ec8f06453f0653d141bcd348eff5d4a5 (patch) | |
| tree | 85bfafed35844d5d2fe90a93f82eb0254045d416 /source/core/slang-string.h | |
| parent | b81e8d4c8b718e97c6d6fc65b09850f19fb80502 (diff) | |
Fix issue with long identifier names in GLSL output (#1731)
* #include an absolute path didn't work - because paths were taken to always be relative.
* First pass at handling 'names' that are too long in GLSL output.
* Test to check functionality with very long func name.
* Add access a long names buffer.
* Fix typo in assert.
Fix issue with coercion error for 1.0f / 0x7fffffff
Co-authored-by: Tim Foley <tfoleyNV@users.noreply.github.com>
Diffstat (limited to 'source/core/slang-string.h')
| -rw-r--r-- | source/core/slang-string.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/core/slang-string.h b/source/core/slang-string.h index 2312c0439..f42e78ac4 100644 --- a/source/core/slang-string.h +++ b/source/core/slang-string.h @@ -559,7 +559,9 @@ namespace Slang { return m_buffer ? m_buffer->getLength() : 0; } - + /// Make the length of the string the amount specified. Must be less than current size + void reduceLength(Index length); + friend String operator+(const char*op1, const String & op2); friend String operator+(const String & op1, const char * op2); friend String operator+(const String & op1, const String & op2); |
