forked from KhronosGroup/SPIRV-Cross
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add new Windows support - Use CMake/CTest instead of Make + shell scripts - Use --parallel in CTest - Fix CTest on Windows - Cleanups in test_shaders.py - Force specific commit for SPIRV-Headers - Fix Inf/NaN odd-ball case by moving to ASM
- Loading branch information
1 parent
bfeb388
commit 6157bf3
Showing
24 changed files
with
244 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,52 @@ | ||
language: cpp | ||
os: | ||
- linux | ||
- osx | ||
osx_image: xcode10 | ||
language: | ||
- cpp | ||
- python | ||
|
||
# Use Ubuntu 14.04 LTS (Trusty) as the Linux testing environment. | ||
sudo: required | ||
dist: trusty | ||
python: 3.7 | ||
|
||
matrix: | ||
include: | ||
- os: linux | ||
dist: trusty | ||
compiler: gcc | ||
env: | ||
- GENERATOR="Unix Makefiles" | ||
- os: linux | ||
dist: trusty | ||
compiler: clang | ||
env: | ||
- GENERATOR="Unix Makefiles" | ||
- os: osx | ||
compiler: clang | ||
osx_image: xcode10 | ||
env: | ||
- GENERATOR="Unix Makefiles" | ||
- os: windows | ||
before_install: | ||
- choco install python3 | ||
- choco install python2 | ||
- export PATH="/c/Python27:/c/Python27/Scripts:$PATH" | ||
- export PATH="/c/Python37:/c/Python37/Scripts:$PATH" | ||
env: | ||
- GENERATOR="Visual Studio 15 2017" | ||
- os: windows | ||
before_install: | ||
- choco install python3 | ||
- choco install python2 | ||
- export PATH="/c/Python27:/c/Python27/Scripts:$PATH" | ||
- export PATH="/c/Python37:/c/Python37/Scripts:$PATH" | ||
env: | ||
- GENERATOR="Visual Studio 15 2017 Win64" | ||
|
||
before_script: | ||
- ./checkout_glslang_spirv_tools.sh | ||
|
||
script: | ||
- ./build_glslang_spirv_tools.sh Debug 2 | ||
- make -j2 | ||
- ./test_shaders.sh | ||
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then PYTHON3=$(which python); fi | ||
- if [[ "$TRAVIS_OS_NAME" != "windows" ]]; then PYTHON3=$(which python3); fi | ||
- ./build_glslang_spirv_tools.sh Release | ||
- mkdir build | ||
- cd build | ||
- cmake .. -DCMAKE_BUILD_TYPE=Debug -G "${GENERATOR}" -DPYTHON_EXECUTABLE:FILEPATH="${PYTHON3}" | ||
- cmake --build . | ||
- PATH="../external/glslang-build/output/bin:../external/spirv-tools-build/output/bin:$PATH" ctest --verbose -C Debug |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
; SPIR-V | ||
; Version: 1.0 | ||
; Generator: Khronos Glslang Reference Front End; 7 | ||
; Bound: 14 | ||
; Schema: 0 | ||
OpCapability Shader | ||
%1 = OpExtInstImport "GLSL.std.450" | ||
OpMemoryModel Logical GLSL450 | ||
OpEntryPoint Fragment %main "main" %FragColor | ||
OpExecutionMode %main OriginUpperLeft | ||
OpSource ESSL 310 | ||
OpName %main "main" | ||
OpName %FragColor "FragColor" | ||
OpDecorate %FragColor Location 0 | ||
%void = OpTypeVoid | ||
%3 = OpTypeFunction %void | ||
%float = OpTypeFloat 32 | ||
%v3float = OpTypeVector %float 3 | ||
%_ptr_Output_v3float = OpTypePointer Output %v3float | ||
%FragColor = OpVariable %_ptr_Output_v3float Output | ||
%float_0x1p_128 = OpConstant %float 0x1p+128 | ||
%float_n0x1p_128 = OpConstant %float -0x1p+128 | ||
%float_0x1_8p_128 = OpConstant %float 0x1.8p+128 | ||
%13 = OpConstantComposite %v3float %float_0x1p_128 %float_n0x1p_128 %float_0x1_8p_128 | ||
%main = OpFunction %void None %3 | ||
%5 = OpLabel | ||
OpStore %FragColor %13 | ||
OpReturn | ||
OpFunctionEnd |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
; SPIR-V | ||
; Version: 1.0 | ||
; Generator: Khronos Glslang Reference Front End; 7 | ||
; Bound: 14 | ||
; Schema: 0 | ||
OpCapability Shader | ||
%1 = OpExtInstImport "GLSL.std.450" | ||
OpMemoryModel Logical GLSL450 | ||
OpEntryPoint Fragment %main "main" %FragColor | ||
OpExecutionMode %main OriginUpperLeft | ||
OpSource ESSL 310 | ||
OpName %main "main" | ||
OpName %FragColor "FragColor" | ||
OpDecorate %FragColor Location 0 | ||
%void = OpTypeVoid | ||
%3 = OpTypeFunction %void | ||
%float = OpTypeFloat 32 | ||
%v3float = OpTypeVector %float 3 | ||
%_ptr_Output_v3float = OpTypePointer Output %v3float | ||
%FragColor = OpVariable %_ptr_Output_v3float Output | ||
%float_0x1p_128 = OpConstant %float 0x1p+128 | ||
%float_n0x1p_128 = OpConstant %float -0x1p+128 | ||
%float_0x1_8p_128 = OpConstant %float 0x1.8p+128 | ||
%13 = OpConstantComposite %v3float %float_0x1p_128 %float_n0x1p_128 %float_0x1_8p_128 | ||
%main = OpFunction %void None %3 | ||
%5 = OpLabel | ||
OpStore %FragColor %13 | ||
OpReturn | ||
OpFunctionEnd |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
; SPIR-V | ||
; Version: 1.0 | ||
; Generator: Khronos Glslang Reference Front End; 7 | ||
; Bound: 22 | ||
; Schema: 0 | ||
OpCapability Shader | ||
OpCapability Float64 | ||
%1 = OpExtInstImport "GLSL.std.450" | ||
OpMemoryModel Logical GLSL450 | ||
OpEntryPoint Fragment %main "main" %FragColor %vTmp | ||
OpExecutionMode %main OriginUpperLeft | ||
OpSource GLSL 450 | ||
OpName %main "main" | ||
OpName %FragColor "FragColor" | ||
OpName %vTmp "vTmp" | ||
OpDecorate %FragColor Location 0 | ||
OpDecorate %vTmp Flat | ||
OpDecorate %vTmp Location 0 | ||
%void = OpTypeVoid | ||
%3 = OpTypeFunction %void | ||
%float = OpTypeFloat 32 | ||
%v3float = OpTypeVector %float 3 | ||
%_ptr_Output_v3float = OpTypePointer Output %v3float | ||
%FragColor = OpVariable %_ptr_Output_v3float Output | ||
%double = OpTypeFloat 64 | ||
%v3double = OpTypeVector %double 3 | ||
%double_0x1p_1024 = OpConstant %double 0x1p+1024 | ||
%double_n0x1p_1024 = OpConstant %double -0x1p+1024 | ||
%double_0x1_8p_1024 = OpConstant %double 0x1.8p+1024 | ||
%15 = OpConstantComposite %v3double %double_0x1p_1024 %double_n0x1p_1024 %double_0x1_8p_1024 | ||
%_ptr_Input_double = OpTypePointer Input %double | ||
%vTmp = OpVariable %_ptr_Input_double Input | ||
%main = OpFunction %void None %3 | ||
%5 = OpLabel | ||
%18 = OpLoad %double %vTmp | ||
%19 = OpCompositeConstruct %v3double %18 %18 %18 | ||
%20 = OpFAdd %v3double %15 %19 | ||
%21 = OpFConvert %v3float %20 | ||
OpStore %FragColor %21 | ||
OpReturn | ||
OpFunctionEnd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
; SPIR-V | ||
; Version: 1.0 | ||
; Generator: Khronos Glslang Reference Front End; 7 | ||
; Bound: 14 | ||
; Schema: 0 | ||
OpCapability Shader | ||
%1 = OpExtInstImport "GLSL.std.450" | ||
OpMemoryModel Logical GLSL450 | ||
OpEntryPoint Fragment %main "main" %FragColor | ||
OpExecutionMode %main OriginUpperLeft | ||
OpSource ESSL 310 | ||
OpName %main "main" | ||
OpName %FragColor "FragColor" | ||
OpDecorate %FragColor Location 0 | ||
%void = OpTypeVoid | ||
%3 = OpTypeFunction %void | ||
%float = OpTypeFloat 32 | ||
%v3float = OpTypeVector %float 3 | ||
%_ptr_Output_v3float = OpTypePointer Output %v3float | ||
%FragColor = OpVariable %_ptr_Output_v3float Output | ||
%float_0x1p_128 = OpConstant %float 0x1p+128 | ||
%float_n0x1p_128 = OpConstant %float -0x1p+128 | ||
%float_0x1_8p_128 = OpConstant %float 0x1.8p+128 | ||
%13 = OpConstantComposite %v3float %float_0x1p_128 %float_n0x1p_128 %float_0x1_8p_128 | ||
%main = OpFunction %void None %3 | ||
%5 = OpLabel | ||
OpStore %FragColor %13 | ||
OpReturn | ||
OpFunctionEnd |
13 changes: 0 additions & 13 deletions
13
shaders/desktop-only/frag/inf-nan-constant-double.desktop.frag
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.