diff --git a/Test/baseResults/web.array.frag.out b/Test/baseResults/web.array.frag.out index df70be126..61c9db998 100644 --- a/Test/baseResults/web.array.frag.out +++ b/Test/baseResults/web.array.frag.out @@ -1,6 +1,6 @@ ; SPIR-V ; Version: 1.0 -; Generator: Khronos Glslang Reference Front End; 7 +; Generator: Khronos Glslang Reference Front End; 8 ; Bound: 74 ; Schema: 0 OpCapability Shader diff --git a/Test/baseResults/web.basic.vert.out b/Test/baseResults/web.basic.vert.out index cd9805bd1..46c147fa1 100644 --- a/Test/baseResults/web.basic.vert.out +++ b/Test/baseResults/web.basic.vert.out @@ -1,6 +1,6 @@ ; SPIR-V ; Version: 1.0 -; Generator: Khronos Glslang Reference Front End; 7 +; Generator: Khronos Glslang Reference Front End; 8 ; Bound: 38 ; Schema: 0 OpCapability Shader diff --git a/Test/baseResults/web.builtins.frag.out b/Test/baseResults/web.builtins.frag.out index 2862dc152..ecf030478 100644 --- a/Test/baseResults/web.builtins.frag.out +++ b/Test/baseResults/web.builtins.frag.out @@ -1,6 +1,6 @@ ; SPIR-V ; Version: 1.0 -; Generator: Khronos Glslang Reference Front End; 7 +; Generator: Khronos Glslang Reference Front End; 8 ; Bound: 69 ; Schema: 0 OpCapability Shader diff --git a/Test/baseResults/web.builtins.vert.out b/Test/baseResults/web.builtins.vert.out index 9ea667267..597e7310a 100644 --- a/Test/baseResults/web.builtins.vert.out +++ b/Test/baseResults/web.builtins.vert.out @@ -1,6 +1,6 @@ ; SPIR-V ; Version: 1.0 -; Generator: Khronos Glslang Reference Front End; 7 +; Generator: Khronos Glslang Reference Front End; 8 ; Bound: 33 ; Schema: 0 OpCapability Shader diff --git a/Test/baseResults/web.comp.out b/Test/baseResults/web.comp.out index 79a307296..d0a911e21 100644 --- a/Test/baseResults/web.comp.out +++ b/Test/baseResults/web.comp.out @@ -1,6 +1,6 @@ ; SPIR-V ; Version: 1.0 -; Generator: Khronos Glslang Reference Front End; 7 +; Generator: Khronos Glslang Reference Front End; 8 ; Bound: 108 ; Schema: 0 OpCapability Shader diff --git a/Test/baseResults/web.controlFlow.frag.out b/Test/baseResults/web.controlFlow.frag.out index ebfa5be69..571998983 100644 --- a/Test/baseResults/web.controlFlow.frag.out +++ b/Test/baseResults/web.controlFlow.frag.out @@ -1,6 +1,6 @@ ; SPIR-V ; Version: 1.0 -; Generator: Khronos Glslang Reference Front End; 7 +; Generator: Khronos Glslang Reference Front End; 8 ; Bound: 193 ; Schema: 0 OpCapability Shader diff --git a/Test/baseResults/web.operations.frag.out b/Test/baseResults/web.operations.frag.out index eb0162469..d7e4d6e91 100644 --- a/Test/baseResults/web.operations.frag.out +++ b/Test/baseResults/web.operations.frag.out @@ -1,6 +1,6 @@ ; SPIR-V ; Version: 1.0 -; Generator: Khronos Glslang Reference Front End; 7 +; Generator: Khronos Glslang Reference Front End; 8 ; Bound: 207 ; Schema: 0 OpCapability Shader diff --git a/Test/baseResults/web.separate.frag.out b/Test/baseResults/web.separate.frag.out index e31ddca37..5a99298e4 100644 --- a/Test/baseResults/web.separate.frag.out +++ b/Test/baseResults/web.separate.frag.out @@ -1,6 +1,6 @@ ; SPIR-V ; Version: 1.0 -; Generator: Khronos Glslang Reference Front End; 7 +; Generator: Khronos Glslang Reference Front End; 8 ; Bound: 99 ; Schema: 0 OpCapability Shader diff --git a/Test/baseResults/web.texture.frag.out b/Test/baseResults/web.texture.frag.out index 6fbebb4d1..baad56448 100644 --- a/Test/baseResults/web.texture.frag.out +++ b/Test/baseResults/web.texture.frag.out @@ -1,6 +1,6 @@ ; SPIR-V ; Version: 1.0 -; Generator: Khronos Glslang Reference Front End; 7 +; Generator: Khronos Glslang Reference Front End; 8 ; Bound: 189 ; Schema: 0 OpCapability Shader diff --git a/glslang/Include/Types.h b/glslang/Include/Types.h index 3ed402d49..e852d1524 100644 --- a/glslang/Include/Types.h +++ b/glslang/Include/Types.h @@ -80,27 +80,13 @@ struct TSampler { // misnomer now; includes images, textures without sampler, bool image : 1; // image, combined should be false bool combined : 1; // true means texture is combined with a sampler, false means texture with no sampler bool sampler : 1; // true means a pure sampler, other fields should be clear() -#ifdef ENABLE_HLSL - unsigned int vectorSize : 3; // vector return type size. - unsigned int getVectorSize() const { return vectorSize; } - void clearReturnStruct() { structReturnIndex = noReturnStruct; } - bool hasReturnStruct() const { return structReturnIndex != noReturnStruct; } - unsigned getStructReturnIndex() const { return structReturnIndex; } - static const unsigned structReturnIndexBits = 4; // number of index bits to use. - static const unsigned structReturnSlots = (1< TGraph; @@ -925,6 +916,11 @@ protected: bool localSizeNotDefault[3]; int localSizeSpecId[3]; #ifndef GLSLANG_WEB +public: + const char* const implicitThisName; + const char* const implicitCounterName; +protected: + EShSource source; // source language, known a bit later bool useVulkanMemoryModel; int invocations; int vertices;