- Mar 09, 2017
-
-
John Kessenich authored
Compile fixes for VS2010
-
John Kessenich authored
HLSL: Enable GatherCmpRed. Green/Blue/Alpha cannot be supported.
-
baldurk authored
* Removed range-based for * Added explicit return type to non-trivial lambda * Added explicit scope for tInterstageIoData
-
steve-lunarg authored
This implements GatherCmpRed in terms of OpImageDrefGather. There appears to be no way to implement the Green/Blue/Apha forms: see #673.
-
John Kessenich authored
-
John Kessenich authored
This (and previous commit) is a better foundation to build real methods on.
-
John Kessenich authored
HLSL: Non-functional: Don't process function name/parameters before expected a function declaration.
-
- Mar 08, 2017
-
-
John Kessenich authored
HLSL: use LOD form of ImageQuerySize when needed.
-
John Kessenich authored
This is slightly cleaner today for entry-point wrapping, which sometimes made two subtrees for a function definition instead of just one subtree. It will be critical though for recognizing a struct with multiple member functions.
-
steve-lunarg authored
The non-LOD form of image size query is prohibited in certain cases: see the OpImageQuerySize and OpImageQuerySizeLod sections of the SPIR-V spec for details. Sometimes we were generating the non-LOD form when we should have been using the LOD form. Sometimes the LOD form is required even if the underlying HLSL query did not supply a MIP level itself, in which case level 0 is now queried.
-
- Mar 07, 2017
-
-
John Kessenich authored
-
John Kessenich authored
HLSL: Fix ordering defect if global SB decl after fn param
-
- Mar 06, 2017
-
-
steve-lunarg authored
This change propagates the storage qualifier from the buffer object to its contained array type so that isStructBufferType() realizes it is one. That propagation was happening before only for global variable declarations, so compilation defects would result if the use of a function parameter happened before a global declaration. This fixes that case, whether or not there ever is a global declaration, and regardless of the relative order. This changes the hlsl.structbuffer.fn.frag test to exercise the alternate order. There are no differences to generated SPIR-V for the cases which successfully compiled before.
-
John Kessenich authored
-
- Mar 04, 2017
-
-
John Kessenich authored
-
John Kessenich authored
Rename KHX_multiview/device_group to EXT_multiview/device to match the released specs
-
John Kessenich authored
-
- Mar 03, 2017
-
-
Daniel Koch authored
GL_KHX_multiview and GL_KHX_device_group don't exist, they were released as GL_EXT_multiview and GL_EXT_device_group.
-
John Kessenich authored
More build fixes
-
Daniel Koch authored
Fix another build warning on some platforms Use an explicit cast from size_t to int to avoid warning.
-
- Mar 02, 2017
-
-
John Kessenich authored
-
- Mar 01, 2017
-
-
John Kessenich authored
-
John Kessenich authored
Sanitize ShaderLang.h
-
John Kessenich authored
Fix build warnings on some platforms
-
John Kessenich authored
-
Daniel Koch authored
Use an explicit cast from size_t to int to avoid errors like the following: glslang\glslang\MachineIndependent\preprocessor\Pp.cpp(1053) : error C2220: warning treated as error - no 'object' file generated glslang\glslang\MachineIndependent\preprocessor\Pp.cpp(1053) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data affects Pp.cpp, hlslParseHelper.cpp. Initialize local variable to get rid of warningsa about potentially uninitialized variables: glslang\hlsl\hlslparsehelper.cpp(3667) : error C2220: warning treated as error - no 'object' file generated glslang\hlsl\hlslparsehelper.cpp(3667) : warning C4701: potentially uninitialized local variable 'builtIn' used affects hlslParseHelper.cpp
-
Jean-Sebastien Bevilacqua authored
ShaderLang.h contains declaration for `ShLink` function which is never defined. See this grep output: $grep -Hrn 'ShLink' glslang/Public/ShaderLang.h:206:SH_IMPORT_EXPORT int ShLink( glslang/Public/ShaderLang.h:214:SH_IMPORT_EXPORT int ShLinkExt( glslang/MachineIndependent/ShaderLang.cpp:1268:int ShLinkExt(
-
John Kessenich authored
-
John Kessenich authored
-
- Feb 28, 2017
-
-
John Kessenich authored
HLSL: small fix for index type in f16tof32 opcode
-
steve-lunarg authored
The f16tof32 opcode was indexing a vector with a float 0, rather than an int 0. It may have made no functional difference due to the identical bit pattern, but code looking at the type could be confused.
-
John Kessenich authored
-
John Kessenich authored
HLSL: add structuredbuffer pass by reference in fn params
-
John Kessenich authored
-
John Kessenich authored
HLSL: add f16tof32 and f32tof16 decompositions.
-
- Feb 27, 2017
-
-
steve-lunarg authored
-
John Kessenich authored
-
John Kessenich authored
These correspond to SPV_KHR_device_group and SPV_KHR_multiview. Also, bring tests up to date with Khronos internals, and some misc. related changes.
-
- Feb 26, 2017
-
-
steve-lunarg authored
This PR adds the ability to pass structuredbuffer types by reference as function parameters. It also changes the representation of structuredbuffers from anonymous blocks with named members, to named blocks with pseudonymous members. That should not be an externally visible change.
-
- Feb 25, 2017
-
-
John Kessenich authored
-