SPIR-V compression: Add stripping and remapping tools for compressibility of generated SPIR-V.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31180 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
John Kessenich
2015-05-13 20:38:44 +00:00
parent 3a44d7fee8
commit 4217d2ea22
6 changed files with 1594 additions and 5 deletions

View File

@@ -871,6 +871,14 @@ EnumParameters KernelProfilingInfoParams[KernelProfilingInfoCeiling];
// Set up all the parameterizing descriptions of the opcodes, operands, etc.
void Parameterize()
{
static bool initialized = false;
// only do this once.
if (initialized)
return;
initialized = true;
// Exceptions to having a result <id> and a resulting type <id>.
// (Everything is initialized to have both).