From 7ea9ff03f4fc766f21d5896aea220d17f236dd70 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Tue, 9 Oct 2018 11:51:41 -0400 Subject: 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. --- source/core/list.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/core/list.h') 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(buffer[i]); FreeBuffer(); buffer = newBuffer; -- cgit v1.2.3