diff --git a/Test/baseResults/web.array.frag.out b/Test/baseResults/web.array.frag.out index df70be12..61c9db99 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 cd9805bd..46c147fa 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 2862dc15..ecf03047 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 9ea66726..597e7310 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 79a30729..d0a911e2 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 ebfa5be6..57199898 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 eb016246..d7e4d6e9 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 e31ddca3..5a99298e 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 6fbebb4d..baad5644 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 3ed402d4..e852d152 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;