diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2018-10-09 11:51:41 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-10-09 11:51:41 -0400 |
| commit | 7ea9ff03f4fc766f21d5896aea220d17f236dd70 (patch) | |
| tree | 6b705d44424e250a68f435837f545a74c1437883 /source/core/list.h | |
| parent | 4cb2a19ef192424c0a4eb205a773624563222383 (diff) | |
Feature/var byte encoding (#665)
* * Remove the need for IRHighLevelDecoration in Emit
* Use the IRLayoutDecoration for GeometryShaderPrimitiveTypeModifier
* Initial look at at variable byte encoding, and simple unit test.
* Fixing problems with comparison due to naming differences with slang/fxc.
* * More tests and perf improvements for byte encoding.
* Mechanism to detect processor and processor features in main slang header.
* Split out cpu based defines into slang-cpu-defines.h so do not polute slang.h
* Support for variable byte encoding on serialization.
* Removed unused flag.
* Fix warning.
* Fix calcMsByte32 for 0 values without using intrinsic.
* Fix a mistake in calculating maximum instruction size.
Diffstat (limited to 'source/core/list.h')
| -rw-r--r-- | source/core/list.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/core/list.h b/source/core/list.h index cddcbb6c0..11d798dcf 100644 --- a/source/core/list.h +++ b/source/core/list.h @@ -472,7 +472,7 @@ namespace Slang if (bufferSize > _count && _count > 0) { T * newBuffer = Allocate(_count); - for (int i = 0; i < _count; i++) + for (UInt i = 0; i < _count; i++) newBuffer[i] = static_cast<T&&>(buffer[i]); FreeBuffer(); buffer = newBuffer; |
