diff --git a/3rdparty/spirv-cross/.clang-format b/3rdparty/spirv-cross/.clang-format
deleted file mode 100755
index 443f90b77..000000000
--- a/3rdparty/spirv-cross/.clang-format
+++ /dev/null
@@ -1,167 +0,0 @@
-# The style used for all options not specifically set in the configuration.
-BasedOnStyle: LLVM
-
-# The extra indent or outdent of access modifiers, e.g. public:.
-AccessModifierOffset: -4
-
-# If true, aligns escaped newlines as far left as possible. Otherwise puts them into the right-most column.
-AlignEscapedNewlinesLeft: true
-
-# If true, aligns trailing comments.
-AlignTrailingComments: false
-
-# Allow putting all parameters of a function declaration onto the next line even if BinPackParameters is false.
-AllowAllParametersOfDeclarationOnNextLine: false
-
-# Allows contracting simple braced statements to a single line.
-AllowShortBlocksOnASingleLine: false
-
-# If true, short case labels will be contracted to a single line.
-AllowShortCaseLabelsOnASingleLine: false
-
-# Dependent on the value, int f() { return 0; } can be put on a single line. Possible values: None, Inline, All.
-AllowShortFunctionsOnASingleLine: None
-
-# If true, if (a) return; can be put on a single line.
-AllowShortIfStatementsOnASingleLine: false
-
-# If true, while (true) continue; can be put on a single line.
-AllowShortLoopsOnASingleLine: false
-
-# If true, always break after function definition return types.
-AlwaysBreakAfterDefinitionReturnType: false
-
-# If true, always break before multiline string literals.
-AlwaysBreakBeforeMultilineStrings: false
-
-# If true, always break after the template<...> of a template declaration.
-AlwaysBreakTemplateDeclarations: true
-
-# If false, a function call's arguments will either be all on the same line or will have one line each.
-BinPackArguments: true
-
-# If false, a function declaration's or function definition's parameters will either all be on the same line
-# or will have one line each.
-BinPackParameters: true
-
-# The way to wrap binary operators. Possible values: None, NonAssignment, All.
-BreakBeforeBinaryOperators: None
-
-# The brace breaking style to use. Possible values: Attach, Linux, Stroustrup, Allman, GNU.
-BreakBeforeBraces: Allman
-
-# If true, ternary operators will be placed after line breaks.
-BreakBeforeTernaryOperators: false
-
-# Always break constructor initializers before commas and align the commas with the colon.
-BreakConstructorInitializersBeforeComma: true
-
-# The column limit. A column limit of 0 means that there is no column limit.
-ColumnLimit: 120
-
-# A regular expression that describes comments with special meaning, which should not be split into lines or otherwise changed.
-CommentPragmas: '^ *'
-
-# If the constructor initializers don't fit on a line, put each initializer on its own line.
-ConstructorInitializerAllOnOneLineOrOnePerLine: false
-
-# The number of characters to use for indentation of constructor initializer lists.
-ConstructorInitializerIndentWidth: 4
-
-# Indent width for line continuations.
-ContinuationIndentWidth: 4
-
-# If true, format braced lists as best suited for C++11 braced lists.
-Cpp11BracedListStyle: false
-
-# Disables formatting at all.
-DisableFormat: false
-
-# A vector of macros that should be interpreted as foreach loops instead of as function calls.
-#ForEachMacros: ''
-
-# Indent case labels one level from the switch statement.
-# When false, use the same indentation level as for the switch statement.
-# Switch statement body is always indented one level more than case labels.
-IndentCaseLabels: false
-
-# The number of columns to use for indentation.
-IndentWidth: 4
-
-# Indent if a function definition or declaration is wrapped after the type.
-IndentWrappedFunctionNames: false
-
-# If true, empty lines at the start of blocks are kept.
-KeepEmptyLinesAtTheStartOfBlocks: true
-
-# Language, this format style is targeted at. Possible values: None, Cpp, Java, JavaScript, Proto.
-Language: Cpp
-
-# The maximum number of consecutive empty lines to keep.
-MaxEmptyLinesToKeep: 1
-
-# The indentation used for namespaces. Possible values: None, Inner, All.
-NamespaceIndentation: None
-
-# The penalty for breaking a function call after "call(".
-PenaltyBreakBeforeFirstCallParameter: 19
-
-# The penalty for each line break introduced inside a comment.
-PenaltyBreakComment: 300
-
-# The penalty for breaking before the first <<.
-PenaltyBreakFirstLessLess: 120
-
-# The penalty for each line break introduced inside a string literal.
-PenaltyBreakString: 1000
-
-# The penalty for each character outside of the column limit.
-PenaltyExcessCharacter: 1000000
-
-# Penalty for putting the return type of a function onto its own line.
-PenaltyReturnTypeOnItsOwnLine: 1000000000
-
-# Pointer and reference alignment style. Possible values: Left, Right, Middle.
-PointerAlignment: Right
-
-# If true, a space may be inserted after C style casts.
-SpaceAfterCStyleCast: false
-
-# If false, spaces will be removed before assignment operators.
-SpaceBeforeAssignmentOperators: true
-
-# Defines in which cases to put a space before opening parentheses. Possible values: Never, ControlStatements, Always.
-SpaceBeforeParens: ControlStatements
-
-# If true, spaces may be inserted into '()'.
-SpaceInEmptyParentheses: false
-
-# The number of spaces before trailing line comments (// - comments).
-SpacesBeforeTrailingComments: 1
-
-# If true, spaces will be inserted after '<' and before '>' in template argument lists.
-SpacesInAngles: false
-
-# If true, spaces may be inserted into C style casts.
-SpacesInCStyleCastParentheses: false
-
-# If true, spaces are inserted inside container literals (e.g. ObjC and Javascript array and dict literals).
-SpacesInContainerLiterals: false
-
-# If true, spaces will be inserted after '(' and before ')'.
-SpacesInParentheses: false
-
-# If true, spaces will be inserted after '[' and befor']'.
-SpacesInSquareBrackets: false
-
-# Format compatible with this standard, e.g. use A > instead of A> for LS_Cpp03. Possible values: Cpp03, Cpp11, Auto.
-Standard: Cpp11
-
-# The number of columns used for tab stops.
-TabWidth: 4
-
-# The way to use tab characters in the resulting file. Possible values: Never, ForIndentation, Always.
-UseTab: ForIndentation
-
-# Do not reflow comments
-ReflowComments: false
diff --git a/3rdparty/spirv-cross/.travis.yml b/3rdparty/spirv-cross/.travis.yml
deleted file mode 100644
index 575262531..000000000
--- a/3rdparty/spirv-cross/.travis.yml
+++ /dev/null
@@ -1,72 +0,0 @@
-language:
- - cpp
- - python
-
-python: 3.7
-
-matrix:
- include:
- - os: linux
- dist: trusty
- compiler: gcc
- env:
- - GENERATOR="Unix Makefiles"
- - ARTIFACT=gcc-trusty-64bit
- - os: linux
- dist: trusty
- compiler: clang
- env:
- - GENERATOR="Unix Makefiles"
- - ARTIFACT=clang-trusty-64bit
- - os: osx
- compiler: clang
- osx_image: xcode10
- env:
- - GENERATOR="Unix Makefiles"
- - ARTIFACT=clang-macos-64bit
- - os: windows
- before_install:
- - choco install python3
- - export PATH="/c/Python38:/c/Python38/Scripts:$PATH"
- env:
- - GENERATOR="Visual Studio 15 2017"
- - ARTIFACT=vs2017-32bit
- - os: windows
- before_install:
- - choco install python3
- - export PATH="/c/Python38:/c/Python38/Scripts:$PATH"
- env:
- - GENERATOR="Visual Studio 15 2017 Win64"
- - ARTIFACT=vs2017-64bit
-
-before_script:
- - "./checkout_glslang_spirv_tools.sh"
-
-script:
- - 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 .. -DSPIRV_CROSS_WERROR=ON -DSPIRV_CROSS_MISC_WARNINGS=ON -DSPIRV_CROSS_SHARED=ON -DCMAKE_INSTALL_PREFIX=output -DCMAKE_BUILD_TYPE=Release -G "${GENERATOR}" -DPYTHON_EXECUTABLE:FILEPATH="${PYTHON3}" -DSPIRV_CROSS_ENABLE_TESTS=ON
- - cmake --build . --config Release
- - cmake --build . --config Release --target install
- - ctest --verbose -C Release
- - cd ..
-
-before_deploy:
- - REV=${ARTIFACT}-$(git rev-parse --short=10 HEAD)
- - cd build/output
- - tar cf spirv-cross-${REV}.tar *
- - gzip spirv-cross-${REV}.tar
- - cd ../..
- - export FILE_TO_UPLOAD=build/output/spirv-cross-${REV}.tar.gz
-
-deploy:
- provider: releases
- api_key:
- secure: c7YEOyzhE19TFo76UnbLWk/kikRQxsHsOxzkOqN6Q2aL8joNRw5kmcG84rGd+Rf6isX62cykCzA6qHkyJCv9QTIzcyXnLju17rLvgib7cXDcseaq8x4mFvet2yUxCglthDpFY2M2LB0Aqws71lPeYIrKXa6hCFEh8jO3AWxnaor7O3RYfNZylM9d33HgH6KLT3sDx/cukwBstmKeg7EG9OUnrSvairkPW0W2+jlq3SXPlq/WeVhf8hQs3Yg0BluExGbmLOwe9EaeUpeGuJMyHRxXypnToQv1/KwoScKpap5tYxdNWiwRGZ4lYcmKrjAYVvilTioh654oX5LQpn34mE/oe8Ko9AaATkSaoiisRFp6meWtnB39oFBoL5Yn15DqLQpRXPr1AJsnBXSGAac3aDBO1j4MIqTHmYlYlfRw3n2ZsBaFaTZnv++438SNQ54nkivyoDTIWjoOmYa9+K4mQc3415RDdQmjZTJM+lu+GAlMmNBTVbfNvrbU55Usu9Lo6BZJKKdUMvdBB78kJ5FHvcBlL+eMgmk1pABQY0IZROCt7NztHcv1UmAxoWNxveSFs5glydPNNjNS8bogc4dzBGYG0KMmILbBHihVbY2toA1M9CMdDHdp+LucfDMmzECmYSEmlx0h8win+Jjb74/qpOhaXuUZ0NnzVgCOyeUYuMQ=
- file: "${FILE_TO_UPLOAD}"
- skip_cleanup: true
- on:
- tags: true
diff --git a/3rdparty/spirv-cross/CMakeLists.txt b/3rdparty/spirv-cross/CMakeLists.txt
deleted file mode 100644
index 7dbb6b588..000000000
--- a/3rdparty/spirv-cross/CMakeLists.txt
+++ /dev/null
@@ -1,589 +0,0 @@
-# Copyright 2016 Google Inc.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-cmake_minimum_required(VERSION 2.8)
-set(CMAKE_CXX_STANDARD 11)
-project(SPIRV-Cross LANGUAGES CXX C)
-enable_testing()
-
-option(SPIRV_CROSS_EXCEPTIONS_TO_ASSERTIONS "Instead of throwing exceptions assert" OFF)
-option(SPIRV_CROSS_SHARED "Build the C API as a single shared library." OFF)
-option(SPIRV_CROSS_STATIC "Build the C and C++ API as static libraries." ON)
-option(SPIRV_CROSS_CLI "Build the CLI binary. Requires SPIRV_CROSS_STATIC." ON)
-option(SPIRV_CROSS_ENABLE_TESTS "Enable SPIRV-Cross tests." ON)
-
-option(SPIRV_CROSS_ENABLE_GLSL "Enable GLSL support." ON)
-option(SPIRV_CROSS_ENABLE_HLSL "Enable HLSL target support." ON)
-option(SPIRV_CROSS_ENABLE_MSL "Enable MSL target support." ON)
-option(SPIRV_CROSS_ENABLE_CPP "Enable C++ target support." ON)
-option(SPIRV_CROSS_ENABLE_REFLECT "Enable JSON reflection target support." ON)
-option(SPIRV_CROSS_ENABLE_C_API "Enable C API wrapper support in static library." ON)
-option(SPIRV_CROSS_ENABLE_UTIL "Enable util module support." ON)
-
-option(SPIRV_CROSS_SANITIZE_ADDRESS "Sanitize address" OFF)
-option(SPIRV_CROSS_SANITIZE_MEMORY "Sanitize memory" OFF)
-option(SPIRV_CROSS_SANITIZE_THREADS "Sanitize threads" OFF)
-option(SPIRV_CROSS_SANITIZE_UNDEFINED "Sanitize undefined" OFF)
-
-option(SPIRV_CROSS_NAMESPACE_OVERRIDE "" "Override the namespace used in the C++ API.")
-option(SPIRV_CROSS_FORCE_STL_TYPES "Force use of STL types instead of STL replacements in certain places. Might reduce performance." OFF)
-
-option(SPIRV_CROSS_SKIP_INSTALL "Skips installation targets." OFF)
-
-option(SPIRV_CROSS_WERROR "Fail build on warnings." OFF)
-option(SPIRV_CROSS_MISC_WARNINGS "Misc warnings useful for Travis runs." OFF)
-
-option(SPIRV_CROSS_FORCE_PIC "Force position-independent code for all targets." OFF)
-
-if(${CMAKE_GENERATOR} MATCHES "Makefile")
- if(${CMAKE_CURRENT_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_BINARY_DIR})
- message(FATAL_ERROR "Build out of tree to avoid overwriting Makefile")
- endif()
-endif()
-
-set(spirv-compiler-options "")
-set(spirv-compiler-defines "")
-set(spirv-cross-link-flags "")
-
-message(STATUS "SPIRV-Cross: Finding Git version for SPIRV-Cross.")
-set(spirv-cross-build-version "unknown")
-find_package(Git)
-if (GIT_FOUND)
- execute_process(
- COMMAND ${GIT_EXECUTABLE} rev-parse --short HEAD
- WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
- OUTPUT_VARIABLE spirv-cross-build-version
- ERROR_QUIET
- OUTPUT_STRIP_TRAILING_WHITESPACE
- )
- message(STATUS "SPIRV-Cross: Git hash: ${spirv-cross-build-version}")
-else()
- message(STATUS "SPIRV-Cross: Git not found, using unknown build version.")
-endif()
-
-string(TIMESTAMP spirv-cross-timestamp)
-configure_file(${CMAKE_CURRENT_SOURCE_DIR}/cmake/gitversion.in.h ${CMAKE_CURRENT_BINARY_DIR}/gitversion.h @ONLY)
-
-if(SPIRV_CROSS_EXCEPTIONS_TO_ASSERTIONS)
- set(spirv-compiler-defines ${spirv-compiler-defines} SPIRV_CROSS_EXCEPTIONS_TO_ASSERTIONS)
-endif()
-
-if(SPIRV_CROSS_FORCE_STL_TYPES)
- set(spirv-compiler-defines ${spirv-compiler-defines} SPIRV_CROSS_FORCE_STL_TYPES)
-endif()
-
-if (CMAKE_COMPILER_IS_GNUCXX OR (${CMAKE_CXX_COMPILER_ID} MATCHES "Clang"))
- set(spirv-compiler-options ${spirv-compiler-options} -Wall -Wextra -Wshadow)
- if (SPIRV_CROSS_MISC_WARNINGS)
- if (${CMAKE_CXX_COMPILER_ID} MATCHES "Clang")
- set(spirv-compiler-options ${spirv-compiler-options} -Wshorten-64-to-32)
- endif()
- endif()
- if (SPIRV_CROSS_WERROR)
- set(spirv-compiler-options ${spirv-compiler-options} -Werror)
- endif()
-
- if (SPIRV_CROSS_EXCEPTIONS_TO_ASSERTIONS)
- set(spirv-compiler-options ${spirv-compiler-options} -fno-exceptions)
- endif()
-
- if (SPIRV_CROSS_SANITIZE_ADDRESS)
- set(spirv-compiler-options ${spirv-compiler-options} -fsanitize=address)
- set(spirv-cross-link-flags "${spirv-cross-link-flags} -fsanitize=address")
- endif()
-
- if (SPIRV_CROSS_SANITIZE_UNDEFINED)
- set(spirv-compiler-options ${spirv-compiler-options} -fsanitize=undefined)
- set(spirv-cross-link-flags "${spirv-cross-link-flags} -fsanitize=undefined")
- endif()
-
- if (SPIRV_CROSS_SANITIZE_MEMORY)
- set(spirv-compiler-options ${spirv-compiler-options} -fsanitize=memory)
- set(spirv-cross-link-flags "${spirv-cross-link-flags} -fsanitize=memory")
- endif()
-
- if (SPIRV_CROSS_SANITIZE_THREADS)
- set(spirv-compiler-options ${spirv-compiler-options} -fsanitize=thread)
- set(spirv-cross-link-flags "${spirv-cross-link-flags} -fsanitize=thread")
- endif()
-elseif (MSVC)
- set(spirv-compiler-options ${spirv-compiler-options} /wd4267 /wd4996)
-endif()
-
-macro(extract_headers out_abs file_list)
- set(${out_abs}) # absolute paths
- foreach(_a ${file_list})
- # get_filename_component only returns the longest extension, so use a regex
- string(REGEX REPLACE ".*\\.(h|hpp)" "\\1" ext ${_a})
-
- # For shared library, we are only interested in the C header.
- if (SPIRV_CROSS_STATIC)
- if(("${ext}" STREQUAL "h") OR ("${ext}" STREQUAL "hpp"))
- list(APPEND ${out_abs} "${_a}")
- endif()
- else()
- if("${ext}" STREQUAL "h")
- list(APPEND ${out_abs} "${_a}")
- endif()
- endif()
- endforeach()
-endmacro()
-
-macro(spirv_cross_add_library name config_name library_type)
- add_library(${name} ${library_type} ${ARGN})
- extract_headers(hdrs "${ARGN}")
- target_include_directories(${name} PUBLIC
- $
- $)
- set_target_properties(${name} PROPERTIES
- PUBLIC_HEADERS "${hdrs}")
- if (SPIRV_CROSS_FORCE_PIC)
- set_target_properties(${name} PROPERTIES POSITION_INDEPENDENT_CODE ON)
- endif()
- target_compile_options(${name} PRIVATE ${spirv-compiler-options})
- target_compile_definitions(${name} PRIVATE ${spirv-compiler-defines})
- if (SPIRV_CROSS_NAMESPACE_OVERRIDE)
- if (${library_type} MATCHES "STATIC")
- target_compile_definitions(${name} PUBLIC SPIRV_CROSS_NAMESPACE_OVERRIDE=${SPIRV_CROSS_NAMESPACE_OVERRIDE})
- else()
- target_compile_definitions(${name} PRIVATE SPIRV_CROSS_NAMESPACE_OVERRIDE=${SPIRV_CROSS_NAMESPACE_OVERRIDE})
- endif()
- endif()
-
- if (NOT SPIRV_CROSS_SKIP_INSTALL)
- install(TARGETS ${name}
- EXPORT ${config_name}Config
- RUNTIME DESTINATION bin
- LIBRARY DESTINATION lib
- ARCHIVE DESTINATION lib
- PUBLIC_HEADER DESTINATION include/spirv_cross)
- install(FILES ${hdrs} DESTINATION include/spirv_cross)
- install(EXPORT ${config_name}Config DESTINATION share/${config_name}/cmake)
- export(TARGETS ${name} FILE ${config_name}Config.cmake)
- endif()
-endmacro()
-
-set(spirv-cross-core-sources
- ${CMAKE_CURRENT_SOURCE_DIR}/GLSL.std.450.h
- ${CMAKE_CURRENT_SOURCE_DIR}/spirv_common.hpp
- ${CMAKE_CURRENT_SOURCE_DIR}/spirv_cross_containers.hpp
- ${CMAKE_CURRENT_SOURCE_DIR}/spirv_cross_error_handling.hpp
- ${CMAKE_CURRENT_SOURCE_DIR}/spirv.hpp
- ${CMAKE_CURRENT_SOURCE_DIR}/spirv_cross.hpp
- ${CMAKE_CURRENT_SOURCE_DIR}/spirv_cross.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/spirv_parser.hpp
- ${CMAKE_CURRENT_SOURCE_DIR}/spirv_parser.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/spirv_cross_parsed_ir.hpp
- ${CMAKE_CURRENT_SOURCE_DIR}/spirv_cross_parsed_ir.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/spirv_cfg.hpp
- ${CMAKE_CURRENT_SOURCE_DIR}/spirv_cfg.cpp)
-
-set(spirv-cross-c-sources
- spirv.h
- ${CMAKE_CURRENT_SOURCE_DIR}/spirv_cross_c.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/spirv_cross_c.h)
-
-set(spirv-cross-glsl-sources
- ${CMAKE_CURRENT_SOURCE_DIR}/spirv_glsl.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/spirv_glsl.hpp)
-
-set(spirv-cross-cpp-sources
- ${CMAKE_CURRENT_SOURCE_DIR}/spirv_cpp.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/spirv_cpp.hpp)
-
-set(spirv-cross-msl-sources
- ${CMAKE_CURRENT_SOURCE_DIR}/spirv_msl.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/spirv_msl.hpp)
-
-set(spirv-cross-hlsl-sources
- ${CMAKE_CURRENT_SOURCE_DIR}/spirv_hlsl.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/spirv_hlsl.hpp)
-
-set(spirv-cross-reflect-sources
- ${CMAKE_CURRENT_SOURCE_DIR}/spirv_reflect.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/spirv_reflect.hpp)
-
-set(spirv-cross-util-sources
- ${CMAKE_CURRENT_SOURCE_DIR}/spirv_cross_util.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/spirv_cross_util.hpp)
-
-if (SPIRV_CROSS_STATIC)
- spirv_cross_add_library(spirv-cross-core spirv_cross_core STATIC
- ${spirv-cross-core-sources})
-
- if (SPIRV_CROSS_ENABLE_GLSL)
- spirv_cross_add_library(spirv-cross-glsl spirv_cross_glsl STATIC
- ${spirv-cross-glsl-sources})
- target_link_libraries(spirv-cross-glsl PRIVATE spirv-cross-core)
- endif()
-
- if (SPIRV_CROSS_ENABLE_CPP)
- spirv_cross_add_library(spirv-cross-cpp spirv_cross_cpp STATIC
- ${spirv-cross-cpp-sources})
-
- if (SPIRV_CROSS_ENABLE_GLSL)
- target_link_libraries(spirv-cross-cpp PRIVATE spirv-cross-glsl)
- else()
- message(FATAL_ERROR "Must enable GLSL support to enable C++ support.")
- endif()
- endif()
-
- if (SPIRV_CROSS_ENABLE_REFLECT)
- if (SPIRV_CROSS_ENABLE_GLSL)
- spirv_cross_add_library(spirv-cross-reflect spirv_cross_reflect STATIC
- ${spirv-cross-reflect-sources})
- else()
- message(FATAL_ERROR "Must enable GLSL support to enable JSON reflection support.")
- endif()
- endif()
-
- if (SPIRV_CROSS_ENABLE_MSL)
- spirv_cross_add_library(spirv-cross-msl spirv_cross_msl STATIC
- ${spirv-cross-msl-sources})
- if (SPIRV_CROSS_ENABLE_GLSL)
- target_link_libraries(spirv-cross-msl PRIVATE spirv-cross-glsl)
- else()
- message(FATAL_ERROR "Must enable GLSL support to enable MSL support.")
- endif()
- endif()
-
- if (SPIRV_CROSS_ENABLE_HLSL)
- spirv_cross_add_library(spirv-cross-hlsl spirv_cross_hlsl STATIC
- ${spirv-cross-hlsl-sources})
- if (SPIRV_CROSS_ENABLE_GLSL)
- target_link_libraries(spirv-cross-hlsl PRIVATE spirv-cross-glsl)
- else()
- message(FATAL_ERROR "Must enable GLSL support to enable HLSL support.")
- endif()
- endif()
-
- if (SPIRV_CROSS_ENABLE_UTIL)
- spirv_cross_add_library(spirv-cross-util spirv_cross_util STATIC
- ${spirv-cross-util-sources})
- target_link_libraries(spirv-cross-util PRIVATE spirv-cross-core)
- endif()
-
- if (SPIRV_CROSS_ENABLE_C_API)
- spirv_cross_add_library(spirv-cross-c spirv_cross_c STATIC
- ${spirv-cross-c-sources})
- target_include_directories(spirv-cross-c PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
- target_compile_definitions(spirv-cross-c PRIVATE HAVE_SPIRV_CROSS_GIT_VERSION)
-
- if (SPIRV_CROSS_ENABLE_GLSL)
- target_link_libraries(spirv-cross-c PRIVATE spirv-cross-glsl)
- target_compile_definitions(spirv-cross-c PRIVATE SPIRV_CROSS_C_API_GLSL=1)
- endif()
-
- if (SPIRV_CROSS_ENABLE_HLSL)
- target_link_libraries(spirv-cross-c PRIVATE spirv-cross-hlsl)
- target_compile_definitions(spirv-cross-c PRIVATE SPIRV_CROSS_C_API_HLSL=1)
- endif()
-
- if (SPIRV_CROSS_ENABLE_MSL)
- target_link_libraries(spirv-cross-c PRIVATE spirv-cross-msl)
- target_compile_definitions(spirv-cross-c PRIVATE SPIRV_CROSS_C_API_MSL=1)
- endif()
-
- if (SPIRV_CROSS_ENABLE_CPP)
- target_link_libraries(spirv-cross-c PRIVATE spirv-cross-cpp)
- target_compile_definitions(spirv-cross-c PRIVATE SPIRV_CROSS_C_API_CPP=1)
- endif()
-
- if (SPIRV_CROSS_ENABLE_REFLECT)
- target_link_libraries(spirv-cross-c PRIVATE spirv-cross-reflect)
- target_compile_definitions(spirv-cross-c PRIVATE SPIRV_CROSS_C_API_REFLECT=1)
- endif()
- endif()
-endif()
-
-set(spirv-cross-abi-major 0)
-set(spirv-cross-abi-minor 21)
-set(spirv-cross-abi-patch 0)
-
-if (SPIRV_CROSS_SHARED)
- set(SPIRV_CROSS_VERSION ${spirv-cross-abi-major}.${spirv-cross-abi-minor}.${spirv-cross-abi-patch})
- set(SPIRV_CROSS_INSTALL_LIB_DIR ${CMAKE_INSTALL_PREFIX}/lib)
- set(SPIRV_CROSS_INSTALL_INC_DIR ${CMAKE_INSTALL_PREFIX}/include/spirv_cross)
-
- if (NOT SPIRV_CROSS_SKIP_INSTALL)
- configure_file(
- ${CMAKE_CURRENT_SOURCE_DIR}/pkg-config/spirv-cross-c-shared.pc.in
- ${CMAKE_CURRENT_BINARY_DIR}/spirv-cross-c-shared.pc @ONLY)
- install(FILES ${CMAKE_CURRENT_BINARY_DIR}/spirv-cross-c-shared.pc DESTINATION ${CMAKE_INSTALL_PREFIX}/share/pkgconfig)
- endif()
-
- spirv_cross_add_library(spirv-cross-c-shared spirv_cross_c_shared SHARED
- ${spirv-cross-core-sources}
- ${spirv-cross-c-sources})
-
- target_include_directories(spirv-cross-c-shared PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
- target_compile_definitions(spirv-cross-c-shared PRIVATE HAVE_SPIRV_CROSS_GIT_VERSION)
-
- if (SPIRV_CROSS_ENABLE_GLSL)
- target_sources(spirv-cross-c-shared PRIVATE ${spirv-cross-glsl-sources})
- target_compile_definitions(spirv-cross-c-shared PRIVATE SPIRV_CROSS_C_API_GLSL=1)
- endif()
-
- if (SPIRV_CROSS_ENABLE_HLSL)
- if (SPIRV_CROSS_ENABLE_GLSL)
- target_sources(spirv-cross-c-shared PRIVATE ${spirv-cross-hlsl-sources})
- else()
- message(FATAL_ERROR "Must enable GLSL support to enable HLSL support.")
- endif()
- target_compile_definitions(spirv-cross-c-shared PRIVATE SPIRV_CROSS_C_API_HLSL=1)
- endif()
-
- if (SPIRV_CROSS_ENABLE_MSL)
- if (SPIRV_CROSS_ENABLE_GLSL)
- target_sources(spirv-cross-c-shared PRIVATE ${spirv-cross-msl-sources})
- else()
- message(FATAL_ERROR "Must enable GLSL support to enable MSL support.")
- endif()
- target_compile_definitions(spirv-cross-c-shared PRIVATE SPIRV_CROSS_C_API_MSL=1)
- endif()
-
- if (SPIRV_CROSS_ENABLE_CPP)
- if (SPIRV_CROSS_ENABLE_GLSL)
- target_sources(spirv-cross-c-shared PRIVATE ${spirv-cross-cpp-sources})
- else()
- message(FATAL_ERROR "Must enable GLSL support to enable C++ support.")
- endif()
- target_compile_definitions(spirv-cross-c-shared PRIVATE SPIRV_CROSS_C_API_CPP=1)
- endif()
-
- if (SPIRV_CROSS_ENABLE_REFLECT)
- if (SPIRV_CROSS_ENABLE_GLSL)
- target_sources(spirv-cross-c-shared PRIVATE ${spirv-cross-reflect-sources})
- else()
- message(FATAL_ERROR "Must enable GLSL support to enable JSON reflection support.")
- endif()
- target_compile_definitions(spirv-cross-c-shared PRIVATE SPIRV_CROSS_C_API_REFLECT=1)
- endif()
-
- if (CMAKE_COMPILER_IS_GNUCXX OR (${CMAKE_CXX_COMPILER_ID} MATCHES "Clang"))
- # Only export the C API.
- target_compile_options(spirv-cross-c-shared PRIVATE -fvisibility=hidden)
- if (NOT APPLE)
- set_target_properties(spirv-cross-c-shared PROPERTIES LINK_FLAGS "${spirv-cross-link-flags}")
- endif()
- endif()
-
- target_compile_definitions(spirv-cross-c-shared PRIVATE SPVC_EXPORT_SYMBOLS)
-
- set_target_properties(spirv-cross-c-shared PROPERTIES
- VERSION ${SPIRV_CROSS_VERSION}
- SOVERSION ${spirv-cross-abi-major})
-endif()
-
-if (SPIRV_CROSS_CLI)
- if (NOT SPIRV_CROSS_ENABLE_GLSL)
- message(FATAL_ERROR "Must enable GLSL if building CLI.")
- endif()
-
- if (NOT SPIRV_CROSS_ENABLE_HLSL)
- message(FATAL_ERROR "Must enable HLSL if building CLI.")
- endif()
-
- if (NOT SPIRV_CROSS_ENABLE_MSL)
- message(FATAL_ERROR "Must enable MSL if building CLI.")
- endif()
-
- if (NOT SPIRV_CROSS_ENABLE_CPP)
- message(FATAL_ERROR "Must enable C++ if building CLI.")
- endif()
-
- if (NOT SPIRV_CROSS_ENABLE_REFLECT)
- message(FATAL_ERROR "Must enable reflection if building CLI.")
- endif()
-
- if (NOT SPIRV_CROSS_ENABLE_UTIL)
- message(FATAL_ERROR "Must enable utils if building CLI.")
- endif()
-
- if (NOT SPIRV_CROSS_STATIC)
- message(FATAL_ERROR "Must build static libraries if building CLI.")
- endif()
- add_executable(spirv-cross main.cpp)
- target_compile_options(spirv-cross PRIVATE ${spirv-compiler-options})
- target_include_directories(spirv-cross PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
- target_compile_definitions(spirv-cross PRIVATE ${spirv-compiler-defines} HAVE_SPIRV_CROSS_GIT_VERSION)
- set_target_properties(spirv-cross PROPERTIES LINK_FLAGS "${spirv-cross-link-flags}")
- if (NOT SPIRV_CROSS_SKIP_INSTALL)
- install(TARGETS spirv-cross RUNTIME DESTINATION bin)
- endif()
- target_link_libraries(spirv-cross PRIVATE
- spirv-cross-glsl
- spirv-cross-hlsl
- spirv-cross-cpp
- spirv-cross-reflect
- spirv-cross-msl
- spirv-cross-util
- spirv-cross-core)
-
- if (SPIRV_CROSS_ENABLE_TESTS)
- # Set up tests, using only the simplest modes of the test_shaders
- # script. You have to invoke the script manually to:
- # - Update the reference files
- # - Get cycle counts from malisc
- # - Keep failing outputs
- find_package(PythonInterp)
- find_program(spirv-cross-glslang NAMES glslangValidator
- PATHS ${CMAKE_CURRENT_SOURCE_DIR}/external/glslang-build/output/bin
- NO_DEFAULT_PATH)
- find_program(spirv-cross-spirv-as NAMES spirv-as
- PATHS ${CMAKE_CURRENT_SOURCE_DIR}/external/spirv-tools-build/output/bin
- NO_DEFAULT_PATH)
- find_program(spirv-cross-spirv-val NAMES spirv-val
- PATHS ${CMAKE_CURRENT_SOURCE_DIR}/external/spirv-tools-build/output/bin
- NO_DEFAULT_PATH)
- find_program(spirv-cross-spirv-opt NAMES spirv-opt
- PATHS ${CMAKE_CURRENT_SOURCE_DIR}/external/spirv-tools-build/output/bin
- NO_DEFAULT_PATH)
-
- if ((${spirv-cross-glslang} MATCHES "NOTFOUND") OR (${spirv-cross-spirv-as} MATCHES "NOTFOUND") OR (${spirv-cross-spirv-val} MATCHES "NOTFOUND") OR (${spirv-cross-spirv-opt} MATCHES "NOTFOUND"))
- set(SPIRV_CROSS_ENABLE_TESTS OFF)
- message("SPIRV-Cross: Testing will be disabled for SPIRV-Cross. Could not find glslang or SPIRV-Tools build under external/. To enable testing, run ./checkout_glslang_spirv_tools.sh and ./build_glslang_spirv_tools.sh first.")
- else()
- set(SPIRV_CROSS_ENABLE_TESTS ON)
- message("SPIRV-Cross: Found glslang and SPIRV-Tools. Enabling test suite.")
- message("SPIRV-Cross: Found glslangValidator in: ${spirv-cross-glslang}.")
- message("SPIRV-Cross: Found spirv-as in: ${spirv-cross-spirv-as}.")
- message("SPIRV-Cross: Found spirv-val in: ${spirv-cross-spirv-val}.")
- message("SPIRV-Cross: Found spirv-opt in: ${spirv-cross-spirv-opt}.")
- endif()
-
- set(spirv-cross-externals
- --glslang "${spirv-cross-glslang}"
- --spirv-as "${spirv-cross-spirv-as}"
- --spirv-opt "${spirv-cross-spirv-opt}"
- --spirv-val "${spirv-cross-spirv-val}")
-
- if (${PYTHONINTERP_FOUND} AND SPIRV_CROSS_ENABLE_TESTS)
- if (${PYTHON_VERSION_MAJOR} GREATER 2)
- add_executable(spirv-cross-c-api-test tests-other/c_api_test.c)
- target_link_libraries(spirv-cross-c-api-test spirv-cross-c)
- set_target_properties(spirv-cross-c-api-test PROPERTIES LINK_FLAGS "${spirv-cross-link-flags}")
-
- add_executable(spirv-cross-small-vector-test tests-other/small_vector.cpp)
- target_link_libraries(spirv-cross-small-vector-test spirv-cross-core)
- set_target_properties(spirv-cross-small-vector-test PROPERTIES LINK_FLAGS "${spirv-cross-link-flags}")
-
- add_executable(spirv-cross-msl-constexpr-test tests-other/msl_constexpr_test.cpp)
- target_link_libraries(spirv-cross-msl-constexpr-test spirv-cross-c)
- set_target_properties(spirv-cross-msl-constexpr-test PROPERTIES LINK_FLAGS "${spirv-cross-link-flags}")
-
- add_executable(spirv-cross-msl-resource-binding-test tests-other/msl_resource_bindings.cpp)
- target_link_libraries(spirv-cross-msl-resource-binding-test spirv-cross-c)
- set_target_properties(spirv-cross-msl-resource-binding-test PROPERTIES LINK_FLAGS "${spirv-cross-link-flags}")
-
- add_executable(spirv-cross-msl-ycbcr-conversion-test tests-other/msl_ycbcr_conversion_test.cpp)
- target_link_libraries(spirv-cross-msl-ycbcr-conversion-test spirv-cross-c)
- set_target_properties(spirv-cross-msl-ycbcr-conversion-test PROPERTIES LINK_FLAGS "${spirv-cross-link-flags}")
-
- add_executable(spirv-cross-typed-id-test tests-other/typed_id_test.cpp)
- target_link_libraries(spirv-cross-typed-id-test spirv-cross-core)
- set_target_properties(spirv-cross-typed-id-test PROPERTIES LINK_FLAGS "${spirv-cross-link-flags}")
-
- if (CMAKE_COMPILER_IS_GNUCXX OR (${CMAKE_CXX_COMPILER_ID} MATCHES "Clang"))
- target_compile_options(spirv-cross-c-api-test PRIVATE -std=c89 -Wall -Wextra)
- endif()
- add_test(NAME spirv-cross-c-api-test
- COMMAND $ ${CMAKE_CURRENT_SOURCE_DIR}/tests-other/c_api_test.spv
- ${spirv-cross-abi-major}
- ${spirv-cross-abi-minor}
- ${spirv-cross-abi-patch})
- add_test(NAME spirv-cross-small-vector-test
- COMMAND $)
- add_test(NAME spirv-cross-msl-constexpr-test
- COMMAND $ ${CMAKE_CURRENT_SOURCE_DIR}/tests-other/msl_constexpr_test.spv)
- add_test(NAME spirv-cross-msl-resource-binding-test
- COMMAND $ ${CMAKE_CURRENT_SOURCE_DIR}/tests-other/msl_resource_binding.spv)
- add_test(NAME spirv-cross-msl-ycbcr-conversion-test
- COMMAND $ ${CMAKE_CURRENT_SOURCE_DIR}/tests-other/msl_ycbcr_conversion_test.spv)
- add_test(NAME spirv-cross-msl-ycbcr-conversion-test-2
- COMMAND $ ${CMAKE_CURRENT_SOURCE_DIR}/tests-other/msl_ycbcr_conversion_test_2.spv)
- add_test(NAME spirv-cross-typed-id-test
- COMMAND $)
- add_test(NAME spirv-cross-test
- COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/test_shaders.py --parallel
- ${spirv-cross-externals}
- ${CMAKE_CURRENT_SOURCE_DIR}/shaders
- WORKING_DIRECTORY $)
- add_test(NAME spirv-cross-test-no-opt
- COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/test_shaders.py --parallel
- ${spirv-cross-externals}
- ${CMAKE_CURRENT_SOURCE_DIR}/shaders-no-opt
- WORKING_DIRECTORY $)
- add_test(NAME spirv-cross-test-metal
- COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/test_shaders.py --metal --parallel
- ${spirv-cross-externals}
- ${CMAKE_CURRENT_SOURCE_DIR}/shaders-msl
- WORKING_DIRECTORY $)
- add_test(NAME spirv-cross-test-metal-no-opt
- COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/test_shaders.py --metal --parallel
- ${spirv-cross-externals}
- ${CMAKE_CURRENT_SOURCE_DIR}/shaders-msl-no-opt
- WORKING_DIRECTORY $)
- add_test(NAME spirv-cross-test-hlsl
- COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/test_shaders.py --hlsl --parallel
- ${spirv-cross-externals}
- ${CMAKE_CURRENT_SOURCE_DIR}/shaders-hlsl
- WORKING_DIRECTORY $)
- add_test(NAME spirv-cross-test-hlsl-no-opt
- COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/test_shaders.py --hlsl --parallel
- ${spirv-cross-externals}
- ${CMAKE_CURRENT_SOURCE_DIR}/shaders-hlsl-no-opt
- WORKING_DIRECTORY $)
- add_test(NAME spirv-cross-test-opt
- COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/test_shaders.py --opt --parallel
- ${spirv-cross-externals}
- ${CMAKE_CURRENT_SOURCE_DIR}/shaders
- WORKING_DIRECTORY $)
- add_test(NAME spirv-cross-test-metal-opt
- COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/test_shaders.py --metal --opt --parallel
- ${spirv-cross-externals}
- ${CMAKE_CURRENT_SOURCE_DIR}/shaders-msl
- WORKING_DIRECTORY $)
- add_test(NAME spirv-cross-test-hlsl-opt
- COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/test_shaders.py --hlsl --opt --parallel
- ${spirv-cross-externals}
- ${CMAKE_CURRENT_SOURCE_DIR}/shaders-hlsl
- WORKING_DIRECTORY $)
- add_test(NAME spirv-cross-test-reflection
- COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/test_shaders.py --reflect --parallel
- ${spirv-cross-externals}
- ${CMAKE_CURRENT_SOURCE_DIR}/shaders-reflection
- WORKING_DIRECTORY $)
- add_test(NAME spirv-cross-test-ue4
- COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/test_shaders.py --msl --parallel
- ${spirv-cross-externals}
- ${CMAKE_CURRENT_SOURCE_DIR}/shaders-ue4
- WORKING_DIRECTORY $)
- add_test(NAME spirv-cross-test-ue4-opt
- COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/test_shaders.py --msl --opt --parallel
- ${spirv-cross-externals}
- ${CMAKE_CURRENT_SOURCE_DIR}/shaders-ue4
- WORKING_DIRECTORY $)
- add_test(NAME spirv-cross-test-ue4-no-opt
- COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/test_shaders.py --msl --parallel
- ${spirv-cross-externals}
- ${CMAKE_CURRENT_SOURCE_DIR}/shaders-ue4-no-opt
- WORKING_DIRECTORY $)
- endif()
- elseif(NOT ${PYTHONINTERP_FOUND})
- message(WARNING "SPIRV-Cross: Testing disabled. Could not find python3. If you have python3 installed try running "
- "cmake with -DPYTHON_EXECUTABLE:FILEPATH=/path/to/python3 to help it find the executable")
- endif()
- endif()
-endif()
diff --git a/3rdparty/spirv-cross/CODE_OF_CONDUCT.md b/3rdparty/spirv-cross/CODE_OF_CONDUCT.md
deleted file mode 100644
index a11610bd3..000000000
--- a/3rdparty/spirv-cross/CODE_OF_CONDUCT.md
+++ /dev/null
@@ -1 +0,0 @@
-A reminder that this issue tracker is managed by the Khronos Group. Interactions here should follow the Khronos Code of Conduct (https://www.khronos.org/developers/code-of-conduct), which prohibits aggressive or derogatory language. Please keep the discussion friendly and civil.
diff --git a/3rdparty/spirv-cross/Makefile b/3rdparty/spirv-cross/Makefile
deleted file mode 100644
index a006e81fa..000000000
--- a/3rdparty/spirv-cross/Makefile
+++ /dev/null
@@ -1,41 +0,0 @@
-TARGET := spirv-cross
-
-SOURCES := $(wildcard spirv_*.cpp)
-CLI_SOURCES := main.cpp
-
-OBJECTS := $(SOURCES:.cpp=.o)
-CLI_OBJECTS := $(CLI_SOURCES:.cpp=.o)
-
-STATIC_LIB := lib$(TARGET).a
-
-DEPS := $(OBJECTS:.o=.d) $(CLI_OBJECTS:.o=.d)
-
-CXXFLAGS += -std=c++11 -Wall -Wextra -Wshadow
-
-ifeq ($(DEBUG), 1)
- CXXFLAGS += -O0 -g
-else
- CXXFLAGS += -O2 -DNDEBUG
-endif
-
-ifeq ($(SPIRV_CROSS_EXCEPTIONS_TO_ASSERTIONS), 1)
- CXXFLAGS += -DSPIRV_CROSS_EXCEPTIONS_TO_ASSERTIONS -fno-exceptions
-endif
-
-all: $(TARGET)
-
--include $(DEPS)
-
-$(TARGET): $(CLI_OBJECTS) $(STATIC_LIB)
- $(CXX) -o $@ $(CLI_OBJECTS) $(STATIC_LIB) $(LDFLAGS)
-
-$(STATIC_LIB): $(OBJECTS)
- $(AR) rcs $@ $(OBJECTS)
-
-%.o: %.cpp
- $(CXX) -c -o $@ $< $(CXXFLAGS) -MMD
-
-clean:
- rm -f $(TARGET) $(OBJECTS) $(CLI_OBJECTS) $(STATIC_LIB) $(DEPS)
-
-.PHONY: clean
diff --git a/3rdparty/spirv-cross/README.md b/3rdparty/spirv-cross/README.md
deleted file mode 100644
index 831c6ff00..000000000
--- a/3rdparty/spirv-cross/README.md
+++ /dev/null
@@ -1,493 +0,0 @@
-# SPIRV-Cross
-
-SPIRV-Cross is a tool designed for parsing and converting SPIR-V to other shader languages.
-
-[](https://travis-ci.org/KhronosGroup/SPIRV-Cross)
-[](https://ci.appveyor.com/project/HansKristian-Work/SPIRV-Cross)
-
-## Features
-
- - Convert SPIR-V to readable, usable and efficient GLSL
- - Convert SPIR-V to readable, usable and efficient Metal Shading Language (MSL)
- - Convert SPIR-V to readable, usable and efficient HLSL
- - Convert SPIR-V to debuggable C++ [DEPRECATED]
- - Convert SPIR-V to a JSON reflection format [EXPERIMENTAL]
- - Reflection API to simplify the creation of Vulkan pipeline layouts
- - Reflection API to modify and tweak OpDecorations
- - Supports "all" of vertex, fragment, tessellation, geometry and compute shaders.
-
-SPIRV-Cross tries hard to emit readable and clean output from the SPIR-V.
-The goal is to emit GLSL or MSL that looks like it was written by a human and not awkward IR/assembly-like code.
-
-NOTE: Individual features are expected to be mostly complete, but it is possible that certain obscure GLSL features are not yet supported.
-However, most missing features are expected to be "trivial" improvements at this stage.
-
-## Building
-
-SPIRV-Cross has been tested on Linux, iOS/OSX, Windows and Android. CMake is the main build system.
-
-### Linux and macOS
-
-Building with CMake is recommended, as it is the only build system which is tested in continuous integration.
-It is also the only build system which has install commands and other useful build system features.
-
-However, you can just run `make` on the command line as a fallback if you only care about the CLI tool.
-
-A non-ancient GCC (4.8+) or Clang (3.x+) compiler is required as SPIRV-Cross uses C++11 extensively.
-
-### Windows
-
-Building with CMake is recommended, which is the only way to target MSVC.
-MinGW-w64 based compilation works with `make` as a fallback.
-
-### Android
-
-SPIRV-Cross is only useful as a library here. Use the CMake build to link SPIRV-Cross to your project.
-
-### C++ exceptions
-
-The make and CMake build flavors offer the option to treat exceptions as assertions. To disable exceptions for make just append `SPIRV_CROSS_EXCEPTIONS_TO_ASSERTIONS=1` to the command line. For CMake append `-DSPIRV_CROSS_EXCEPTIONS_TO_ASSERTIONS=ON`. By default exceptions are enabled.
-
-### Static, shared and CLI
-
-You can use `-DSPIRV_CROSS_STATIC=ON/OFF` `-DSPIRV_CROSS_SHARED=ON/OFF` `-DSPIRV_CROSS_CLI=ON/OFF` to control which modules are built (and installed).
-
-## Usage
-
-### Using the C++ API
-
-The C++ API is the main API for SPIRV-Cross. For more in-depth documentation than what's provided in this README,
-please have a look at the [Wiki](https://github.com/KhronosGroup/SPIRV-Cross/wiki).
-**NOTE**: This API is not guaranteed to be ABI-stable, and it is highly recommended to link against this API statically.
-The API is generally quite stable, but it can change over time, see the C API for more stability.
-
-To perform reflection and convert to other shader languages you can use the SPIRV-Cross API.
-For example:
-
-```c++
-#include "spirv_glsl.hpp"
-#include
-#include
-
-extern std::vector load_spirv_file();
-
-int main()
-{
- // Read SPIR-V from disk or similar.
- std::vector spirv_binary = load_spirv_file();
-
- spirv_cross::CompilerGLSL glsl(std::move(spirv_binary));
-
- // The SPIR-V is now parsed, and we can perform reflection on it.
- spirv_cross::ShaderResources resources = glsl.get_shader_resources();
-
- // Get all sampled images in the shader.
- for (auto &resource : resources.sampled_images)
- {
- unsigned set = glsl.get_decoration(resource.id, spv::DecorationDescriptorSet);
- unsigned binding = glsl.get_decoration(resource.id, spv::DecorationBinding);
- printf("Image %s at set = %u, binding = %u\n", resource.name.c_str(), set, binding);
-
- // Modify the decoration to prepare it for GLSL.
- glsl.unset_decoration(resource.id, spv::DecorationDescriptorSet);
-
- // Some arbitrary remapping if we want.
- glsl.set_decoration(resource.id, spv::DecorationBinding, set * 16 + binding);
- }
-
- // Set some options.
- spirv_cross::CompilerGLSL::Options options;
- options.version = 310;
- options.es = true;
- glsl.set_options(options);
-
- // Compile to GLSL, ready to give to GL driver.
- std::string source = glsl.compile();
-}
-```
-
-### Using the C API wrapper
-
-To facilitate C compatibility and compatibility with foreign programming languages, a C89-compatible API wrapper is provided. Unlike the C++ API,
-the goal of this wrapper is to be fully stable, both API and ABI-wise.
-This is the only interface which is supported when building SPIRV-Cross as a shared library.
-
-An important point of the wrapper is that all memory allocations are contained in the `spvc_context`.
-This simplifies the use of the API greatly. However, you should destroy the context as soon as reasonable,
-or use `spvc_context_release_allocations()` if you intend to reuse the `spvc_context` object again soon.
-
-Most functions return a `spvc_result`, where `SPVC_SUCCESS` is the only success code.
-For brevity, the code below does not do any error checking.
-
-```c
-#include
-
-const SpvId *spirv = get_spirv_data();
-size_t word_count = get_spirv_word_count();
-
-spvc_context context = NULL;
-spvc_parsed_ir ir = NULL;
-spvc_compiler compiler_glsl = NULL;
-spvc_compiler_options options = NULL;
-spvc_resources resources = NULL;
-const spvc_reflected_resource *list = NULL;
-const char *result = NULL;
-size_t count;
-size_t i;
-
-// Create context.
-spvc_context_create(&context);
-
-// Set debug callback.
-spvc_context_set_error_callback(context, error_callback, userdata);
-
-// Parse the SPIR-V.
-spvc_context_parse_spirv(context, spirv, word_count, &ir);
-
-// Hand it off to a compiler instance and give it ownership of the IR.
-spvc_context_create_compiler(context, SPVC_BACKEND_GLSL, ir, SPVC_CAPTURE_MODE_TAKE_OWNERSHIP, &compiler_glsl);
-
-// Do some basic reflection.
-spvc_compiler_create_shader_resources(compiler_glsl, &resources);
-spvc_resources_get_resource_list_for_type(resources, SPVC_RESOURCE_TYPE_UNIFORM_BUFFER, &list, &count);
-
-for (i = 0; i < count; i++)
-{
- printf("ID: %u, BaseTypeID: %u, TypeID: %u, Name: %s\n", list[i].id, list[i].base_type_id, list[i].type_id,
- list[i].name);
- printf(" Set: %u, Binding: %u\n",
- spvc_compiler_get_decoration(compiler_glsl, list[i].id, SpvDecorationDescriptorSet),
- spvc_compiler_get_decoration(compiler_glsl, list[i].id, SpvDecorationBinding));
-}
-
-// Modify options.
-spvc_compiler_create_compiler_options(context, &options);
-spvc_compiler_options_set_uint(options, SPVC_COMPILER_OPTION_GLSL_VERSION, 330);
-spvc_compiler_options_set_bool(options, SPVC_COMPILER_OPTION_GLSL_ES, SPVC_FALSE);
-spvc_compiler_install_compiler_options(compiler_glsl, options);
-
-spvc_compiler_compile(compiler, &result);
-printf("Cross-compiled source: %s\n", result);
-
-// Frees all memory we allocated so far.
-spvc_context_destroy(context);
-```
-
-### Linking
-
-#### CMake add_subdirectory()
-
-This is the recommended way if you are using CMake and want to link against SPIRV-Cross statically.
-
-#### Integrating SPIRV-Cross in a custom build system
-
-To add SPIRV-Cross to your own codebase, just copy the source and header files from root directory
-and build the relevant .cpp files you need. Make sure to build with C++11 support, e.g. `-std=c++11` in GCC and Clang.
-Alternatively, the Makefile generates a libspirv-cross.a static library during build that can be linked in.
-
-#### Linking against SPIRV-Cross as a system library
-
-It is possible to link against SPIRV-Cross when it is installed as a system library,
-which would be mostly relevant for Unix-like platforms.
-
-##### pkg-config
-
-For Unix-based systems, a pkg-config is installed for the C API, e.g.:
-
-```
-$ pkg-config spirv-cross-c-shared --libs --cflags
--I/usr/local/include/spirv_cross -L/usr/local/lib -lspirv-cross-c-shared
-```
-
-##### CMake
-
-If the project is installed, it can be found with `find_package()`, e.g.:
-
-```
-cmake_minimum_required(VERSION 3.5)
-set(CMAKE_C_STANDARD 99)
-project(Test LANGUAGES C)
-
-find_package(spirv_cross_c_shared)
-if (spirv_cross_c_shared_FOUND)
- message(STATUS "Found SPIRV-Cross C API! :)")
-else()
- message(STATUS "Could not find SPIRV-Cross C API! :(")
-endif()
-
-add_executable(test test.c)
-target_link_libraries(test spirv-cross-c-shared)
-```
-
-test.c:
-```c
-#include
-
-int main(void)
-{
- spvc_context context;
- spvc_context_create(&context);
- spvc_context_destroy(context);
-}
-```
-
-### CLI
-
-The CLI is suitable for basic cross-compilation tasks, but it cannot support the full flexibility that the API can.
-Some examples below.
-
-#### Creating a SPIR-V file from GLSL with glslang
-
-```
-glslangValidator -H -V -o test.spv test.frag
-```
-
-#### Converting a SPIR-V file to GLSL ES
-
-```
-glslangValidator -H -V -o test.spv shaders/comp/basic.comp
-./spirv-cross --version 310 --es test.spv
-```
-
-#### Converting to desktop GLSL
-
-```
-glslangValidator -H -V -o test.spv shaders/comp/basic.comp
-./spirv-cross --version 330 --no-es test.spv --output test.comp
-```
-
-#### Disable prettifying optimizations
-
-```
-glslangValidator -H -V -o test.spv shaders/comp/basic.comp
-./spirv-cross --version 310 --es test.spv --output test.comp --force-temporary
-```
-
-### Using shaders generated from C++ backend
-
-Please see `samples/cpp` where some GLSL shaders are compiled to SPIR-V, decompiled to C++ and run with test data.
-Reading through the samples should explain how to use the C++ interface.
-A simple Makefile is included to build all shaders in the directory.
-
-### Implementation notes
-
-When using SPIR-V and SPIRV-Cross as an intermediate step for cross-compiling between high level languages there are some considerations to take into account,
-as not all features used by one high-level language are necessarily supported natively by the target shader language.
-SPIRV-Cross aims to provide the tools needed to handle these scenarios in a clean and robust way, but some manual action is required to maintain compatibility.
-
-#### HLSL source to GLSL
-
-##### HLSL entry points
-
-When using SPIR-V shaders compiled from HLSL, there are some extra things you need to take care of.
-First make sure that the entry point is used correctly.
-If you forget to set the entry point correctly in glslangValidator (-e MyFancyEntryPoint),
-you will likely encounter this error message:
-
-```
-Cannot end a function before ending the current block.
-Likely cause: If this SPIR-V was created from glslang HLSL, make sure the entry point is valid.
-```
-
-##### Vertex/Fragment interface linking
-
-HLSL relies on semantics in order to effectively link together shader stages. In the SPIR-V generated by glslang, the transformation from HLSL to GLSL ends up looking like
-
-```c++
-struct VSOutput {
- // SV_Position is rerouted to gl_Position
- float4 position : SV_Position;
- float4 coord : TEXCOORD0;
-};
-
-VSOutput main(...) {}
-```
-
-```c++
-struct VSOutput {
- float4 coord;
-}
-layout(location = 0) out VSOutput _magicNameGeneratedByGlslang;
-```
-
-While this works, be aware of the type of the struct which is used in the vertex stage and the fragment stage.
-There may be issues if the structure type name differs in vertex stage and fragment stage.
-
-You can make use of the reflection interface to force the name of the struct type.
-
-```
-// Something like this for both vertex outputs and fragment inputs.
-compiler.set_name(varying_resource.base_type_id, "VertexFragmentLinkage");
-```
-
-Some platform may require identical variable name for both vertex outputs and fragment inputs. (for example MacOSX)
-to rename varaible base on location, please add
-```
---rename-interface-variable
-```
-
-#### HLSL source to legacy GLSL/ESSL
-
-HLSL tends to emit varying struct types to pass data between vertex and fragment.
-This is not supported in legacy GL/GLES targets, so to support this, varying structs are flattened.
-This is done automatically, but the API user might need to be aware that this is happening in order to support all cases.
-
-Modern GLES code like this:
-```c++
-struct Output {
- vec4 a;
- vec2 b;
-};
-out Output vout;
-```
-
-Is transformed into:
-```c++
-struct Output {
- vec4 a;
- vec2 b;
-};
-varying vec4 Output_a;
-varying vec2 Output_b;
-```
-
-Note that now, both the struct name and the member names will participate in the linking interface between vertex and fragment, so
-API users might want to ensure that both the struct names and member names match so that vertex outputs and fragment inputs can link properly.
-
-
-#### Separate image samplers (HLSL/Vulkan) for backends which do not support it (GLSL)
-
-Another thing you need to remember is when using samplers and textures in HLSL these are separable, and not directly compatible with GLSL. If you need to use this with desktop GL/GLES, you need to call `Compiler::build_combined_image_samplers` first before calling `Compiler::compile`, or you will get an exception.
-
-```c++
-// From main.cpp
-// Builds a mapping for all combinations of images and samplers.
-compiler->build_combined_image_samplers();
-
-// Give the remapped combined samplers new names.
-// Here you can also set up decorations if you want (binding = #N).
-for (auto &remap : compiler->get_combined_image_samplers())
-{
- compiler->set_name(remap.combined_id, join("SPIRV_Cross_Combined", compiler->get_name(remap.image_id),
- compiler->get_name(remap.sampler_id)));
-}
-```
-
-If your target is Vulkan GLSL, `--vulkan-semantics` will emit separate image samplers as you'd expect.
-The command line client calls `Compiler::build_combined_image_samplers` automatically, but if you're calling the library, you'll need to do this yourself.
-
-#### Descriptor sets (Vulkan GLSL) for backends which do not support them (HLSL/GLSL/Metal)
-
-Descriptor sets are unique to Vulkan, so make sure that descriptor set + binding is remapped to a flat binding scheme (set always 0), so that other APIs can make sense of the bindings.
-This can be done with `Compiler::set_decoration(id, spv::DecorationDescriptorSet)`.
-
-#### Linking by name for targets which do not support explicit locations (legacy GLSL/ESSL)
-
-Modern GLSL and HLSL sources (and SPIR-V) relies on explicit layout(location) qualifiers to guide the linking process between shader stages,
-but older GLSL relies on symbol names to perform the linking. When emitting shaders with older versions, these layout statements will be removed,
-so it is important that the API user ensures that the names of I/O variables are sanitized so that linking will work properly.
-The reflection API can rename variables, struct types and struct members to deal with these scenarios using `Compiler::set_name` and friends.
-
-#### Clip-space conventions
-
-SPIRV-Cross can perform some common clip space conversions on gl_Position/SV_Position by enabling `CompilerGLSL::Options.vertex.fixup_clipspace`.
-While this can be convenient, it is recommended to modify the projection matrices instead as that can achieve the same result.
-
-For GLSL targets, enabling this will convert a shader which assumes `[0, w]` depth range (Vulkan / D3D / Metal) into `[-w, w]` range.
-For MSL and HLSL targets, enabling this will convert a shader in `[-w, w]` depth range (OpenGL) to `[0, w]` depth range.
-
-By default, the CLI will not enable `fixup_clipspace`, but in the API you might want to set an explicit value using `CompilerGLSL::set_options()`.
-
-Y-flipping of gl_Position and similar is also supported.
-The use of this is discouraged, because relying on vertex shader Y-flipping tends to get quite messy.
-To enable this, set `CompilerGLSL::Options.vertex.flip_vert_y` or `--flip-vert-y` in CLI.
-
-## Contributing
-
-Contributions to SPIRV-Cross are welcome. See Testing and Licensing sections for details.
-
-### Testing
-
-SPIRV-Cross maintains a test suite of shaders with reference output of how the output looks after going through a roundtrip through
-glslangValidator/spirv-as then back through SPIRV-Cross again.
-The reference files are stored inside the repository in order to be able to track regressions.
-
-All pull requests should ensure that test output does not change unexpectedly. This can be tested with:
-
-```
-./checkout_glslang_spirv_tools.sh # Checks out glslang and SPIRV-Tools at a fixed revision which matches the reference output.
- # NOTE: Some users have reported problems cloning from git:// paths. To use https:// instead pass in
- # $ PROTOCOL=https ./checkout_glslang_spirv_tools.sh
- # instead.
-./build_glslang_spirv_tools.sh # Builds glslang and SPIRV-Tools.
-./test_shaders.sh # Runs over all changes and makes sure that there are no deltas compared to reference files.
-```
-
-`./test_shaders.sh` currently requires a Makefile setup with GCC/Clang to be set up.
-However, on Windows, this can be rather inconvenient if a MinGW environment is not set up.
-To use a spirv-cross binary you built with CMake (or otherwise), you can pass in an environment variable as such:
-
-```
-SPIRV_CROSS_PATH=path/to/custom/spirv-cross ./test_shaders.sh
-```
-
-However, when improving SPIRV-Cross there are of course legitimate cases where reference output should change.
-In these cases, run:
-
-```
-./update_test_shaders.sh # SPIRV_CROSS_PATH also works here.
-```
-
-to update the reference files and include these changes as part of the pull request.
-Always make sure you are running the correct version of glslangValidator as well as SPIRV-Tools when updating reference files.
-See `checkout_glslang_spirv_tools.sh` which revisions are currently expected. The revisions change regularly.
-
-In short, the master branch should always be able to run `./test_shaders.py shaders` and friends without failure.
-SPIRV-Cross uses Travis CI to test all pull requests, so it is not strictly needed to perform testing yourself if you have problems running it locally.
-A pull request which does not pass testing on Travis will not be accepted however.
-
-When adding support for new features to SPIRV-Cross, a new shader and reference file should be added which covers usage of the new shader features in question.
-Travis CI runs the test suite with the CMake, by running `ctest`. This is a more straight-forward alternative to `./test_shaders.sh`.
-
-### Licensing
-
-Contributors of new files should add a copyright header at the top of every new source code file with their copyright
-along with the Apache 2.0 licensing stub.
-
-### Formatting
-
-SPIRV-Cross uses `clang-format` to automatically format code.
-Please use `clang-format` with the style sheet found in `.clang-format` to automatically format code before submitting a pull request.
-
-To make things easy, the `format_all.sh` script can be used to format all
-source files in the library. In this directory, run the following from the
-command line:
-
- ./format_all.sh
-
-## Regression testing
-
-In shaders/ a collection of shaders are maintained for purposes of regression testing.
-The current reference output is contained in reference/.
-`./test_shaders.py shaders` can be run to perform regression testing.
-
-See `./test_shaders.py --help` for more.
-
-### Metal backend
-
-To test the roundtrip path GLSL -> SPIR-V -> MSL, `--msl` can be added, e.g. `./test_shaders.py --msl shaders-msl`.
-
-### HLSL backend
-
-To test the roundtrip path GLSL -> SPIR-V -> HLSL, `--hlsl` can be added, e.g. `./test_shaders.py --hlsl shaders-hlsl`.
-
-### Updating regression tests
-
-When legitimate changes are found, use `--update` flag to update regression files.
-Otherwise, `./test_shaders.py` will fail with error code.
-
-### Mali Offline Compiler cycle counts
-
-To obtain a CSV of static shader cycle counts before and after going through spirv-cross, add
-`--malisc` flag to `./test_shaders`. This requires the Mali Offline Compiler to be installed in PATH.
-
diff --git a/3rdparty/spirv-cross/appveyor.yml b/3rdparty/spirv-cross/appveyor.yml
deleted file mode 100644
index 2f427f180..000000000
--- a/3rdparty/spirv-cross/appveyor.yml
+++ /dev/null
@@ -1,31 +0,0 @@
-
-environment:
- matrix:
- - GENERATOR: "Visual Studio 12 2013 Win64"
- CONFIG: Debug
-
- - GENERATOR: "Visual Studio 12 2013 Win64"
- CONFIG: Release
-
- - GENERATOR: "Visual Studio 14 2015 Win64"
- CONFIG: Debug
-
- - GENERATOR: "Visual Studio 14 2015 Win64"
- CONFIG: Release
-
- - GENERATOR: "Visual Studio 12 2013"
- CONFIG: Debug
-
- - GENERATOR: "Visual Studio 12 2013"
- CONFIG: Release
-
- - GENERATOR: "Visual Studio 14 2015"
- CONFIG: Debug
-
- - GENERATOR: "Visual Studio 14 2015"
- CONFIG: Release
-
-build_script:
- - git submodule update --init
- - cmake "-G%GENERATOR%" -H. -B_builds
- - cmake --build _builds --config "%CONFIG%"
diff --git a/3rdparty/spirv-cross/build_glslang_spirv_tools.sh b/3rdparty/spirv-cross/build_glslang_spirv_tools.sh
deleted file mode 100755
index fb4f7de21..000000000
--- a/3rdparty/spirv-cross/build_glslang_spirv_tools.sh
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/bin/bash
-
-PROFILE=Release
-
-if [ ! -z $1 ]; then
- PROFILE=$1
-fi
-
-if [ ! -z $2 ]; then
- NPROC="--parallel $2"
-fi
-
-echo "Building glslang."
-mkdir -p external/glslang-build
-cd external/glslang-build
-cmake ../glslang -DCMAKE_BUILD_TYPE=$PROFILE -DCMAKE_INSTALL_PREFIX=output
-cmake --build . --config $PROFILE --target install ${NPROC}
-cd ../..
-
-echo "Building SPIRV-Tools."
-mkdir -p external/spirv-tools-build
-cd external/spirv-tools-build
-cmake ../spirv-tools -DCMAKE_BUILD_TYPE=$PROFILE -DSPIRV_WERROR=OFF -DCMAKE_INSTALL_PREFIX=output
-cmake --build . --config $PROFILE --target install ${NPROC}
-cd ../..
-
diff --git a/3rdparty/spirv-cross/checkout_glslang_spirv_tools.sh b/3rdparty/spirv-cross/checkout_glslang_spirv_tools.sh
deleted file mode 100755
index 7ad03664c..000000000
--- a/3rdparty/spirv-cross/checkout_glslang_spirv_tools.sh
+++ /dev/null
@@ -1,55 +0,0 @@
-#!/bin/bash
-
-GLSLANG_REV=a4af7676feb011d61b1dfa8915bd41d9c5aaf22a
-SPIRV_TOOLS_REV=e82a428605f6ce0a07337b36f8ba3935c9f165ac
-SPIRV_HEADERS_REV=204cd131c42b90d129073719f2766293ce35c081
-
-if [ -z $PROTOCOL ]; then
- PROTOCOL=git
-fi
-
-echo "Using protocol \"$PROTOCOL\" for checking out repositories. If this is problematic, try PROTOCOL=https $0."
-
-if [ -d external/glslang ]; then
- echo "Updating glslang to revision $GLSLANG_REV."
- cd external/glslang
- git fetch origin
- git checkout $GLSLANG_REV
-else
- echo "Cloning glslang revision $GLSLANG_REV."
- mkdir -p external
- cd external
- git clone $PROTOCOL://github.com/KhronosGroup/glslang.git
- cd glslang
- git checkout $GLSLANG_REV
-fi
-cd ../..
-
-if [ -d external/spirv-tools ]; then
- echo "Updating SPIRV-Tools to revision $SPIRV_TOOLS_REV."
- cd external/spirv-tools
- git fetch origin
- git checkout $SPIRV_TOOLS_REV
-else
- echo "Cloning SPIRV-Tools revision $SPIRV_TOOLS_REV."
- mkdir -p external
- cd external
- git clone $PROTOCOL://github.com/KhronosGroup/SPIRV-Tools.git spirv-tools
- cd spirv-tools
- git checkout $SPIRV_TOOLS_REV
-fi
-
-if [ -d external/spirv-headers ]; then
- cd external/spirv-headers
- git pull origin master
- git checkout $SPIRV_HEADERS_REV
- cd ../..
-else
- git clone $PROTOCOL://github.com/KhronosGroup/SPIRV-Headers.git external/spirv-headers
- cd external/spirv-headers
- git checkout $SPIRV_HEADERS_REV
- cd ../..
-fi
-
-cd ../..
-
diff --git a/3rdparty/spirv-cross/cmake/gitversion.in.h b/3rdparty/spirv-cross/cmake/gitversion.in.h
deleted file mode 100644
index 7135e283b..000000000
--- a/3rdparty/spirv-cross/cmake/gitversion.in.h
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef SPIRV_CROSS_GIT_VERSION_H_
-#define SPIRV_CROSS_GIT_VERSION_H_
-
-#define SPIRV_CROSS_GIT_REVISION "Git commit: @spirv-cross-build-version@ Timestamp: @spirv-cross-timestamp@"
-
-#endif
diff --git a/3rdparty/spirv-cross/format_all.sh b/3rdparty/spirv-cross/format_all.sh
deleted file mode 100755
index fcfffc57f..000000000
--- a/3rdparty/spirv-cross/format_all.sh
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/bin/bash
-
-#for file in spirv_*.{cpp,hpp} include/spirv_cross/*.{hpp,h} samples/cpp/*.cpp main.cpp
-for file in spirv_*.{cpp,hpp} main.cpp
-do
- echo "Formatting file: $file ..."
- clang-format -style=file -i $file
-done
diff --git a/3rdparty/spirv-cross/gn/BUILD.gn b/3rdparty/spirv-cross/gn/BUILD.gn
deleted file mode 100644
index 8458c1a70..000000000
--- a/3rdparty/spirv-cross/gn/BUILD.gn
+++ /dev/null
@@ -1,63 +0,0 @@
-# Copyright (C) 2019 Google, Inc.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-
-config("spirv_cross_public") {
- include_dirs = [ ".." ]
-
- defines = [ "SPIRV_CROSS_EXCEPTIONS_TO_ASSERTIONS" ]
-}
-
-source_set("spirv_cross_sources") {
- public_configs = [ ":spirv_cross_public" ]
-
- sources = [
- "../GLSL.std.450.h",
- "../spirv.hpp",
- "../spirv_cfg.cpp",
- "../spirv_cfg.hpp",
- "../spirv_common.hpp",
- "../spirv_cross.cpp",
- "../spirv_cross.hpp",
- "../spirv_cross_containers.hpp",
- "../spirv_cross_error_handling.hpp",
- "../spirv_cross_parsed_ir.cpp",
- "../spirv_cross_parsed_ir.hpp",
- "../spirv_cross_util.cpp",
- "../spirv_cross_util.hpp",
- "../spirv_glsl.cpp",
- "../spirv_glsl.hpp",
- "../spirv_msl.cpp",
- "../spirv_msl.hpp",
- "../spirv_parser.cpp",
- "../spirv_parser.hpp",
- "../spirv_reflect.cpp",
- "../spirv_reflect.hpp",
- ]
-
- cflags = [ "-fno-exceptions" ]
-
- if (is_clang) {
- cflags_cc = [
- "-Wno-extra-semi",
- "-Wno-ignored-qualifiers",
- "-Wno-implicit-fallthrough",
- "-Wno-inconsistent-missing-override",
- "-Wno-missing-field-initializers",
- "-Wno-newline-eof",
- "-Wno-sign-compare",
- "-Wno-unused-variable",
- ]
- }
-}
diff --git a/3rdparty/spirv-cross/pkg-config/spirv-cross-c-shared.pc.in b/3rdparty/spirv-cross/pkg-config/spirv-cross-c-shared.pc.in
deleted file mode 100644
index 823e4ce48..000000000
--- a/3rdparty/spirv-cross/pkg-config/spirv-cross-c-shared.pc.in
+++ /dev/null
@@ -1,13 +0,0 @@
-prefix=@CMAKE_INSTALL_PREFIX@
-exec_prefix=@CMAKE_INSTALL_PREFIX@
-libdir=@SPIRV_CROSS_INSTALL_LIB_DIR@
-sharedlibdir=@SPIRV_CROSS_INSTALL_LIB_DIR@
-includedir=@SPIRV_CROSS_INSTALL_INC_DIR@
-
-Name: spirv-cross-c-shared
-Description: C API for SPIRV-Cross
-Version: @SPIRV_CROSS_VERSION@
-
-Requires:
-Libs: -L${libdir} -L${sharedlibdir} -lspirv-cross-c-shared
-Cflags: -I${includedir}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/comp/access-chain-invalidate.asm.comp b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/comp/access-chain-invalidate.asm.comp
deleted file mode 100644
index b8265fc99..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/comp/access-chain-invalidate.asm.comp
+++ /dev/null
@@ -1,19 +0,0 @@
-RWByteAddressBuffer _4 : register(u0);
-
-void comp_main()
-{
- uint _21 = _4.Load(_4.Load(0) * 4 + 4);
- for (uint _23 = 0u; _23 < 64u; )
- {
- _4.Store(_23 * 4 + 4, 0u);
- _23++;
- continue;
- }
- _4.Store(_4.Load(0) * 4 + 4, _21);
-}
-
-[numthreads(1, 1, 1)]
-void main()
-{
- comp_main();
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/comp/atomic-decrement.asm.comp b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/comp/atomic-decrement.asm.comp
deleted file mode 100644
index c534ceaba..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/comp/atomic-decrement.asm.comp
+++ /dev/null
@@ -1,22 +0,0 @@
-RWByteAddressBuffer u0_counter : register(u1);
-RWBuffer u0 : register(u0);
-
-static uint3 gl_GlobalInvocationID;
-struct SPIRV_Cross_Input
-{
- uint3 gl_GlobalInvocationID : SV_DispatchThreadID;
-};
-
-void comp_main()
-{
- uint _29;
- u0_counter.InterlockedAdd(0, -1, _29);
- u0[asint(asfloat(_29))] = uint(int(gl_GlobalInvocationID.x)).x;
-}
-
-[numthreads(4, 1, 1)]
-void main(SPIRV_Cross_Input stage_input)
-{
- gl_GlobalInvocationID = stage_input.gl_GlobalInvocationID;
- comp_main();
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/comp/atomic-increment.asm.comp b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/comp/atomic-increment.asm.comp
deleted file mode 100644
index 5e7d282d6..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/comp/atomic-increment.asm.comp
+++ /dev/null
@@ -1,22 +0,0 @@
-RWByteAddressBuffer u0_counter : register(u1);
-RWBuffer u0 : register(u0);
-
-static uint3 gl_GlobalInvocationID;
-struct SPIRV_Cross_Input
-{
- uint3 gl_GlobalInvocationID : SV_DispatchThreadID;
-};
-
-void comp_main()
-{
- uint _29;
- u0_counter.InterlockedAdd(0, 1, _29);
- u0[asint(asfloat(_29))] = uint(int(gl_GlobalInvocationID.x)).x;
-}
-
-[numthreads(4, 1, 1)]
-void main(SPIRV_Cross_Input stage_input)
-{
- gl_GlobalInvocationID = stage_input.gl_GlobalInvocationID;
- comp_main();
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/comp/bitcast_icmp.asm.comp b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/comp/bitcast_icmp.asm.comp
deleted file mode 100644
index 35143a486..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/comp/bitcast_icmp.asm.comp
+++ /dev/null
@@ -1,28 +0,0 @@
-RWByteAddressBuffer _5 : register(u0);
-RWByteAddressBuffer _6 : register(u1);
-
-void comp_main()
-{
- bool4 _31 = bool4(int(_5.Load4(16).x) < int4(_5.Load4(0)).x, int(_5.Load4(16).y) < int4(_5.Load4(0)).y, int(_5.Load4(16).z) < int4(_5.Load4(0)).z, int(_5.Load4(16).w) < int4(_5.Load4(0)).w);
- bool4 _32 = bool4(int(_5.Load4(16).x) <= int4(_5.Load4(0)).x, int(_5.Load4(16).y) <= int4(_5.Load4(0)).y, int(_5.Load4(16).z) <= int4(_5.Load4(0)).z, int(_5.Load4(16).w) <= int4(_5.Load4(0)).w);
- bool4 _33 = bool4(_5.Load4(16).x < uint(int4(_5.Load4(0)).x), _5.Load4(16).y < uint(int4(_5.Load4(0)).y), _5.Load4(16).z < uint(int4(_5.Load4(0)).z), _5.Load4(16).w < uint(int4(_5.Load4(0)).w));
- bool4 _34 = bool4(_5.Load4(16).x <= uint(int4(_5.Load4(0)).x), _5.Load4(16).y <= uint(int4(_5.Load4(0)).y), _5.Load4(16).z <= uint(int4(_5.Load4(0)).z), _5.Load4(16).w <= uint(int4(_5.Load4(0)).w));
- bool4 _35 = bool4(int(_5.Load4(16).x) > int4(_5.Load4(0)).x, int(_5.Load4(16).y) > int4(_5.Load4(0)).y, int(_5.Load4(16).z) > int4(_5.Load4(0)).z, int(_5.Load4(16).w) > int4(_5.Load4(0)).w);
- bool4 _36 = bool4(int(_5.Load4(16).x) >= int4(_5.Load4(0)).x, int(_5.Load4(16).y) >= int4(_5.Load4(0)).y, int(_5.Load4(16).z) >= int4(_5.Load4(0)).z, int(_5.Load4(16).w) >= int4(_5.Load4(0)).w);
- bool4 _37 = bool4(_5.Load4(16).x > uint(int4(_5.Load4(0)).x), _5.Load4(16).y > uint(int4(_5.Load4(0)).y), _5.Load4(16).z > uint(int4(_5.Load4(0)).z), _5.Load4(16).w > uint(int4(_5.Load4(0)).w));
- bool4 _38 = bool4(_5.Load4(16).x >= uint(int4(_5.Load4(0)).x), _5.Load4(16).y >= uint(int4(_5.Load4(0)).y), _5.Load4(16).z >= uint(int4(_5.Load4(0)).z), _5.Load4(16).w >= uint(int4(_5.Load4(0)).w));
- _6.Store4(0, uint4(_31.x ? uint4(1u, 1u, 1u, 1u).x : uint4(0u, 0u, 0u, 0u).x, _31.y ? uint4(1u, 1u, 1u, 1u).y : uint4(0u, 0u, 0u, 0u).y, _31.z ? uint4(1u, 1u, 1u, 1u).z : uint4(0u, 0u, 0u, 0u).z, _31.w ? uint4(1u, 1u, 1u, 1u).w : uint4(0u, 0u, 0u, 0u).w));
- _6.Store4(0, uint4(_32.x ? uint4(1u, 1u, 1u, 1u).x : uint4(0u, 0u, 0u, 0u).x, _32.y ? uint4(1u, 1u, 1u, 1u).y : uint4(0u, 0u, 0u, 0u).y, _32.z ? uint4(1u, 1u, 1u, 1u).z : uint4(0u, 0u, 0u, 0u).z, _32.w ? uint4(1u, 1u, 1u, 1u).w : uint4(0u, 0u, 0u, 0u).w));
- _6.Store4(0, uint4(_33.x ? uint4(1u, 1u, 1u, 1u).x : uint4(0u, 0u, 0u, 0u).x, _33.y ? uint4(1u, 1u, 1u, 1u).y : uint4(0u, 0u, 0u, 0u).y, _33.z ? uint4(1u, 1u, 1u, 1u).z : uint4(0u, 0u, 0u, 0u).z, _33.w ? uint4(1u, 1u, 1u, 1u).w : uint4(0u, 0u, 0u, 0u).w));
- _6.Store4(0, uint4(_34.x ? uint4(1u, 1u, 1u, 1u).x : uint4(0u, 0u, 0u, 0u).x, _34.y ? uint4(1u, 1u, 1u, 1u).y : uint4(0u, 0u, 0u, 0u).y, _34.z ? uint4(1u, 1u, 1u, 1u).z : uint4(0u, 0u, 0u, 0u).z, _34.w ? uint4(1u, 1u, 1u, 1u).w : uint4(0u, 0u, 0u, 0u).w));
- _6.Store4(0, uint4(_35.x ? uint4(1u, 1u, 1u, 1u).x : uint4(0u, 0u, 0u, 0u).x, _35.y ? uint4(1u, 1u, 1u, 1u).y : uint4(0u, 0u, 0u, 0u).y, _35.z ? uint4(1u, 1u, 1u, 1u).z : uint4(0u, 0u, 0u, 0u).z, _35.w ? uint4(1u, 1u, 1u, 1u).w : uint4(0u, 0u, 0u, 0u).w));
- _6.Store4(0, uint4(_36.x ? uint4(1u, 1u, 1u, 1u).x : uint4(0u, 0u, 0u, 0u).x, _36.y ? uint4(1u, 1u, 1u, 1u).y : uint4(0u, 0u, 0u, 0u).y, _36.z ? uint4(1u, 1u, 1u, 1u).z : uint4(0u, 0u, 0u, 0u).z, _36.w ? uint4(1u, 1u, 1u, 1u).w : uint4(0u, 0u, 0u, 0u).w));
- _6.Store4(0, uint4(_37.x ? uint4(1u, 1u, 1u, 1u).x : uint4(0u, 0u, 0u, 0u).x, _37.y ? uint4(1u, 1u, 1u, 1u).y : uint4(0u, 0u, 0u, 0u).y, _37.z ? uint4(1u, 1u, 1u, 1u).z : uint4(0u, 0u, 0u, 0u).z, _37.w ? uint4(1u, 1u, 1u, 1u).w : uint4(0u, 0u, 0u, 0u).w));
- _6.Store4(0, uint4(_38.x ? uint4(1u, 1u, 1u, 1u).x : uint4(0u, 0u, 0u, 0u).x, _38.y ? uint4(1u, 1u, 1u, 1u).y : uint4(0u, 0u, 0u, 0u).y, _38.z ? uint4(1u, 1u, 1u, 1u).z : uint4(0u, 0u, 0u, 0u).z, _38.w ? uint4(1u, 1u, 1u, 1u).w : uint4(0u, 0u, 0u, 0u).w));
-}
-
-[numthreads(1, 1, 1)]
-void main()
-{
- comp_main();
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/comp/block-name-alias-global.asm.comp b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/comp/block-name-alias-global.asm.comp
deleted file mode 100644
index a12274c01..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/comp/block-name-alias-global.asm.comp
+++ /dev/null
@@ -1,45 +0,0 @@
-struct A
-{
- int a;
- int b;
-};
-
-struct A_1
-{
- int a;
- int b;
-};
-
-RWByteAddressBuffer C1 : register(u1);
-cbuffer C2 : register(b2)
-{
- A_1 C2_1_Data[1024] : packoffset(c0);
-};
-
-RWByteAddressBuffer C3 : register(u0);
-cbuffer B : register(b3)
-{
- A_1 C4_Data[1024] : packoffset(c0);
-};
-
-
-static uint3 gl_GlobalInvocationID;
-struct SPIRV_Cross_Input
-{
- uint3 gl_GlobalInvocationID : SV_DispatchThreadID;
-};
-
-void comp_main()
-{
- C1.Store(gl_GlobalInvocationID.x * 8 + 0, uint(C2_1_Data[gl_GlobalInvocationID.x].a));
- C1.Store(gl_GlobalInvocationID.x * 8 + 4, uint(C2_1_Data[gl_GlobalInvocationID.x].b));
- C3.Store(gl_GlobalInvocationID.x * 8 + 0, uint(C4_Data[gl_GlobalInvocationID.x].a));
- C3.Store(gl_GlobalInvocationID.x * 8 + 4, uint(C4_Data[gl_GlobalInvocationID.x].b));
-}
-
-[numthreads(1, 1, 1)]
-void main(SPIRV_Cross_Input stage_input)
-{
- gl_GlobalInvocationID = stage_input.gl_GlobalInvocationID;
- comp_main();
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/comp/control-flow-hints.asm.comp b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/comp/control-flow-hints.asm.comp
deleted file mode 100644
index 142ef5efa..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/comp/control-flow-hints.asm.comp
+++ /dev/null
@@ -1,32 +0,0 @@
-RWByteAddressBuffer bar : register(u0);
-RWByteAddressBuffer foo : register(u1);
-
-void comp_main()
-{
- [unroll]
- for (int _135 = 0; _135 < 16; )
- {
- bar.Store4(_135 * 16 + 0, asuint(asfloat(foo.Load4(_135 * 16 + 0))));
- _135++;
- continue;
- }
- [loop]
- for (int _136 = 0; _136 < 16; )
- {
- bar.Store4((15 - _136) * 16 + 0, asuint(asfloat(foo.Load4(_136 * 16 + 0))));
- _136++;
- continue;
- }
- [branch]
- if (asfloat(bar.Load(160)) > 10.0f)
- {
- foo.Store4(320, asuint(5.0f.xxxx));
- }
- foo.Store4(320, asuint(20.0f.xxxx));
-}
-
-[numthreads(1, 1, 1)]
-void main()
-{
- comp_main();
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/comp/global-parameter-name-alias.asm.comp b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/comp/global-parameter-name-alias.asm.comp
deleted file mode 100644
index d8bce8d54..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/comp/global-parameter-name-alias.asm.comp
+++ /dev/null
@@ -1,9 +0,0 @@
-void comp_main()
-{
-}
-
-[numthreads(1, 1, 1)]
-void main()
-{
- comp_main();
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/comp/nmin-max-clamp.asm.comp b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/comp/nmin-max-clamp.asm.comp
deleted file mode 100644
index 7acd67d0b..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/comp/nmin-max-clamp.asm.comp
+++ /dev/null
@@ -1,87 +0,0 @@
-RWByteAddressBuffer _4 : register(u0);
-
-void comp_main()
-{
- _4.Store(0, asuint(isnan(asfloat(_4.Load(96))) ? asfloat(_4.Load(48)) : (isnan(asfloat(_4.Load(48))) ? asfloat(_4.Load(96)) : min(asfloat(_4.Load(48)), asfloat(_4.Load(96))))));
- bool2 _146 = isnan(asfloat(_4.Load2(56)));
- bool2 _147 = isnan(asfloat(_4.Load2(104)));
- float2 _148 = min(asfloat(_4.Load2(56)), asfloat(_4.Load2(104)));
- float2 _149 = float2(_146.x ? asfloat(_4.Load2(104)).x : _148.x, _146.y ? asfloat(_4.Load2(104)).y : _148.y);
- _4.Store2(8, asuint(float2(_147.x ? asfloat(_4.Load2(56)).x : _149.x, _147.y ? asfloat(_4.Load2(56)).y : _149.y)));
- bool3 _151 = isnan(asfloat(_4.Load3(64)));
- bool3 _152 = isnan(asfloat(_4.Load3(112)));
- float3 _153 = min(asfloat(_4.Load3(64)), asfloat(_4.Load3(112)));
- float3 _154 = float3(_151.x ? asfloat(_4.Load3(112)).x : _153.x, _151.y ? asfloat(_4.Load3(112)).y : _153.y, _151.z ? asfloat(_4.Load3(112)).z : _153.z);
- _4.Store3(16, asuint(float3(_152.x ? asfloat(_4.Load3(64)).x : _154.x, _152.y ? asfloat(_4.Load3(64)).y : _154.y, _152.z ? asfloat(_4.Load3(64)).z : _154.z)));
- bool4 _156 = isnan(asfloat(_4.Load4(80)));
- bool4 _157 = isnan(asfloat(_4.Load4(128)));
- float4 _158 = min(asfloat(_4.Load4(80)), asfloat(_4.Load4(128)));
- float4 _159 = float4(_156.x ? asfloat(_4.Load4(128)).x : _158.x, _156.y ? asfloat(_4.Load4(128)).y : _158.y, _156.z ? asfloat(_4.Load4(128)).z : _158.z, _156.w ? asfloat(_4.Load4(128)).w : _158.w);
- _4.Store4(32, asuint(float4(_157.x ? asfloat(_4.Load4(80)).x : _159.x, _157.y ? asfloat(_4.Load4(80)).y : _159.y, _157.z ? asfloat(_4.Load4(80)).z : _159.z, _157.w ? asfloat(_4.Load4(80)).w : _159.w)));
- _4.Store(0, asuint(isnan(asfloat(_4.Load(96))) ? asfloat(_4.Load(48)) : (isnan(asfloat(_4.Load(48))) ? asfloat(_4.Load(96)) : max(asfloat(_4.Load(48)), asfloat(_4.Load(96))))));
- bool2 _166 = isnan(asfloat(_4.Load2(56)));
- bool2 _167 = isnan(asfloat(_4.Load2(104)));
- float2 _168 = max(asfloat(_4.Load2(56)), asfloat(_4.Load2(104)));
- float2 _169 = float2(_166.x ? asfloat(_4.Load2(104)).x : _168.x, _166.y ? asfloat(_4.Load2(104)).y : _168.y);
- _4.Store2(8, asuint(float2(_167.x ? asfloat(_4.Load2(56)).x : _169.x, _167.y ? asfloat(_4.Load2(56)).y : _169.y)));
- bool3 _171 = isnan(asfloat(_4.Load3(64)));
- bool3 _172 = isnan(asfloat(_4.Load3(112)));
- float3 _173 = max(asfloat(_4.Load3(64)), asfloat(_4.Load3(112)));
- float3 _174 = float3(_171.x ? asfloat(_4.Load3(112)).x : _173.x, _171.y ? asfloat(_4.Load3(112)).y : _173.y, _171.z ? asfloat(_4.Load3(112)).z : _173.z);
- _4.Store3(16, asuint(float3(_172.x ? asfloat(_4.Load3(64)).x : _174.x, _172.y ? asfloat(_4.Load3(64)).y : _174.y, _172.z ? asfloat(_4.Load3(64)).z : _174.z)));
- bool4 _176 = isnan(asfloat(_4.Load4(80)));
- bool4 _177 = isnan(asfloat(_4.Load4(128)));
- float4 _178 = max(asfloat(_4.Load4(80)), asfloat(_4.Load4(128)));
- float4 _179 = float4(_176.x ? asfloat(_4.Load4(128)).x : _178.x, _176.y ? asfloat(_4.Load4(128)).y : _178.y, _176.z ? asfloat(_4.Load4(128)).z : _178.z, _176.w ? asfloat(_4.Load4(128)).w : _178.w);
- _4.Store4(32, asuint(float4(_177.x ? asfloat(_4.Load4(80)).x : _179.x, _177.y ? asfloat(_4.Load4(80)).y : _179.y, _177.z ? asfloat(_4.Load4(80)).z : _179.z, _177.w ? asfloat(_4.Load4(80)).w : _179.w)));
- float _180 = isnan(asfloat(_4.Load(48))) ? asfloat(_4.Load(0)) : (isnan(asfloat(_4.Load(0))) ? asfloat(_4.Load(48)) : max(asfloat(_4.Load(0)), asfloat(_4.Load(48))));
- _4.Store(0, asuint(isnan(asfloat(_4.Load(96))) ? _180 : (isnan(_180) ? asfloat(_4.Load(96)) : min(_180, asfloat(_4.Load(96))))));
- bool2 _193 = isnan(asfloat(_4.Load2(8)));
- bool2 _194 = isnan(asfloat(_4.Load2(56)));
- float2 _195 = max(asfloat(_4.Load2(8)), asfloat(_4.Load2(56)));
- float2 _196 = float2(_193.x ? asfloat(_4.Load2(56)).x : _195.x, _193.y ? asfloat(_4.Load2(56)).y : _195.y);
- float2 _191 = float2(_194.x ? asfloat(_4.Load2(8)).x : _196.x, _194.y ? asfloat(_4.Load2(8)).y : _196.y);
- bool2 _198 = isnan(_191);
- bool2 _199 = isnan(asfloat(_4.Load2(104)));
- float2 _200 = min(_191, asfloat(_4.Load2(104)));
- float2 _201 = float2(_198.x ? asfloat(_4.Load2(104)).x : _200.x, _198.y ? asfloat(_4.Load2(104)).y : _200.y);
- _4.Store2(8, asuint(float2(_199.x ? _191.x : _201.x, _199.y ? _191.y : _201.y)));
- bool3 _204 = isnan(asfloat(_4.Load3(16)));
- bool3 _205 = isnan(asfloat(_4.Load3(64)));
- float3 _206 = max(asfloat(_4.Load3(16)), asfloat(_4.Load3(64)));
- float3 _207 = float3(_204.x ? asfloat(_4.Load3(64)).x : _206.x, _204.y ? asfloat(_4.Load3(64)).y : _206.y, _204.z ? asfloat(_4.Load3(64)).z : _206.z);
- float3 _202 = float3(_205.x ? asfloat(_4.Load3(16)).x : _207.x, _205.y ? asfloat(_4.Load3(16)).y : _207.y, _205.z ? asfloat(_4.Load3(16)).z : _207.z);
- bool3 _209 = isnan(_202);
- bool3 _210 = isnan(asfloat(_4.Load3(112)));
- float3 _211 = min(_202, asfloat(_4.Load3(112)));
- float3 _212 = float3(_209.x ? asfloat(_4.Load3(112)).x : _211.x, _209.y ? asfloat(_4.Load3(112)).y : _211.y, _209.z ? asfloat(_4.Load3(112)).z : _211.z);
- _4.Store3(16, asuint(float3(_210.x ? _202.x : _212.x, _210.y ? _202.y : _212.y, _210.z ? _202.z : _212.z)));
- bool4 _215 = isnan(asfloat(_4.Load4(32)));
- bool4 _216 = isnan(asfloat(_4.Load4(80)));
- float4 _217 = max(asfloat(_4.Load4(32)), asfloat(_4.Load4(80)));
- float4 _218 = float4(_215.x ? asfloat(_4.Load4(80)).x : _217.x, _215.y ? asfloat(_4.Load4(80)).y : _217.y, _215.z ? asfloat(_4.Load4(80)).z : _217.z, _215.w ? asfloat(_4.Load4(80)).w : _217.w);
- float4 _213 = float4(_216.x ? asfloat(_4.Load4(32)).x : _218.x, _216.y ? asfloat(_4.Load4(32)).y : _218.y, _216.z ? asfloat(_4.Load4(32)).z : _218.z, _216.w ? asfloat(_4.Load4(32)).w : _218.w);
- bool4 _220 = isnan(_213);
- bool4 _221 = isnan(asfloat(_4.Load4(128)));
- float4 _222 = min(_213, asfloat(_4.Load4(128)));
- float4 _223 = float4(_220.x ? asfloat(_4.Load4(128)).x : _222.x, _220.y ? asfloat(_4.Load4(128)).y : _222.y, _220.z ? asfloat(_4.Load4(128)).z : _222.z, _220.w ? asfloat(_4.Load4(128)).w : _222.w);
- _4.Store4(32, asuint(float4(_221.x ? _213.x : _223.x, _221.y ? _213.y : _223.y, _221.z ? _213.z : _223.z, _221.w ? _213.w : _223.w)));
- for (int _139 = 0; _139 < 2; )
- {
- bool2 _225 = isnan(asfloat(_4.Load2(56)));
- bool2 _226 = isnan(asfloat(_4.Load2(104)));
- float2 _227 = min(asfloat(_4.Load2(56)), asfloat(_4.Load2(104)));
- float2 _228 = float2(_225.x ? asfloat(_4.Load2(104)).x : _227.x, _225.y ? asfloat(_4.Load2(104)).y : _227.y);
- _4.Store2(8, asuint(float2(_226.x ? asfloat(_4.Load2(56)).x : _228.x, _226.y ? asfloat(_4.Load2(56)).y : _228.y)));
- float _229 = isnan(asfloat(_4.Load(56))) ? asfloat(_4.Load(0)) : (isnan(asfloat(_4.Load(0))) ? asfloat(_4.Load(56)) : max(asfloat(_4.Load(0)), asfloat(_4.Load(56))));
- _4.Store(0, asuint(isnan(asfloat(_4.Load(60))) ? _229 : (isnan(_229) ? asfloat(_4.Load(60)) : min(_229, asfloat(_4.Load(60))))));
- _139++;
- continue;
- }
-}
-
-[numthreads(1, 1, 1)]
-void main()
-{
- comp_main();
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/frag/cbuffer-stripped.asm.frag b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/frag/cbuffer-stripped.asm.frag
deleted file mode 100644
index b410010d2..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/frag/cbuffer-stripped.asm.frag
+++ /dev/null
@@ -1,26 +0,0 @@
-cbuffer _4_5 : register(b0)
-{
- column_major float2x4 _5_m0 : packoffset(c0);
- float4 _5_m1 : packoffset(c4);
-};
-
-
-static float2 _3;
-
-struct SPIRV_Cross_Output
-{
- float2 _3 : SV_Target0;
-};
-
-void frag_main()
-{
- _3 = mul(_5_m0, _5_m1);
-}
-
-SPIRV_Cross_Output main()
-{
- frag_main();
- SPIRV_Cross_Output stage_output;
- stage_output._3 = _3;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/frag/combined-sampler-reuse.asm.frag b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/frag/combined-sampler-reuse.asm.frag
deleted file mode 100644
index 3951fd511..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/frag/combined-sampler-reuse.asm.frag
+++ /dev/null
@@ -1,30 +0,0 @@
-Texture2D uTex : register(t1);
-SamplerState uSampler : register(s0);
-
-static float4 FragColor;
-static float2 vUV;
-
-struct SPIRV_Cross_Input
-{
- float2 vUV : TEXCOORD0;
-};
-
-struct SPIRV_Cross_Output
-{
- float4 FragColor : SV_Target0;
-};
-
-void frag_main()
-{
- FragColor = uTex.Sample(uSampler, vUV);
- FragColor += uTex.Sample(uSampler, vUV, int2(1, 1));
-}
-
-SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input)
-{
- vUV = stage_input.vUV;
- frag_main();
- SPIRV_Cross_Output stage_output;
- stage_output.FragColor = FragColor;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/frag/empty-struct.asm.frag b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/frag/empty-struct.asm.frag
deleted file mode 100644
index 3b50282fe..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/frag/empty-struct.asm.frag
+++ /dev/null
@@ -1,8 +0,0 @@
-void frag_main()
-{
-}
-
-void main()
-{
- frag_main();
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/frag/frem.asm.frag b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/frag/frem.asm.frag
deleted file mode 100644
index 67998c56a..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/frag/frem.asm.frag
+++ /dev/null
@@ -1,29 +0,0 @@
-static float4 FragColor;
-static float4 vA;
-static float4 vB;
-
-struct SPIRV_Cross_Input
-{
- float4 vA : TEXCOORD0;
- float4 vB : TEXCOORD1;
-};
-
-struct SPIRV_Cross_Output
-{
- float4 FragColor : SV_Target0;
-};
-
-void frag_main()
-{
- FragColor = fmod(vA, vB);
-}
-
-SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input)
-{
- vA = stage_input.vA;
- vB = stage_input.vB;
- frag_main();
- SPIRV_Cross_Output stage_output;
- stage_output.FragColor = FragColor;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/frag/function-overload-alias.asm.frag b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/frag/function-overload-alias.asm.frag
deleted file mode 100644
index 93f8414e9..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/frag/function-overload-alias.asm.frag
+++ /dev/null
@@ -1,19 +0,0 @@
-static float4 FragColor;
-
-struct SPIRV_Cross_Output
-{
- float4 FragColor : SV_Target0;
-};
-
-void frag_main()
-{
- FragColor = 10.0f.xxxx;
-}
-
-SPIRV_Cross_Output main()
-{
- frag_main();
- SPIRV_Cross_Output stage_output;
- stage_output.FragColor = FragColor;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/frag/image-extract-reuse.asm.frag b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/frag/image-extract-reuse.asm.frag
deleted file mode 100644
index ed53720d9..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/frag/image-extract-reuse.asm.frag
+++ /dev/null
@@ -1,31 +0,0 @@
-Texture2D uTexture : register(t0);
-SamplerState _uTexture_sampler : register(s0);
-
-static int2 Size;
-
-struct SPIRV_Cross_Output
-{
- int2 Size : SV_Target0;
-};
-
-uint2 SPIRV_Cross_textureSize(Texture2D Tex, uint Level, out uint Param)
-{
- uint2 ret;
- Tex.GetDimensions(Level, ret.x, ret.y, Param);
- return ret;
-}
-
-void frag_main()
-{
- uint _19_dummy_parameter;
- uint _20_dummy_parameter;
- Size = int2(SPIRV_Cross_textureSize(uTexture, uint(0), _19_dummy_parameter)) + int2(SPIRV_Cross_textureSize(uTexture, uint(1), _20_dummy_parameter));
-}
-
-SPIRV_Cross_Output main()
-{
- frag_main();
- SPIRV_Cross_Output stage_output;
- stage_output.Size = Size;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/frag/implicit-read-dep-phi.asm.frag b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/frag/implicit-read-dep-phi.asm.frag
deleted file mode 100644
index 67f14fcca..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/frag/implicit-read-dep-phi.asm.frag
+++ /dev/null
@@ -1,57 +0,0 @@
-Texture2D uImage : register(t0);
-SamplerState _uImage_sampler : register(s0);
-
-static float4 v0;
-static float4 FragColor;
-
-struct SPIRV_Cross_Input
-{
- float4 v0 : TEXCOORD0;
-};
-
-struct SPIRV_Cross_Output
-{
- float4 FragColor : SV_Target0;
-};
-
-void frag_main()
-{
- float phi;
- float4 _36;
- int _51;
- _51 = 0;
- phi = 1.0f;
- _36 = float4(1.0f, 2.0f, 1.0f, 2.0f);
- for (;;)
- {
- FragColor = _36;
- if (_51 < 4)
- {
- if (v0[_51] > 0.0f)
- {
- float2 _48 = phi.xx;
- _51++;
- phi += 2.0f;
- _36 = uImage.SampleLevel(_uImage_sampler, _48, 0.0f);
- continue;
- }
- else
- {
- break;
- }
- }
- else
- {
- break;
- }
- }
-}
-
-SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input)
-{
- v0 = stage_input.v0;
- frag_main();
- SPIRV_Cross_Output stage_output;
- stage_output.FragColor = FragColor;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/frag/inf-nan-constant.asm.frag b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/frag/inf-nan-constant.asm.frag
deleted file mode 100644
index d20cf995a..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/frag/inf-nan-constant.asm.frag
+++ /dev/null
@@ -1,19 +0,0 @@
-static float3 FragColor;
-
-struct SPIRV_Cross_Output
-{
- float3 FragColor : SV_Target0;
-};
-
-void frag_main()
-{
- FragColor = float3(asfloat(0x7f800000u), asfloat(0xff800000u), asfloat(0x7fc00000u));
-}
-
-SPIRV_Cross_Output main()
-{
- frag_main();
- SPIRV_Cross_Output stage_output;
- stage_output.FragColor = FragColor;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/frag/line-directive.line.asm.frag b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/frag/line-directive.line.asm.frag
deleted file mode 100644
index 93bb69eb3..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/frag/line-directive.line.asm.frag
+++ /dev/null
@@ -1,86 +0,0 @@
-static float FragColor;
-static float vColor;
-
-struct SPIRV_Cross_Input
-{
- float vColor : TEXCOORD0;
-};
-
-struct SPIRV_Cross_Output
-{
- float FragColor : SV_Target0;
-};
-
-#line 8 "test.frag"
-void frag_main()
-{
-#line 8 "test.frag"
- FragColor = 1.0f;
-#line 9 "test.frag"
- FragColor = 2.0f;
-#line 10 "test.frag"
- if (vColor < 0.0f)
- {
-#line 12 "test.frag"
- FragColor = 3.0f;
- }
- else
- {
-#line 16 "test.frag"
- FragColor = 4.0f;
- }
- for (int _126 = 0; float(_126) < (40.0f + vColor); )
- {
-#line 21 "test.frag"
- FragColor += 0.20000000298023223876953125f;
-#line 22 "test.frag"
- FragColor += 0.300000011920928955078125f;
- _126 += (int(vColor) + 5);
- continue;
- }
- switch (int(vColor))
- {
- case 0:
- {
-#line 28 "test.frag"
- FragColor += 0.20000000298023223876953125f;
-#line 29 "test.frag"
- break;
- }
- case 1:
- {
-#line 32 "test.frag"
- FragColor += 0.4000000059604644775390625f;
-#line 33 "test.frag"
- break;
- }
- default:
- {
-#line 36 "test.frag"
- FragColor += 0.800000011920928955078125f;
-#line 37 "test.frag"
- break;
- }
- }
- for (;;)
- {
- FragColor += (10.0f + vColor);
-#line 43 "test.frag"
- if (FragColor < 100.0f)
- {
- }
- else
- {
- break;
- }
- }
-}
-
-SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input)
-{
- vColor = stage_input.vColor;
- frag_main();
- SPIRV_Cross_Output stage_output;
- stage_output.FragColor = FragColor;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/frag/lut-promotion-initializer.asm.frag b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/frag/lut-promotion-initializer.asm.frag
deleted file mode 100644
index 5deae3a56..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/frag/lut-promotion-initializer.asm.frag
+++ /dev/null
@@ -1,57 +0,0 @@
-static const float _46[16] = { 1.0f, 2.0f, 3.0f, 4.0f, 1.0f, 2.0f, 3.0f, 4.0f, 1.0f, 2.0f, 3.0f, 4.0f, 1.0f, 2.0f, 3.0f, 4.0f };
-static const float4 _76[4] = { 0.0f.xxxx, 1.0f.xxxx, 8.0f.xxxx, 5.0f.xxxx };
-static const float4 _90[4] = { 20.0f.xxxx, 30.0f.xxxx, 50.0f.xxxx, 60.0f.xxxx };
-
-static float FragColor;
-static int index;
-
-struct SPIRV_Cross_Input
-{
- nointerpolation int index : TEXCOORD0;
-};
-
-struct SPIRV_Cross_Output
-{
- float FragColor : SV_Target0;
-};
-
-void frag_main()
-{
- float4 foobar[4] = _76;
- float4 baz[4] = _76;
- FragColor = _46[index];
- if (index < 10)
- {
- FragColor += _46[index ^ 1];
- }
- else
- {
- FragColor += _46[index & 1];
- }
- bool _99 = index > 30;
- if (_99)
- {
- FragColor += _76[index & 3].y;
- }
- else
- {
- FragColor += _76[index & 1].x;
- }
- if (_99)
- {
- foobar[1].z = 20.0f;
- }
- int _37 = index & 3;
- FragColor += foobar[_37].z;
- baz = _90;
- FragColor += baz[_37].z;
-}
-
-SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input)
-{
- index = stage_input.index;
- frag_main();
- SPIRV_Cross_Output stage_output;
- stage_output.FragColor = FragColor;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/frag/pass-by-value.asm.frag b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/frag/pass-by-value.asm.frag
deleted file mode 100644
index 56ac1f22a..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/frag/pass-by-value.asm.frag
+++ /dev/null
@@ -1,25 +0,0 @@
-cbuffer Registers
-{
- float registers_foo : packoffset(c0);
-};
-
-
-static float FragColor;
-
-struct SPIRV_Cross_Output
-{
- float FragColor : SV_Target0;
-};
-
-void frag_main()
-{
- FragColor = 10.0f + registers_foo;
-}
-
-SPIRV_Cross_Output main()
-{
- frag_main();
- SPIRV_Cross_Output stage_output;
- stage_output.FragColor = FragColor;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/frag/sample-and-compare.asm.frag b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/frag/sample-and-compare.asm.frag
deleted file mode 100644
index 41dfc0806..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/frag/sample-and-compare.asm.frag
+++ /dev/null
@@ -1,30 +0,0 @@
-Texture2D g_Texture : register(t0);
-SamplerState g_Sampler : register(s0);
-SamplerComparisonState g_CompareSampler : register(s1);
-
-static float2 in_var_TEXCOORD0;
-static float out_var_SV_Target;
-
-struct SPIRV_Cross_Input
-{
- float2 in_var_TEXCOORD0 : TEXCOORD0;
-};
-
-struct SPIRV_Cross_Output
-{
- float out_var_SV_Target : SV_Target0;
-};
-
-void frag_main()
-{
- out_var_SV_Target = g_Texture.Sample(g_Sampler, in_var_TEXCOORD0).x + g_Texture.SampleCmpLevelZero(g_CompareSampler, in_var_TEXCOORD0, 0.5f);
-}
-
-SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input)
-{
- in_var_TEXCOORD0 = stage_input.in_var_TEXCOORD0;
- frag_main();
- SPIRV_Cross_Output stage_output;
- stage_output.out_var_SV_Target = out_var_SV_Target;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/frag/single-function-private-lut.asm.frag b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/frag/single-function-private-lut.asm.frag
deleted file mode 100644
index 507bbe1d0..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/frag/single-function-private-lut.asm.frag
+++ /dev/null
@@ -1,62 +0,0 @@
-struct myType
-{
- float data;
-};
-
-static const myType _18 = { 0.0f };
-static const myType _20 = { 1.0f };
-static const myType _21[5] = { { 0.0f }, { 1.0f }, { 0.0f }, { 1.0f }, { 0.0f } };
-
-static float4 gl_FragCoord;
-static float4 o_color;
-
-struct SPIRV_Cross_Input
-{
- float4 gl_FragCoord : SV_Position;
-};
-
-struct SPIRV_Cross_Output
-{
- float4 o_color : SV_Target0;
-};
-
-float mod(float x, float y)
-{
- return x - y * floor(x / y);
-}
-
-float2 mod(float2 x, float2 y)
-{
- return x - y * floor(x / y);
-}
-
-float3 mod(float3 x, float3 y)
-{
- return x - y * floor(x / y);
-}
-
-float4 mod(float4 x, float4 y)
-{
- return x - y * floor(x / y);
-}
-
-void frag_main()
-{
- if (_21[int(mod(gl_FragCoord.x, 4.0f))].data > 0.0f)
- {
- o_color = float4(0.0f, 1.0f, 0.0f, 1.0f);
- }
- else
- {
- o_color = float4(1.0f, 0.0f, 0.0f, 1.0f);
- }
-}
-
-SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input)
-{
- gl_FragCoord = stage_input.gl_FragCoord;
- frag_main();
- SPIRV_Cross_Output stage_output;
- stage_output.o_color = o_color;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/frag/srem.asm.frag b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/frag/srem.asm.frag
deleted file mode 100644
index db5e71745..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/frag/srem.asm.frag
+++ /dev/null
@@ -1,29 +0,0 @@
-static float4 FragColor;
-static int4 vA;
-static int4 vB;
-
-struct SPIRV_Cross_Input
-{
- nointerpolation int4 vA : TEXCOORD0;
- nointerpolation int4 vB : TEXCOORD1;
-};
-
-struct SPIRV_Cross_Output
-{
- float4 FragColor : SV_Target0;
-};
-
-void frag_main()
-{
- FragColor = float4(vA - vB * (vA / vB));
-}
-
-SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input)
-{
- vA = stage_input.vA;
- vB = stage_input.vB;
- frag_main();
- SPIRV_Cross_Output stage_output;
- stage_output.FragColor = FragColor;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/frag/storage-class-output-initializer.asm.frag b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/frag/storage-class-output-initializer.asm.frag
deleted file mode 100644
index 1905b5ea2..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/frag/storage-class-output-initializer.asm.frag
+++ /dev/null
@@ -1,23 +0,0 @@
-static const float4 _20[2] = { float4(1.0f, 2.0f, 3.0f, 4.0f), 10.0f.xxxx };
-
-static float4 FragColors[2] = _20;
-static float4 FragColor = 5.0f.xxxx;
-
-struct SPIRV_Cross_Output
-{
- float4 FragColors[2] : SV_Target0;
- float4 FragColor : SV_Target2;
-};
-
-void frag_main()
-{
-}
-
-SPIRV_Cross_Output main()
-{
- frag_main();
- SPIRV_Cross_Output stage_output;
- stage_output.FragColors = FragColors;
- stage_output.FragColor = FragColor;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/frag/texel-fetch-no-lod.asm.frag b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/frag/texel-fetch-no-lod.asm.frag
deleted file mode 100644
index 695d5fe9d..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/frag/texel-fetch-no-lod.asm.frag
+++ /dev/null
@@ -1,29 +0,0 @@
-Texture2D uTexture : register(t0);
-SamplerState _uTexture_sampler : register(s0);
-
-static float4 gl_FragCoord;
-static float4 FragColor;
-
-struct SPIRV_Cross_Input
-{
- float4 gl_FragCoord : SV_Position;
-};
-
-struct SPIRV_Cross_Output
-{
- float4 FragColor : SV_Target0;
-};
-
-void frag_main()
-{
- FragColor = uTexture.Load(int3(int2(gl_FragCoord.xy), 0));
-}
-
-SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input)
-{
- gl_FragCoord = stage_input.gl_FragCoord;
- frag_main();
- SPIRV_Cross_Output stage_output;
- stage_output.FragColor = FragColor;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/frag/texture-sampling-fp16.asm.frag b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/frag/texture-sampling-fp16.asm.frag
deleted file mode 100644
index 322c86bed..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/frag/texture-sampling-fp16.asm.frag
+++ /dev/null
@@ -1,29 +0,0 @@
-Texture2D uTexture : register(t0);
-SamplerState _uTexture_sampler : register(s0);
-
-static min16float4 FragColor;
-static min16float2 UV;
-
-struct SPIRV_Cross_Input
-{
- min16float2 UV : TEXCOORD0;
-};
-
-struct SPIRV_Cross_Output
-{
- min16float4 FragColor : SV_Target0;
-};
-
-void frag_main()
-{
- FragColor = min16float4(uTexture.Sample(_uTexture_sampler, UV));
-}
-
-SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input)
-{
- UV = stage_input.UV;
- frag_main();
- SPIRV_Cross_Output stage_output;
- stage_output.FragColor = FragColor;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/frag/unknown-depth-state.asm.frag b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/frag/unknown-depth-state.asm.frag
deleted file mode 100644
index 5b894de83..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/frag/unknown-depth-state.asm.frag
+++ /dev/null
@@ -1,31 +0,0 @@
-Texture2D uShadow : register(t0);
-SamplerComparisonState _uShadow_sampler : register(s0);
-Texture2D uTexture : register(t1);
-SamplerComparisonState uSampler : register(s2);
-
-static float3 vUV;
-static float FragColor;
-
-struct SPIRV_Cross_Input
-{
- float3 vUV : TEXCOORD0;
-};
-
-struct SPIRV_Cross_Output
-{
- float FragColor : SV_Target0;
-};
-
-void frag_main()
-{
- FragColor = uShadow.SampleCmp(_uShadow_sampler, vUV.xy, vUV.z) + uTexture.SampleCmp(uSampler, vUV.xy, vUV.z);
-}
-
-SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input)
-{
- vUV = stage_input.vUV;
- frag_main();
- SPIRV_Cross_Output stage_output;
- stage_output.FragColor = FragColor;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/frag/unreachable.asm.frag b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/frag/unreachable.asm.frag
deleted file mode 100644
index 4a024c8ef..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/frag/unreachable.asm.frag
+++ /dev/null
@@ -1,40 +0,0 @@
-static int counter;
-static float4 FragColor;
-
-struct SPIRV_Cross_Input
-{
- nointerpolation int counter : TEXCOORD0;
-};
-
-struct SPIRV_Cross_Output
-{
- float4 FragColor : SV_Target0;
-};
-
-void frag_main()
-{
- float4 _33;
- for (;;)
- {
- if (counter == 10)
- {
- _33 = 10.0f.xxxx;
- break;
- }
- else
- {
- _33 = 30.0f.xxxx;
- break;
- }
- }
- FragColor = _33;
-}
-
-SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input)
-{
- counter = stage_input.counter;
- frag_main();
- SPIRV_Cross_Output stage_output;
- stage_output.FragColor = FragColor;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/vert/extract-transposed-matrix-from-struct.asm.vert b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/vert/extract-transposed-matrix-from-struct.asm.vert
deleted file mode 100644
index 54cfec96c..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/vert/extract-transposed-matrix-from-struct.asm.vert
+++ /dev/null
@@ -1,45 +0,0 @@
-struct InstanceData
-{
- column_major float4x4 MATRIX_MVP;
- float4 Color;
-};
-
-cbuffer gInstanceData : register(b0)
-{
- InstanceData gInstanceData_1_data[32] : packoffset(c0);
-};
-
-
-static float4 gl_Position;
-static int gl_InstanceIndex;
-static float3 PosL;
-static float4 _entryPointOutput_Color;
-
-struct SPIRV_Cross_Input
-{
- float3 PosL : TEXCOORD0;
- uint gl_InstanceIndex : SV_InstanceID;
-};
-
-struct SPIRV_Cross_Output
-{
- float4 _entryPointOutput_Color : TEXCOORD0;
- float4 gl_Position : SV_Position;
-};
-
-void vert_main()
-{
- gl_Position = mul(float4(PosL, 1.0f), gInstanceData_1_data[uint(gl_InstanceIndex)].MATRIX_MVP);
- _entryPointOutput_Color = gInstanceData_1_data[uint(gl_InstanceIndex)].Color;
-}
-
-SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input)
-{
- gl_InstanceIndex = int(stage_input.gl_InstanceIndex);
- PosL = stage_input.PosL;
- vert_main();
- SPIRV_Cross_Output stage_output;
- stage_output.gl_Position = gl_Position;
- stage_output._entryPointOutput_Color = _entryPointOutput_Color;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/vert/spec-constant-op-composite.asm.vert b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/vert/spec-constant-op-composite.asm.vert
deleted file mode 100644
index 2cebffffa..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/vert/spec-constant-op-composite.asm.vert
+++ /dev/null
@@ -1,46 +0,0 @@
-#ifndef SPIRV_CROSS_CONSTANT_ID_201
-#define SPIRV_CROSS_CONSTANT_ID_201 -10
-#endif
-static const int _7 = SPIRV_CROSS_CONSTANT_ID_201;
-static const int _20 = (_7 + 2);
-#ifndef SPIRV_CROSS_CONSTANT_ID_202
-#define SPIRV_CROSS_CONSTANT_ID_202 100u
-#endif
-static const uint _8 = SPIRV_CROSS_CONSTANT_ID_202;
-static const uint _25 = (_8 % 5u);
-#ifndef SPIRV_CROSS_CONSTANT_ID_0
-#define SPIRV_CROSS_CONSTANT_ID_0 int4(20, 30, _20, _20)
-#endif
-static const int4 _30 = SPIRV_CROSS_CONSTANT_ID_0;
-static const int2 _32 = int2(_30.y, _30.x);
-static const int _33 = _30.y;
-
-static float4 gl_Position;
-static int _4;
-
-struct SPIRV_Cross_Output
-{
- nointerpolation int _4 : TEXCOORD0;
- float4 gl_Position : SV_Position;
-};
-
-void vert_main()
-{
- float4 _63 = 0.0f.xxxx;
- _63.y = float(_20);
- float4 _66 = _63;
- _66.z = float(_25);
- float4 _52 = _66 + float4(_30);
- float2 _56 = _52.xy + float2(_32);
- gl_Position = float4(_56.x, _56.y, _52.z, _52.w);
- _4 = _33;
-}
-
-SPIRV_Cross_Output main()
-{
- vert_main();
- SPIRV_Cross_Output stage_output;
- stage_output.gl_Position = gl_Position;
- stage_output._4 = _4;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/vert/uint-vertex-id-instance-id.asm.vert b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/vert/uint-vertex-id-instance-id.asm.vert
deleted file mode 100644
index 0d1e8cc53..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/vert/uint-vertex-id-instance-id.asm.vert
+++ /dev/null
@@ -1,28 +0,0 @@
-static float4 gl_Position;
-static int gl_VertexIndex;
-static int gl_InstanceIndex;
-struct SPIRV_Cross_Input
-{
- uint gl_VertexIndex : SV_VertexID;
- uint gl_InstanceIndex : SV_InstanceID;
-};
-
-struct SPIRV_Cross_Output
-{
- float4 gl_Position : SV_Position;
-};
-
-void vert_main()
-{
- gl_Position = float(uint(gl_VertexIndex) + uint(gl_InstanceIndex)).xxxx;
-}
-
-SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input)
-{
- gl_VertexIndex = int(stage_input.gl_VertexIndex);
- gl_InstanceIndex = int(stage_input.gl_InstanceIndex);
- vert_main();
- SPIRV_Cross_Output stage_output;
- stage_output.gl_Position = gl_Position;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/vert/vertex-id-instance-id.asm.vert b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/vert/vertex-id-instance-id.asm.vert
deleted file mode 100644
index 48b2df20d..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/asm/vert/vertex-id-instance-id.asm.vert
+++ /dev/null
@@ -1,28 +0,0 @@
-static float4 gl_Position;
-static int gl_VertexIndex;
-static int gl_InstanceIndex;
-struct SPIRV_Cross_Input
-{
- uint gl_VertexIndex : SV_VertexID;
- uint gl_InstanceIndex : SV_InstanceID;
-};
-
-struct SPIRV_Cross_Output
-{
- float4 gl_Position : SV_Position;
-};
-
-void vert_main()
-{
- gl_Position = float(gl_VertexIndex + gl_InstanceIndex).xxxx;
-}
-
-SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input)
-{
- gl_VertexIndex = int(stage_input.gl_VertexIndex);
- gl_InstanceIndex = int(stage_input.gl_InstanceIndex);
- vert_main();
- SPIRV_Cross_Output stage_output;
- stage_output.gl_Position = gl_Position;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/comp/access-chains.comp b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/comp/access-chains.comp
deleted file mode 100644
index c748200b9..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/comp/access-chains.comp
+++ /dev/null
@@ -1,23 +0,0 @@
-static const uint3 gl_WorkGroupSize = uint3(1u, 1u, 1u);
-
-RWByteAddressBuffer wo : register(u1);
-ByteAddressBuffer ro : register(t0);
-
-static uint3 gl_GlobalInvocationID;
-struct SPIRV_Cross_Input
-{
- uint3 gl_GlobalInvocationID : SV_DispatchThreadID;
-};
-
-void comp_main()
-{
- wo.Store4(gl_GlobalInvocationID.x * 64 + 272, asuint(asfloat(ro.Load4(gl_GlobalInvocationID.x * 64 + 160))));
- wo.Store4(gl_GlobalInvocationID.x * 16 + 480, asuint(asfloat(ro.Load4(gl_GlobalInvocationID.x * 16 + 480))));
-}
-
-[numthreads(1, 1, 1)]
-void main(SPIRV_Cross_Input stage_input)
-{
- gl_GlobalInvocationID = stage_input.gl_GlobalInvocationID;
- comp_main();
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/comp/address-buffers.comp b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/comp/address-buffers.comp
deleted file mode 100644
index 7f1c7975b..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/comp/address-buffers.comp
+++ /dev/null
@@ -1,17 +0,0 @@
-static const uint3 gl_WorkGroupSize = uint3(1u, 1u, 1u);
-
-RWByteAddressBuffer WriteOnly : register(u2);
-ByteAddressBuffer ReadOnly : register(t0);
-RWByteAddressBuffer ReadWrite : register(u1);
-
-void comp_main()
-{
- WriteOnly.Store4(0, asuint(asfloat(ReadOnly.Load4(0))));
- ReadWrite.Store4(0, asuint(asfloat(ReadWrite.Load4(0)) + 10.0f.xxxx));
-}
-
-[numthreads(1, 1, 1)]
-void main()
-{
- comp_main();
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/comp/atomic.comp b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/comp/atomic.comp
deleted file mode 100644
index e6ff891e8..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/comp/atomic.comp
+++ /dev/null
@@ -1,91 +0,0 @@
-static const uint3 gl_WorkGroupSize = uint3(1u, 1u, 1u);
-
-RWByteAddressBuffer ssbo : register(u2);
-RWTexture2D uImage : register(u0);
-RWTexture2D iImage : register(u1);
-
-groupshared int int_atomic;
-groupshared uint uint_atomic;
-groupshared int int_atomic_array[1];
-groupshared uint uint_atomic_array[1];
-
-void comp_main()
-{
- uint _19;
- InterlockedAdd(uImage[int2(1, 5)], 1u, _19);
- uint _27;
- InterlockedAdd(uImage[int2(1, 5)], 1u, _27);
- iImage[int2(1, 6)] = int(_27).x;
- uint _32;
- InterlockedOr(uImage[int2(1, 5)], 1u, _32);
- uint _34;
- InterlockedXor(uImage[int2(1, 5)], 1u, _34);
- uint _36;
- InterlockedAnd(uImage[int2(1, 5)], 1u, _36);
- uint _38;
- InterlockedMin(uImage[int2(1, 5)], 1u, _38);
- uint _40;
- InterlockedMax(uImage[int2(1, 5)], 1u, _40);
- uint _44;
- InterlockedCompareExchange(uImage[int2(1, 5)], 10u, 2u, _44);
- int _47;
- InterlockedAdd(iImage[int2(1, 6)], 1, _47);
- int _49;
- InterlockedOr(iImage[int2(1, 6)], 1, _49);
- int _51;
- InterlockedXor(iImage[int2(1, 6)], 1, _51);
- int _53;
- InterlockedAnd(iImage[int2(1, 6)], 1, _53);
- int _55;
- InterlockedMin(iImage[int2(1, 6)], 1, _55);
- int _57;
- InterlockedMax(iImage[int2(1, 6)], 1, _57);
- int _61;
- InterlockedCompareExchange(iImage[int2(1, 5)], 10, 2, _61);
- uint _68;
- ssbo.InterlockedAdd(0, 1u, _68);
- uint _70;
- ssbo.InterlockedOr(0, 1u, _70);
- uint _72;
- ssbo.InterlockedXor(0, 1u, _72);
- uint _74;
- ssbo.InterlockedAnd(0, 1u, _74);
- uint _76;
- ssbo.InterlockedMin(0, 1u, _76);
- uint _78;
- ssbo.InterlockedMax(0, 1u, _78);
- uint _80;
- ssbo.InterlockedExchange(0, 1u, _80);
- uint _82;
- ssbo.InterlockedCompareExchange(0, 10u, 2u, _82);
- int _85;
- ssbo.InterlockedAdd(4, 1, _85);
- int _87;
- ssbo.InterlockedOr(4, 1, _87);
- int _89;
- ssbo.InterlockedXor(4, 1, _89);
- int _91;
- ssbo.InterlockedAnd(4, 1, _91);
- int _93;
- ssbo.InterlockedMin(4, 1, _93);
- int _95;
- ssbo.InterlockedMax(4, 1, _95);
- int _97;
- ssbo.InterlockedExchange(4, 1, _97);
- int _99;
- ssbo.InterlockedCompareExchange(4, 10, 2, _99);
- int _102;
- InterlockedAdd(int_atomic, 10, _102);
- uint _105;
- InterlockedAdd(uint_atomic, 10u, _105);
- int _110;
- InterlockedAdd(int_atomic_array[0], 10, _110);
- uint _115;
- InterlockedAdd(uint_atomic_array[0], 10u, _115);
-}
-
-[numthreads(1, 1, 1)]
-void main()
-{
- comp_main();
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/comp/barriers.comp b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/comp/barriers.comp
deleted file mode 100644
index 7ac2a656f..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/comp/barriers.comp
+++ /dev/null
@@ -1,26 +0,0 @@
-static const uint3 gl_WorkGroupSize = uint3(4u, 1u, 1u);
-
-void comp_main()
-{
- GroupMemoryBarrier();
- AllMemoryBarrier();
- DeviceMemoryBarrier();
- DeviceMemoryBarrier();
- AllMemoryBarrier();
- GroupMemoryBarrierWithGroupSync();
- AllMemoryBarrier();
- GroupMemoryBarrierWithGroupSync();
- DeviceMemoryBarrier();
- GroupMemoryBarrierWithGroupSync();
- DeviceMemoryBarrier();
- GroupMemoryBarrierWithGroupSync();
- AllMemoryBarrier();
- GroupMemoryBarrierWithGroupSync();
- GroupMemoryBarrierWithGroupSync();
-}
-
-[numthreads(4, 1, 1)]
-void main()
-{
- comp_main();
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/comp/builtins.comp b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/comp/builtins.comp
deleted file mode 100644
index 7f88aa798..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/comp/builtins.comp
+++ /dev/null
@@ -1,11 +0,0 @@
-static const uint3 gl_WorkGroupSize = uint3(8u, 4u, 2u);
-
-void comp_main()
-{
-}
-
-[numthreads(8, 4, 2)]
-void main()
-{
- comp_main();
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/comp/composite-array-initialization.comp b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/comp/composite-array-initialization.comp
deleted file mode 100644
index e39f4d068..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/comp/composite-array-initialization.comp
+++ /dev/null
@@ -1,50 +0,0 @@
-struct Data
-{
- float a;
- float b;
-};
-
-#ifndef SPIRV_CROSS_CONSTANT_ID_0
-#define SPIRV_CROSS_CONSTANT_ID_0 4.0f
-#endif
-static const float X = SPIRV_CROSS_CONSTANT_ID_0;
-
-static const uint3 gl_WorkGroupSize = uint3(2u, 1u, 1u);
-
-static const Data _21 = { 1.0f, 2.0f };
-static const Data _24 = { 3.0f, 4.0f };
-static const Data _25[2] = { { 1.0f, 2.0f }, { 3.0f, 4.0f } };
-static const Data _30 = { 3.0f, 5.0f };
-
-RWByteAddressBuffer _61 : register(u0);
-
-static uint3 gl_WorkGroupID;
-static uint3 gl_LocalInvocationID;
-static uint gl_LocalInvocationIndex;
-struct SPIRV_Cross_Input
-{
- uint3 gl_WorkGroupID : SV_GroupID;
- uint3 gl_LocalInvocationID : SV_GroupThreadID;
- uint gl_LocalInvocationIndex : SV_GroupIndex;
-};
-
-void comp_main()
-{
- Data _28 = { X, 2.0f };
- Data _31[2] = { _28, _30 };
- Data data2[2] = _31;
- if (gl_LocalInvocationIndex == 0u)
- {
- _61.Store(gl_WorkGroupID.x * 8 + 0, asuint(_25[gl_LocalInvocationID.x].a + data2[gl_LocalInvocationID.x].a));
- _61.Store(gl_WorkGroupID.x * 8 + 4, asuint(_25[gl_LocalInvocationID.x].b + data2[gl_LocalInvocationID.x].b));
- }
-}
-
-[numthreads(2, 1, 1)]
-void main(SPIRV_Cross_Input stage_input)
-{
- gl_WorkGroupID = stage_input.gl_WorkGroupID;
- gl_LocalInvocationID = stage_input.gl_LocalInvocationID;
- gl_LocalInvocationIndex = stage_input.gl_LocalInvocationIndex;
- comp_main();
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/comp/globallycoherent.comp b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/comp/globallycoherent.comp
deleted file mode 100644
index b5f1e377c..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/comp/globallycoherent.comp
+++ /dev/null
@@ -1,18 +0,0 @@
-static const uint3 gl_WorkGroupSize = uint3(1u, 1u, 1u);
-
-globallycoherent RWByteAddressBuffer _29 : register(u3);
-ByteAddressBuffer _33 : register(t2);
-RWTexture2D uImageIn : register(u0);
-globallycoherent RWTexture2D uImageOut : register(u1);
-
-void comp_main()
-{
- uImageOut[int2(9, 7)] = uImageIn[int2(9, 7)].x;
- _29.Store(0, asuint(asfloat(_33.Load(0))));
-}
-
-[numthreads(1, 1, 1)]
-void main()
-{
- comp_main();
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/comp/image.comp b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/comp/image.comp
deleted file mode 100644
index e2f6b0a34..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/comp/image.comp
+++ /dev/null
@@ -1,66 +0,0 @@
-static const uint3 gl_WorkGroupSize = uint3(1u, 1u, 1u);
-
-RWTexture2D uImageInF : register(u0);
-RWTexture2D uImageOutF : register(u1);
-RWTexture2D uImageInI : register(u2);
-RWTexture2D uImageOutI : register(u3);
-RWTexture2D uImageInU : register(u4);
-RWTexture2D uImageOutU : register(u5);
-RWBuffer uImageInBuffer : register(u6);
-RWBuffer uImageOutBuffer : register(u7);
-RWTexture2D uImageInF2 : register(u8);
-RWTexture2D uImageOutF2 : register(u9);
-RWTexture2D uImageInI2 : register(u10);
-RWTexture2D uImageOutI2 : register(u11);
-RWTexture2D uImageInU2 : register(u12);
-RWTexture2D uImageOutU2 : register(u13);
-RWBuffer uImageInBuffer2 : register(u14);
-RWBuffer uImageOutBuffer2 : register(u15);
-RWTexture2D uImageInF4 : register(u16);
-RWTexture2D uImageOutF4 : register(u17);
-RWTexture2D uImageInI4 : register(u18);
-RWTexture2D uImageOutI4 : register(u19);
-RWTexture2D uImageInU4 : register(u20);
-RWTexture2D uImageOutU4 : register(u21);
-RWBuffer uImageInBuffer4 : register(u22);
-RWBuffer uImageOutBuffer4 : register(u23);
-RWTexture2D uImageNoFmtF : register(u24);
-RWTexture2D uImageNoFmtU : register(u25);
-RWTexture2D uImageNoFmtI : register(u26);
-
-static uint3 gl_GlobalInvocationID;
-struct SPIRV_Cross_Input
-{
- uint3 gl_GlobalInvocationID : SV_DispatchThreadID;
-};
-
-void comp_main()
-{
- int2 _23 = int2(gl_GlobalInvocationID.xy);
- uImageOutF[_23] = uImageInF[_23].x;
- uImageOutI[_23] = uImageInI[_23].x;
- uImageOutU[_23] = uImageInU[_23].x;
- int _74 = int(gl_GlobalInvocationID.x);
- uImageOutBuffer[_74] = uImageInBuffer[_74].x;
- uImageOutF2[_23] = uImageInF2[_23].xy;
- uImageOutI2[_23] = uImageInI2[_23].xy;
- uImageOutU2[_23] = uImageInU2[_23].xy;
- float4 _135 = uImageInBuffer2[_74].xyyy;
- uImageOutBuffer2[_74] = _135.xy;
- uImageOutF4[_23] = uImageInF4[_23];
- int4 _165 = uImageInI4[_23];
- uImageOutI4[_23] = _165;
- uint4 _180 = uImageInU4[_23];
- uImageOutU4[_23] = _180;
- uImageOutBuffer4[_74] = uImageInBuffer4[_74];
- uImageNoFmtF[_23] = _135;
- uImageNoFmtU[_23] = _180;
- uImageNoFmtI[_23] = _165;
-}
-
-[numthreads(1, 1, 1)]
-void main(SPIRV_Cross_Input stage_input)
-{
- gl_GlobalInvocationID = stage_input.gl_GlobalInvocationID;
- comp_main();
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/comp/inverse.comp b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/comp/inverse.comp
deleted file mode 100644
index f9ec89aa3..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/comp/inverse.comp
+++ /dev/null
@@ -1,124 +0,0 @@
-static const uint3 gl_WorkGroupSize = uint3(1u, 1u, 1u);
-
-RWByteAddressBuffer _15 : register(u0);
-ByteAddressBuffer _20 : register(t1);
-
-// Returns the inverse of a matrix, by using the algorithm of calculating the classical
-// adjoint and dividing by the determinant. The contents of the matrix are changed.
-float2x2 SPIRV_Cross_Inverse(float2x2 m)
-{
- float2x2 adj; // The adjoint matrix (inverse after dividing by determinant)
-
- // Create the transpose of the cofactors, as the classical adjoint of the matrix.
- adj[0][0] = m[1][1];
- adj[0][1] = -m[0][1];
-
- adj[1][0] = -m[1][0];
- adj[1][1] = m[0][0];
-
- // Calculate the determinant as a combination of the cofactors of the first row.
- float det = (adj[0][0] * m[0][0]) + (adj[0][1] * m[1][0]);
-
- // Divide the classical adjoint matrix by the determinant.
- // If determinant is zero, matrix is not invertable, so leave it unchanged.
- return (det != 0.0f) ? (adj * (1.0f / det)) : m;
-}
-
-// Returns the determinant of a 2x2 matrix.
-float SPIRV_Cross_Det2x2(float a1, float a2, float b1, float b2)
-{
- return a1 * b2 - b1 * a2;
-}
-
-// Returns the inverse of a matrix, by using the algorithm of calculating the classical
-// adjoint and dividing by the determinant. The contents of the matrix are changed.
-float3x3 SPIRV_Cross_Inverse(float3x3 m)
-{
- float3x3 adj; // The adjoint matrix (inverse after dividing by determinant)
-
- // Create the transpose of the cofactors, as the classical adjoint of the matrix.
- adj[0][0] = SPIRV_Cross_Det2x2(m[1][1], m[1][2], m[2][1], m[2][2]);
- adj[0][1] = -SPIRV_Cross_Det2x2(m[0][1], m[0][2], m[2][1], m[2][2]);
- adj[0][2] = SPIRV_Cross_Det2x2(m[0][1], m[0][2], m[1][1], m[1][2]);
-
- adj[1][0] = -SPIRV_Cross_Det2x2(m[1][0], m[1][2], m[2][0], m[2][2]);
- adj[1][1] = SPIRV_Cross_Det2x2(m[0][0], m[0][2], m[2][0], m[2][2]);
- adj[1][2] = -SPIRV_Cross_Det2x2(m[0][0], m[0][2], m[1][0], m[1][2]);
-
- adj[2][0] = SPIRV_Cross_Det2x2(m[1][0], m[1][1], m[2][0], m[2][1]);
- adj[2][1] = -SPIRV_Cross_Det2x2(m[0][0], m[0][1], m[2][0], m[2][1]);
- adj[2][2] = SPIRV_Cross_Det2x2(m[0][0], m[0][1], m[1][0], m[1][1]);
-
- // Calculate the determinant as a combination of the cofactors of the first row.
- float det = (adj[0][0] * m[0][0]) + (adj[0][1] * m[1][0]) + (adj[0][2] * m[2][0]);
-
- // Divide the classical adjoint matrix by the determinant.
- // If determinant is zero, matrix is not invertable, so leave it unchanged.
- return (det != 0.0f) ? (adj * (1.0f / det)) : m;
-}
-
-// Returns the determinant of a 3x3 matrix.
-float SPIRV_Cross_Det3x3(float a1, float a2, float a3, float b1, float b2, float b3, float c1, float c2, float c3)
-{
- return a1 * SPIRV_Cross_Det2x2(b2, b3, c2, c3) - b1 * SPIRV_Cross_Det2x2(a2, a3, c2, c3) + c1 * SPIRV_Cross_Det2x2(a2, a3, b2, b3);
-}
-
-// Returns the inverse of a matrix, by using the algorithm of calculating the classical
-// adjoint and dividing by the determinant. The contents of the matrix are changed.
-float4x4 SPIRV_Cross_Inverse(float4x4 m)
-{
- float4x4 adj; // The adjoint matrix (inverse after dividing by determinant)
-
- // Create the transpose of the cofactors, as the classical adjoint of the matrix.
- adj[0][0] = SPIRV_Cross_Det3x3(m[1][1], m[1][2], m[1][3], m[2][1], m[2][2], m[2][3], m[3][1], m[3][2], m[3][3]);
- adj[0][1] = -SPIRV_Cross_Det3x3(m[0][1], m[0][2], m[0][3], m[2][1], m[2][2], m[2][3], m[3][1], m[3][2], m[3][3]);
- adj[0][2] = SPIRV_Cross_Det3x3(m[0][1], m[0][2], m[0][3], m[1][1], m[1][2], m[1][3], m[3][1], m[3][2], m[3][3]);
- adj[0][3] = -SPIRV_Cross_Det3x3(m[0][1], m[0][2], m[0][3], m[1][1], m[1][2], m[1][3], m[2][1], m[2][2], m[2][3]);
-
- adj[1][0] = -SPIRV_Cross_Det3x3(m[1][0], m[1][2], m[1][3], m[2][0], m[2][2], m[2][3], m[3][0], m[3][2], m[3][3]);
- adj[1][1] = SPIRV_Cross_Det3x3(m[0][0], m[0][2], m[0][3], m[2][0], m[2][2], m[2][3], m[3][0], m[3][2], m[3][3]);
- adj[1][2] = -SPIRV_Cross_Det3x3(m[0][0], m[0][2], m[0][3], m[1][0], m[1][2], m[1][3], m[3][0], m[3][2], m[3][3]);
- adj[1][3] = SPIRV_Cross_Det3x3(m[0][0], m[0][2], m[0][3], m[1][0], m[1][2], m[1][3], m[2][0], m[2][2], m[2][3]);
-
- adj[2][0] = SPIRV_Cross_Det3x3(m[1][0], m[1][1], m[1][3], m[2][0], m[2][1], m[2][3], m[3][0], m[3][1], m[3][3]);
- adj[2][1] = -SPIRV_Cross_Det3x3(m[0][0], m[0][1], m[0][3], m[2][0], m[2][1], m[2][3], m[3][0], m[3][1], m[3][3]);
- adj[2][2] = SPIRV_Cross_Det3x3(m[0][0], m[0][1], m[0][3], m[1][0], m[1][1], m[1][3], m[3][0], m[3][1], m[3][3]);
- adj[2][3] = -SPIRV_Cross_Det3x3(m[0][0], m[0][1], m[0][3], m[1][0], m[1][1], m[1][3], m[2][0], m[2][1], m[2][3]);
-
- adj[3][0] = -SPIRV_Cross_Det3x3(m[1][0], m[1][1], m[1][2], m[2][0], m[2][1], m[2][2], m[3][0], m[3][1], m[3][2]);
- adj[3][1] = SPIRV_Cross_Det3x3(m[0][0], m[0][1], m[0][2], m[2][0], m[2][1], m[2][2], m[3][0], m[3][1], m[3][2]);
- adj[3][2] = -SPIRV_Cross_Det3x3(m[0][0], m[0][1], m[0][2], m[1][0], m[1][1], m[1][2], m[3][0], m[3][1], m[3][2]);
- adj[3][3] = SPIRV_Cross_Det3x3(m[0][0], m[0][1], m[0][2], m[1][0], m[1][1], m[1][2], m[2][0], m[2][1], m[2][2]);
-
- // Calculate the determinant as a combination of the cofactors of the first row.
- float det = (adj[0][0] * m[0][0]) + (adj[0][1] * m[1][0]) + (adj[0][2] * m[2][0]) + (adj[0][3] * m[3][0]);
-
- // Divide the classical adjoint matrix by the determinant.
- // If determinant is zero, matrix is not invertable, so leave it unchanged.
- return (det != 0.0f) ? (adj * (1.0f / det)) : m;
-}
-
-void comp_main()
-{
- float2x2 _23 = asfloat(uint2x2(_20.Load2(0), _20.Load2(8)));
- float2x2 _24 = SPIRV_Cross_Inverse(_23);
- _15.Store2(0, asuint(_24[0]));
- _15.Store2(8, asuint(_24[1]));
- float3x3 _29 = asfloat(uint3x3(_20.Load3(16), _20.Load3(32), _20.Load3(48)));
- float3x3 _30 = SPIRV_Cross_Inverse(_29);
- _15.Store3(16, asuint(_30[0]));
- _15.Store3(32, asuint(_30[1]));
- _15.Store3(48, asuint(_30[2]));
- float4x4 _35 = asfloat(uint4x4(_20.Load4(64), _20.Load4(80), _20.Load4(96), _20.Load4(112)));
- float4x4 _36 = SPIRV_Cross_Inverse(_35);
- _15.Store4(64, asuint(_36[0]));
- _15.Store4(80, asuint(_36[1]));
- _15.Store4(96, asuint(_36[2]));
- _15.Store4(112, asuint(_36[3]));
-}
-
-[numthreads(1, 1, 1)]
-void main()
-{
- comp_main();
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/comp/num-workgroups-alone.comp b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/comp/num-workgroups-alone.comp
deleted file mode 100644
index dc87dc84f..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/comp/num-workgroups-alone.comp
+++ /dev/null
@@ -1,19 +0,0 @@
-static const uint3 gl_WorkGroupSize = uint3(1u, 1u, 1u);
-
-RWByteAddressBuffer _10 : register(u0);
-cbuffer SPIRV_Cross_NumWorkgroups : register(b0)
-{
- uint3 SPIRV_Cross_NumWorkgroups_1_count : packoffset(c0);
-};
-
-
-void comp_main()
-{
- _10.Store3(0, SPIRV_Cross_NumWorkgroups_1_count);
-}
-
-[numthreads(1, 1, 1)]
-void main()
-{
- comp_main();
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/comp/num-workgroups-with-builtins.comp b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/comp/num-workgroups-with-builtins.comp
deleted file mode 100644
index 2e2ad55fd..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/comp/num-workgroups-with-builtins.comp
+++ /dev/null
@@ -1,26 +0,0 @@
-static const uint3 gl_WorkGroupSize = uint3(1u, 1u, 1u);
-
-RWByteAddressBuffer _10 : register(u0);
-cbuffer SPIRV_Cross_NumWorkgroups : register(b0)
-{
- uint3 SPIRV_Cross_NumWorkgroups_1_count : packoffset(c0);
-};
-
-
-static uint3 gl_WorkGroupID;
-struct SPIRV_Cross_Input
-{
- uint3 gl_WorkGroupID : SV_GroupID;
-};
-
-void comp_main()
-{
- _10.Store3(0, SPIRV_Cross_NumWorkgroups_1_count + gl_WorkGroupID);
-}
-
-[numthreads(1, 1, 1)]
-void main(SPIRV_Cross_Input stage_input)
-{
- gl_WorkGroupID = stage_input.gl_WorkGroupID;
- comp_main();
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/comp/outer-product.comp b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/comp/outer-product.comp
deleted file mode 100644
index e58c02fe0..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/comp/outer-product.comp
+++ /dev/null
@@ -1,50 +0,0 @@
-static const uint3 gl_WorkGroupSize = uint3(1u, 1u, 1u);
-
-RWByteAddressBuffer _21 : register(u0);
-ByteAddressBuffer _26 : register(t1);
-
-void comp_main()
-{
- float2x2 _32 = float2x2(asfloat(_26.Load2(0)) * asfloat(_26.Load2(0)).x, asfloat(_26.Load2(0)) * asfloat(_26.Load2(0)).y);
- _21.Store2(0, asuint(_32[0]));
- _21.Store2(8, asuint(_32[1]));
- float2x3 _41 = float2x3(asfloat(_26.Load3(16)) * asfloat(_26.Load2(0)).x, asfloat(_26.Load3(16)) * asfloat(_26.Load2(0)).y);
- _21.Store3(16, asuint(_41[0]));
- _21.Store3(32, asuint(_41[1]));
- float2x4 _50 = float2x4(asfloat(_26.Load4(32)) * asfloat(_26.Load2(0)).x, asfloat(_26.Load4(32)) * asfloat(_26.Load2(0)).y);
- _21.Store4(48, asuint(_50[0]));
- _21.Store4(64, asuint(_50[1]));
- float3x2 _58 = float3x2(asfloat(_26.Load2(0)) * asfloat(_26.Load3(16)).x, asfloat(_26.Load2(0)) * asfloat(_26.Load3(16)).y, asfloat(_26.Load2(0)) * asfloat(_26.Load3(16)).z);
- _21.Store2(80, asuint(_58[0]));
- _21.Store2(88, asuint(_58[1]));
- _21.Store2(96, asuint(_58[2]));
- float3x3 _66 = float3x3(asfloat(_26.Load3(16)) * asfloat(_26.Load3(16)).x, asfloat(_26.Load3(16)) * asfloat(_26.Load3(16)).y, asfloat(_26.Load3(16)) * asfloat(_26.Load3(16)).z);
- _21.Store3(112, asuint(_66[0]));
- _21.Store3(128, asuint(_66[1]));
- _21.Store3(144, asuint(_66[2]));
- float3x4 _74 = float3x4(asfloat(_26.Load4(32)) * asfloat(_26.Load3(16)).x, asfloat(_26.Load4(32)) * asfloat(_26.Load3(16)).y, asfloat(_26.Load4(32)) * asfloat(_26.Load3(16)).z);
- _21.Store4(160, asuint(_74[0]));
- _21.Store4(176, asuint(_74[1]));
- _21.Store4(192, asuint(_74[2]));
- float4x2 _82 = float4x2(asfloat(_26.Load2(0)) * asfloat(_26.Load4(32)).x, asfloat(_26.Load2(0)) * asfloat(_26.Load4(32)).y, asfloat(_26.Load2(0)) * asfloat(_26.Load4(32)).z, asfloat(_26.Load2(0)) * asfloat(_26.Load4(32)).w);
- _21.Store2(208, asuint(_82[0]));
- _21.Store2(216, asuint(_82[1]));
- _21.Store2(224, asuint(_82[2]));
- _21.Store2(232, asuint(_82[3]));
- float4x3 _90 = float4x3(asfloat(_26.Load3(16)) * asfloat(_26.Load4(32)).x, asfloat(_26.Load3(16)) * asfloat(_26.Load4(32)).y, asfloat(_26.Load3(16)) * asfloat(_26.Load4(32)).z, asfloat(_26.Load3(16)) * asfloat(_26.Load4(32)).w);
- _21.Store3(240, asuint(_90[0]));
- _21.Store3(256, asuint(_90[1]));
- _21.Store3(272, asuint(_90[2]));
- _21.Store3(288, asuint(_90[3]));
- float4x4 _98 = float4x4(asfloat(_26.Load4(32)) * asfloat(_26.Load4(32)).x, asfloat(_26.Load4(32)) * asfloat(_26.Load4(32)).y, asfloat(_26.Load4(32)) * asfloat(_26.Load4(32)).z, asfloat(_26.Load4(32)) * asfloat(_26.Load4(32)).w);
- _21.Store4(304, asuint(_98[0]));
- _21.Store4(320, asuint(_98[1]));
- _21.Store4(336, asuint(_98[2]));
- _21.Store4(352, asuint(_98[3]));
-}
-
-[numthreads(1, 1, 1)]
-void main()
-{
- comp_main();
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/comp/rmw-matrix.comp b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/comp/rmw-matrix.comp
deleted file mode 100644
index 30ac03f84..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/comp/rmw-matrix.comp
+++ /dev/null
@@ -1,22 +0,0 @@
-static const uint3 gl_WorkGroupSize = uint3(1u, 1u, 1u);
-
-RWByteAddressBuffer _11 : register(u0);
-
-void comp_main()
-{
- _11.Store(0, asuint(asfloat(_11.Load(0)) * asfloat(_11.Load(96))));
- _11.Store4(16, asuint(asfloat(_11.Load4(16)) * asfloat(_11.Load4(112))));
- float4x4 _35 = asfloat(uint4x4(_11.Load4(128), _11.Load4(144), _11.Load4(160), _11.Load4(176)));
- float4x4 _37 = asfloat(uint4x4(_11.Load4(32), _11.Load4(48), _11.Load4(64), _11.Load4(80)));
- float4x4 _38 = mul(_35, _37);
- _11.Store4(32, asuint(_38[0]));
- _11.Store4(48, asuint(_38[1]));
- _11.Store4(64, asuint(_38[2]));
- _11.Store4(80, asuint(_38[3]));
-}
-
-[numthreads(1, 1, 1)]
-void main()
-{
- comp_main();
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/comp/rwbuffer-matrix.comp b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/comp/rwbuffer-matrix.comp
deleted file mode 100644
index a6621c974..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/comp/rwbuffer-matrix.comp
+++ /dev/null
@@ -1,93 +0,0 @@
-static const uint3 gl_WorkGroupSize = uint3(1u, 1u, 1u);
-
-RWByteAddressBuffer _28 : register(u0);
-cbuffer UBO : register(b1)
-{
- int _68_index0 : packoffset(c0);
- int _68_index1 : packoffset(c0.y);
-};
-
-
-void comp_main()
-{
- float4x4 _257 = asfloat(uint4x4(_28.Load(64), _28.Load(80), _28.Load(96), _28.Load(112), _28.Load(68), _28.Load(84), _28.Load(100), _28.Load(116), _28.Load(72), _28.Load(88), _28.Load(104), _28.Load(120), _28.Load(76), _28.Load(92), _28.Load(108), _28.Load(124)));
- _28.Store4(0, asuint(_257[0]));
- _28.Store4(16, asuint(_257[1]));
- _28.Store4(32, asuint(_257[2]));
- _28.Store4(48, asuint(_257[3]));
- float2x2 _260 = asfloat(uint2x2(_28.Load(144), _28.Load(152), _28.Load(148), _28.Load(156)));
- _28.Store2(128, asuint(_260[0]));
- _28.Store2(136, asuint(_260[1]));
- float2x3 _263 = asfloat(uint2x3(_28.Load(192), _28.Load(200), _28.Load(208), _28.Load(196), _28.Load(204), _28.Load(212)));
- _28.Store3(160, asuint(_263[0]));
- _28.Store3(176, asuint(_263[1]));
- float3x2 _266 = asfloat(uint3x2(_28.Load(240), _28.Load(256), _28.Load(244), _28.Load(260), _28.Load(248), _28.Load(264)));
- _28.Store2(216, asuint(_266[0]));
- _28.Store2(224, asuint(_266[1]));
- _28.Store2(232, asuint(_266[2]));
- float4x4 _269 = asfloat(uint4x4(_28.Load4(0), _28.Load4(16), _28.Load4(32), _28.Load4(48)));
- _28.Store(64, asuint(_269[0].x));
- _28.Store(68, asuint(_269[1].x));
- _28.Store(72, asuint(_269[2].x));
- _28.Store(76, asuint(_269[3].x));
- _28.Store(80, asuint(_269[0].y));
- _28.Store(84, asuint(_269[1].y));
- _28.Store(88, asuint(_269[2].y));
- _28.Store(92, asuint(_269[3].y));
- _28.Store(96, asuint(_269[0].z));
- _28.Store(100, asuint(_269[1].z));
- _28.Store(104, asuint(_269[2].z));
- _28.Store(108, asuint(_269[3].z));
- _28.Store(112, asuint(_269[0].w));
- _28.Store(116, asuint(_269[1].w));
- _28.Store(120, asuint(_269[2].w));
- _28.Store(124, asuint(_269[3].w));
- float2x2 _272 = asfloat(uint2x2(_28.Load2(128), _28.Load2(136)));
- _28.Store(144, asuint(_272[0].x));
- _28.Store(148, asuint(_272[1].x));
- _28.Store(152, asuint(_272[0].y));
- _28.Store(156, asuint(_272[1].y));
- float2x3 _275 = asfloat(uint2x3(_28.Load3(160), _28.Load3(176)));
- _28.Store(192, asuint(_275[0].x));
- _28.Store(196, asuint(_275[1].x));
- _28.Store(200, asuint(_275[0].y));
- _28.Store(204, asuint(_275[1].y));
- _28.Store(208, asuint(_275[0].z));
- _28.Store(212, asuint(_275[1].z));
- float3x2 _278 = asfloat(uint3x2(_28.Load2(216), _28.Load2(224), _28.Load2(232)));
- _28.Store(240, asuint(_278[0].x));
- _28.Store(244, asuint(_278[1].x));
- _28.Store(248, asuint(_278[2].x));
- _28.Store(256, asuint(_278[0].y));
- _28.Store(260, asuint(_278[1].y));
- _28.Store(264, asuint(_278[2].y));
- _28.Store(_68_index0 * 4 + _68_index1 * 16 + 64, asuint(1.0f));
- _28.Store(_68_index0 * 4 + _68_index1 * 8 + 144, asuint(2.0f));
- _28.Store(_68_index0 * 4 + _68_index1 * 8 + 192, asuint(3.0f));
- _28.Store(_68_index0 * 4 + _68_index1 * 16 + 240, asuint(4.0f));
- _28.Store(_68_index0 * 4 + 64, asuint(1.0f.x));
- _28.Store(_68_index0 * 4 + 80, asuint(1.0f.xxxx.y));
- _28.Store(_68_index0 * 4 + 96, asuint(1.0f.xxxx.z));
- _28.Store(_68_index0 * 4 + 112, asuint(1.0f.xxxx.w));
- _28.Store(_68_index0 * 4 + 144, asuint(2.0f.x));
- _28.Store(_68_index0 * 4 + 152, asuint(2.0f.xx.y));
- _28.Store(_68_index0 * 4 + 192, asuint(3.0f.x));
- _28.Store(_68_index0 * 4 + 200, asuint(3.0f.xxx.y));
- _28.Store(_68_index0 * 4 + 208, asuint(3.0f.xxx.z));
- _28.Store(_68_index0 * 4 + 240, asuint(4.0f.x));
- _28.Store(_68_index0 * 4 + 256, asuint(4.0f.xx.y));
- _28.Store(_68_index0 * 16 + _68_index1 * 4 + 0, asuint(1.0f));
- _28.Store(_68_index0 * 8 + _68_index1 * 4 + 128, asuint(2.0f));
- _28.Store(_68_index0 * 16 + _68_index1 * 4 + 160, asuint(3.0f));
- _28.Store(_68_index0 * 8 + _68_index1 * 4 + 216, asuint(4.0f));
- _28.Store4(_68_index0 * 16 + 0, asuint(1.0f.xxxx));
- _28.Store2(_68_index0 * 8 + 128, asuint(2.0f.xx));
- _28.Store3(_68_index0 * 16 + 160, asuint(3.0f.xxx));
- _28.Store2(_68_index0 * 8 + 216, asuint(4.0f.xx));
-}
-
-[numthreads(1, 1, 1)]
-void main()
-{
- comp_main();
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/comp/scalar-std450-distance-length-normalize.comp b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/comp/scalar-std450-distance-length-normalize.comp
deleted file mode 100644
index db2bbe969..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/comp/scalar-std450-distance-length-normalize.comp
+++ /dev/null
@@ -1,16 +0,0 @@
-static const uint3 gl_WorkGroupSize = uint3(1u, 1u, 1u);
-
-RWByteAddressBuffer _9 : register(u0);
-
-void comp_main()
-{
- _9.Store(8, asuint(distance(asfloat(_9.Load(0)), asfloat(_9.Load(4)))));
- _9.Store(12, asuint(length(asfloat(_9.Load(0)))));
- _9.Store(16, asuint(sign(asfloat(_9.Load(0)))));
-}
-
-[numthreads(1, 1, 1)]
-void main()
-{
- comp_main();
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/comp/shared.comp b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/comp/shared.comp
deleted file mode 100644
index 9831302af..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/comp/shared.comp
+++ /dev/null
@@ -1,29 +0,0 @@
-static const uint3 gl_WorkGroupSize = uint3(4u, 1u, 1u);
-
-ByteAddressBuffer _22 : register(t0);
-RWByteAddressBuffer _44 : register(u1);
-
-static uint3 gl_GlobalInvocationID;
-static uint gl_LocalInvocationIndex;
-struct SPIRV_Cross_Input
-{
- uint3 gl_GlobalInvocationID : SV_DispatchThreadID;
- uint gl_LocalInvocationIndex : SV_GroupIndex;
-};
-
-groupshared float sShared[4];
-
-void comp_main()
-{
- sShared[gl_LocalInvocationIndex] = asfloat(_22.Load(gl_GlobalInvocationID.x * 4 + 0));
- GroupMemoryBarrierWithGroupSync();
- _44.Store(gl_GlobalInvocationID.x * 4 + 0, asuint(sShared[3u - gl_LocalInvocationIndex]));
-}
-
-[numthreads(4, 1, 1)]
-void main(SPIRV_Cross_Input stage_input)
-{
- gl_GlobalInvocationID = stage_input.gl_GlobalInvocationID;
- gl_LocalInvocationIndex = stage_input.gl_LocalInvocationIndex;
- comp_main();
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/comp/spec-constant-op-member-array.comp b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/comp/spec-constant-op-member-array.comp
deleted file mode 100644
index 4e7c5e616..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/comp/spec-constant-op-member-array.comp
+++ /dev/null
@@ -1,51 +0,0 @@
-#ifndef SPIRV_CROSS_CONSTANT_ID_0
-#define SPIRV_CROSS_CONSTANT_ID_0 100
-#endif
-static const int a = SPIRV_CROSS_CONSTANT_ID_0;
-#ifndef SPIRV_CROSS_CONSTANT_ID_1
-#define SPIRV_CROSS_CONSTANT_ID_1 200
-#endif
-static const int b = SPIRV_CROSS_CONSTANT_ID_1;
-
-struct A
-{
- int member0[a];
- int member1[b];
-};
-
-struct B
-{
- int member0[b];
- int member1[a];
-};
-
-#ifndef SPIRV_CROSS_CONSTANT_ID_2
-#define SPIRV_CROSS_CONSTANT_ID_2 300
-#endif
-static const int c = SPIRV_CROSS_CONSTANT_ID_2;
-static const int d = (c + 50);
-#ifndef SPIRV_CROSS_CONSTANT_ID_3
-#define SPIRV_CROSS_CONSTANT_ID_3 400
-#endif
-static const int e = SPIRV_CROSS_CONSTANT_ID_3;
-static const uint3 gl_WorkGroupSize = uint3(1u, 1u, 1u);
-
-RWByteAddressBuffer _22 : register(u0);
-
-static uint3 gl_GlobalInvocationID;
-struct SPIRV_Cross_Input
-{
- uint3 gl_GlobalInvocationID : SV_DispatchThreadID;
-};
-
-void comp_main()
-{
- _22.Store(gl_GlobalInvocationID.x * 4 + 2800, uint(int(_22.Load(gl_GlobalInvocationID.x * 4 + 2800)) + (int(_22.Load(gl_GlobalInvocationID.x * 4 + 2400)) + e)));
-}
-
-[numthreads(1, 1, 1)]
-void main(SPIRV_Cross_Input stage_input)
-{
- gl_GlobalInvocationID = stage_input.gl_GlobalInvocationID;
- comp_main();
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/comp/spec-constant-work-group-size.comp b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/comp/spec-constant-work-group-size.comp
deleted file mode 100644
index 55ebf32bb..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/comp/spec-constant-work-group-size.comp
+++ /dev/null
@@ -1,43 +0,0 @@
-#ifndef SPIRV_CROSS_CONSTANT_ID_1
-#define SPIRV_CROSS_CONSTANT_ID_1 2
-#endif
-static const int b = SPIRV_CROSS_CONSTANT_ID_1;
-#ifndef SPIRV_CROSS_CONSTANT_ID_0
-#define SPIRV_CROSS_CONSTANT_ID_0 1
-#endif
-static const int a = SPIRV_CROSS_CONSTANT_ID_0;
-static const uint _26 = (uint(a) + 0u);
-#ifndef SPIRV_CROSS_CONSTANT_ID_10
-#define SPIRV_CROSS_CONSTANT_ID_10 1u
-#endif
-static const uint _27 = SPIRV_CROSS_CONSTANT_ID_10;
-static const uint3 gl_WorkGroupSize = uint3(_27, 20u, 1u);
-static const uint _32 = gl_WorkGroupSize.x;
-static const uint _33 = (_26 + _32);
-static const uint _34 = gl_WorkGroupSize.y;
-static const uint _35 = (_33 + _34);
-static const int _42 = (1 - a);
-
-RWByteAddressBuffer _23 : register(u0);
-
-static uint3 gl_GlobalInvocationID;
-struct SPIRV_Cross_Input
-{
- uint3 gl_GlobalInvocationID : SV_DispatchThreadID;
-};
-
-void comp_main()
-{
- int spec_const_array_size[b];
- spec_const_array_size[0] = 10;
- spec_const_array_size[1] = 40;
- spec_const_array_size[a] = a;
- _23.Store((_35 + gl_GlobalInvocationID.x) * 4 + 0, uint(b + spec_const_array_size[_42]));
-}
-
-[numthreads(SPIRV_CROSS_CONSTANT_ID_10, 20, 1)]
-void main(SPIRV_Cross_Input stage_input)
-{
- gl_GlobalInvocationID = stage_input.gl_GlobalInvocationID;
- comp_main();
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/comp/ssbo-array-length.comp b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/comp/ssbo-array-length.comp
deleted file mode 100644
index 82657cacf..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/comp/ssbo-array-length.comp
+++ /dev/null
@@ -1,17 +0,0 @@
-static const uint3 gl_WorkGroupSize = uint3(1u, 1u, 1u);
-
-RWByteAddressBuffer _11 : register(u1);
-
-void comp_main()
-{
- uint _14;
- _11.GetDimensions(_14);
- _14 = (_14 - 16) / 16;
- _11.Store(0, uint(int(_14)));
-}
-
-[numthreads(1, 1, 1)]
-void main()
-{
- comp_main();
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/comp/ssbo-array.comp b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/comp/ssbo-array.comp
deleted file mode 100644
index ee202a222..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/comp/ssbo-array.comp
+++ /dev/null
@@ -1,11 +0,0 @@
-static const uint3 gl_WorkGroupSize = uint3(1u, 1u, 1u);
-
-void comp_main()
-{
-}
-
-[numthreads(1, 1, 1)]
-void main()
-{
- comp_main();
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/array-lut-no-loop-variable.frag b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/array-lut-no-loop-variable.frag
deleted file mode 100644
index 3adf7d985..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/array-lut-no-loop-variable.frag
+++ /dev/null
@@ -1,34 +0,0 @@
-static const float _17[5] = { 1.0f, 2.0f, 3.0f, 4.0f, 5.0f };
-
-static float4 FragColor;
-static float4 v0;
-
-struct SPIRV_Cross_Input
-{
- float4 v0 : TEXCOORD0;
-};
-
-struct SPIRV_Cross_Output
-{
- float4 FragColor : SV_Target0;
-};
-
-void frag_main()
-{
- for (int _46 = 0; _46 < 4; )
- {
- int _33 = _46 + 1;
- FragColor += _17[_33].xxxx;
- _46 = _33;
- continue;
- }
-}
-
-SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input)
-{
- v0 = stage_input.v0;
- frag_main();
- SPIRV_Cross_Output stage_output;
- stage_output.FragColor = FragColor;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/basic-color-3comp.sm30.frag b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/basic-color-3comp.sm30.frag
deleted file mode 100644
index d3697d650..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/basic-color-3comp.sm30.frag
+++ /dev/null
@@ -1,26 +0,0 @@
-static float3 FragColor;
-static float4 vColor;
-
-struct SPIRV_Cross_Input
-{
- float4 vColor : TEXCOORD0;
-};
-
-struct SPIRV_Cross_Output
-{
- float4 FragColor : COLOR0;
-};
-
-void frag_main()
-{
- FragColor = vColor.xyz;
-}
-
-SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input)
-{
- vColor = stage_input.vColor;
- frag_main();
- SPIRV_Cross_Output stage_output;
- stage_output.FragColor = float4(FragColor, 0.0);
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/basic-color-3comp.sm50.frag b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/basic-color-3comp.sm50.frag
deleted file mode 100644
index 52f6fed6c..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/basic-color-3comp.sm50.frag
+++ /dev/null
@@ -1,26 +0,0 @@
-static float3 FragColor;
-static float4 vColor;
-
-struct SPIRV_Cross_Input
-{
- float4 vColor : TEXCOORD0;
-};
-
-struct SPIRV_Cross_Output
-{
- float3 FragColor : SV_Target0;
-};
-
-void frag_main()
-{
- FragColor = vColor.xyz;
-}
-
-SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input)
-{
- vColor = stage_input.vColor;
- frag_main();
- SPIRV_Cross_Output stage_output;
- stage_output.FragColor = FragColor;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/basic.frag b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/basic.frag
deleted file mode 100644
index 6d067041c..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/basic.frag
+++ /dev/null
@@ -1,32 +0,0 @@
-Texture2D uTex : register(t0);
-SamplerState _uTex_sampler : register(s0);
-
-static float4 FragColor;
-static float4 vColor;
-static float2 vTex;
-
-struct SPIRV_Cross_Input
-{
- float4 vColor : TEXCOORD0;
- float2 vTex : TEXCOORD1;
-};
-
-struct SPIRV_Cross_Output
-{
- float4 FragColor : SV_Target0;
-};
-
-void frag_main()
-{
- FragColor = vColor * uTex.Sample(_uTex_sampler, vTex);
-}
-
-SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input)
-{
- vColor = stage_input.vColor;
- vTex = stage_input.vTex;
- frag_main();
- SPIRV_Cross_Output stage_output;
- stage_output.FragColor = FragColor;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/bit-conversions.frag b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/bit-conversions.frag
deleted file mode 100644
index b60b2ebb4..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/bit-conversions.frag
+++ /dev/null
@@ -1,26 +0,0 @@
-static float2 value;
-static float4 FragColor;
-
-struct SPIRV_Cross_Input
-{
- float2 value : TEXCOORD0;
-};
-
-struct SPIRV_Cross_Output
-{
- float4 FragColor : SV_Target0;
-};
-
-void frag_main()
-{
- FragColor = float4(1.0f, 0.0f, asfloat(asint(value.x)), 1.0f);
-}
-
-SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input)
-{
- value = stage_input.value;
- frag_main();
- SPIRV_Cross_Output stage_output;
- stage_output.FragColor = FragColor;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/boolean-mix.frag b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/boolean-mix.frag
deleted file mode 100644
index f3e84898d..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/boolean-mix.frag
+++ /dev/null
@@ -1,27 +0,0 @@
-static float2 FragColor;
-static float2 x0;
-
-struct SPIRV_Cross_Input
-{
- float2 x0 : TEXCOORD0;
-};
-
-struct SPIRV_Cross_Output
-{
- float2 FragColor : SV_Target0;
-};
-
-void frag_main()
-{
- bool2 _27 = (x0.x > x0.y).xx;
- FragColor = float2(_27.x ? float2(1.0f, 0.0f).x : float2(0.0f, 1.0f).x, _27.y ? float2(1.0f, 0.0f).y : float2(0.0f, 1.0f).y);
-}
-
-SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input)
-{
- x0 = stage_input.x0;
- frag_main();
- SPIRV_Cross_Output stage_output;
- stage_output.FragColor = FragColor;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/builtins.frag b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/builtins.frag
deleted file mode 100644
index 922eca7c2..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/builtins.frag
+++ /dev/null
@@ -1,33 +0,0 @@
-static float4 gl_FragCoord;
-static float gl_FragDepth;
-static float4 FragColor;
-static float4 vColor;
-
-struct SPIRV_Cross_Input
-{
- float4 vColor : TEXCOORD0;
- float4 gl_FragCoord : SV_Position;
-};
-
-struct SPIRV_Cross_Output
-{
- float4 FragColor : SV_Target0;
- float gl_FragDepth : SV_Depth;
-};
-
-void frag_main()
-{
- FragColor = gl_FragCoord + vColor;
- gl_FragDepth = 0.5f;
-}
-
-SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input)
-{
- gl_FragCoord = stage_input.gl_FragCoord;
- vColor = stage_input.vColor;
- frag_main();
- SPIRV_Cross_Output stage_output;
- stage_output.gl_FragDepth = gl_FragDepth;
- stage_output.FragColor = FragColor;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/bvec-operations.frag b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/bvec-operations.frag
deleted file mode 100644
index 6a22df1ed..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/bvec-operations.frag
+++ /dev/null
@@ -1,29 +0,0 @@
-static float2 value;
-static float4 FragColor;
-
-struct SPIRV_Cross_Input
-{
- float2 value : TEXCOORD0;
-};
-
-struct SPIRV_Cross_Output
-{
- float4 FragColor : SV_Target0;
-};
-
-bool _47;
-
-void frag_main()
-{
- bool2 _25 = bool2(value.x == 0.0f, _47);
- FragColor = float4(1.0f, 0.0f, float(bool2(!_25.x, !_25.y).x), float(bool2(value.x <= float2(1.5f, 0.5f).x, value.y <= float2(1.5f, 0.5f).y).x));
-}
-
-SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input)
-{
- value = stage_input.value;
- frag_main();
- SPIRV_Cross_Output stage_output;
- stage_output.FragColor = FragColor;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/clip-cull-distance.frag b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/clip-cull-distance.frag
deleted file mode 100644
index 52f1ac30b..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/clip-cull-distance.frag
+++ /dev/null
@@ -1,30 +0,0 @@
-static float gl_ClipDistance[2];
-static float gl_CullDistance[1];
-static float FragColor;
-
-struct SPIRV_Cross_Input
-{
- float2 gl_ClipDistance0 : SV_ClipDistance0;
- float gl_CullDistance0 : SV_CullDistance0;
-};
-
-struct SPIRV_Cross_Output
-{
- float FragColor : SV_Target0;
-};
-
-void frag_main()
-{
- FragColor = (gl_ClipDistance[0] + gl_CullDistance[0]) + gl_ClipDistance[1];
-}
-
-SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input)
-{
- gl_ClipDistance[0] = stage_input.gl_ClipDistance0.x;
- gl_ClipDistance[1] = stage_input.gl_ClipDistance0.y;
- gl_CullDistance[0] = stage_input.gl_CullDistance0.x;
- frag_main();
- SPIRV_Cross_Output stage_output;
- stage_output.FragColor = FragColor;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/combined-texture-sampler-parameter.frag b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/combined-texture-sampler-parameter.frag
deleted file mode 100644
index 18968cb19..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/combined-texture-sampler-parameter.frag
+++ /dev/null
@@ -1,24 +0,0 @@
-Texture2D uSampler : register(t0);
-SamplerState _uSampler_sampler : register(s0);
-Texture2D uSamplerShadow : register(t1);
-SamplerComparisonState _uSamplerShadow_sampler : register(s1);
-
-static float FragColor;
-
-struct SPIRV_Cross_Output
-{
- float FragColor : SV_Target0;
-};
-
-void frag_main()
-{
- FragColor = (uSampler.Sample(_uSampler_sampler, 1.0f.xx) + uSampler.Load(int3(int2(10, 10), 0))).x + uSamplerShadow.SampleCmp(_uSamplerShadow_sampler, 1.0f.xxx.xy, 1.0f);
-}
-
-SPIRV_Cross_Output main()
-{
- frag_main();
- SPIRV_Cross_Output stage_output;
- stage_output.FragColor = FragColor;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/combined-texture-sampler-shadow.frag b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/combined-texture-sampler-shadow.frag
deleted file mode 100644
index 6e8f833b3..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/combined-texture-sampler-shadow.frag
+++ /dev/null
@@ -1,23 +0,0 @@
-Texture2D uDepth : register(t2);
-SamplerComparisonState uSampler : register(s0);
-SamplerState uSampler1 : register(s1);
-
-static float FragColor;
-
-struct SPIRV_Cross_Output
-{
- float FragColor : SV_Target0;
-};
-
-void frag_main()
-{
- FragColor = uDepth.SampleCmp(uSampler, 1.0f.xxx.xy, 1.0f) + uDepth.Sample(uSampler1, 1.0f.xx).x;
-}
-
-SPIRV_Cross_Output main()
-{
- frag_main();
- SPIRV_Cross_Output stage_output;
- stage_output.FragColor = FragColor;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/complex-expression-in-access-chain.frag b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/complex-expression-in-access-chain.frag
deleted file mode 100644
index d9336c09f..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/complex-expression-in-access-chain.frag
+++ /dev/null
@@ -1,37 +0,0 @@
-RWByteAddressBuffer _34 : register(u0);
-Texture2D Buf : register(t1);
-SamplerState _Buf_sampler : register(s1);
-
-static float4 gl_FragCoord;
-static int vIn;
-static int vIn2;
-static float4 FragColor;
-
-struct SPIRV_Cross_Input
-{
- nointerpolation int vIn : TEXCOORD0;
- nointerpolation int vIn2 : TEXCOORD1;
- float4 gl_FragCoord : SV_Position;
-};
-
-struct SPIRV_Cross_Output
-{
- float4 FragColor : SV_Target0;
-};
-
-void frag_main()
-{
- int _40 = Buf.Load(int3(int2(gl_FragCoord.xy), 0)).x % 16;
- FragColor = (asfloat(_34.Load4(_40 * 16 + 0)) + asfloat(_34.Load4(_40 * 16 + 0))) + asfloat(_34.Load4(((vIn * vIn) + (vIn2 * vIn2)) * 16 + 0));
-}
-
-SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input)
-{
- gl_FragCoord = stage_input.gl_FragCoord;
- vIn = stage_input.vIn;
- vIn2 = stage_input.vIn2;
- frag_main();
- SPIRV_Cross_Output stage_output;
- stage_output.FragColor = FragColor;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/constant-composites.frag b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/constant-composites.frag
deleted file mode 100644
index 306ca5cad..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/constant-composites.frag
+++ /dev/null
@@ -1,38 +0,0 @@
-struct Foo
-{
- float a;
- float b;
-};
-
-static const float _16[4] = { 1.0f, 4.0f, 3.0f, 2.0f };
-static const Foo _24 = { 10.0f, 20.0f };
-static const Foo _27 = { 30.0f, 40.0f };
-static const Foo _28[2] = { { 10.0f, 20.0f }, { 30.0f, 40.0f } };
-
-static float4 FragColor;
-static int _line;
-
-struct SPIRV_Cross_Input
-{
- nointerpolation int _line : TEXCOORD0;
-};
-
-struct SPIRV_Cross_Output
-{
- float4 FragColor : SV_Target0;
-};
-
-void frag_main()
-{
- FragColor = _16[_line].xxxx;
- FragColor += (_28[_line].a * _28[1 - _line].a).xxxx;
-}
-
-SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input)
-{
- _line = stage_input._line;
- frag_main();
- SPIRV_Cross_Output stage_output;
- stage_output.FragColor = FragColor;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/control-dependent-in-branch.desktop.frag b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/control-dependent-in-branch.desktop.frag
deleted file mode 100644
index 1b314e13b..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/control-dependent-in-branch.desktop.frag
+++ /dev/null
@@ -1,55 +0,0 @@
-Texture2D uSampler : register(t0);
-SamplerState _uSampler_sampler : register(s0);
-
-static float4 FragColor;
-static float4 vInput;
-
-struct SPIRV_Cross_Input
-{
- float4 vInput : TEXCOORD0;
-};
-
-struct SPIRV_Cross_Output
-{
- float4 FragColor : SV_Target0;
-};
-
-void frag_main()
-{
- FragColor = vInput;
- float4 _23 = uSampler.Sample(_uSampler_sampler, vInput.xy);
- float4 _26 = ddx(vInput);
- float4 _29 = ddy(vInput);
- float4 _32 = fwidth(vInput);
- float4 _35 = ddx_coarse(vInput);
- float4 _38 = ddy_coarse(vInput);
- float4 _41 = fwidth(vInput);
- float4 _44 = ddx_fine(vInput);
- float4 _47 = ddy_fine(vInput);
- float4 _50 = fwidth(vInput);
- float _56_tmp = uSampler.CalculateLevelOfDetail(_uSampler_sampler, vInput.zw);
- float2 _56 = _56_tmp.xx;
- if (vInput.y > 10.0f)
- {
- FragColor += _23;
- FragColor += _26;
- FragColor += _29;
- FragColor += _32;
- FragColor += _35;
- FragColor += _38;
- FragColor += _41;
- FragColor += _44;
- FragColor += _47;
- FragColor += _50;
- FragColor += _56.xyxy;
- }
-}
-
-SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input)
-{
- vInput = stage_input.vInput;
- frag_main();
- SPIRV_Cross_Output stage_output;
- stage_output.FragColor = FragColor;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/demote-to-helper.frag b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/demote-to-helper.frag
deleted file mode 100644
index 743a4228b..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/demote-to-helper.frag
+++ /dev/null
@@ -1,9 +0,0 @@
-void frag_main()
-{
- discard;
-}
-
-void main()
-{
- frag_main();
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/depth-greater-than.frag b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/depth-greater-than.frag
deleted file mode 100644
index b9f50db00..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/depth-greater-than.frag
+++ /dev/null
@@ -1,19 +0,0 @@
-static float gl_FragDepth;
-struct SPIRV_Cross_Output
-{
- float gl_FragDepth : SV_DepthGreaterEqual;
-};
-
-void frag_main()
-{
- gl_FragDepth = 0.5f;
-}
-
-[earlydepthstencil]
-SPIRV_Cross_Output main()
-{
- frag_main();
- SPIRV_Cross_Output stage_output;
- stage_output.gl_FragDepth = gl_FragDepth;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/depth-less-than.frag b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/depth-less-than.frag
deleted file mode 100644
index a702fd9f8..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/depth-less-than.frag
+++ /dev/null
@@ -1,19 +0,0 @@
-static float gl_FragDepth;
-struct SPIRV_Cross_Output
-{
- float gl_FragDepth : SV_DepthLessEqual;
-};
-
-void frag_main()
-{
- gl_FragDepth = 0.5f;
-}
-
-[earlydepthstencil]
-SPIRV_Cross_Output main()
-{
- frag_main();
- SPIRV_Cross_Output stage_output;
- stage_output.gl_FragDepth = gl_FragDepth;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/dual-source-blending.frag b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/dual-source-blending.frag
deleted file mode 100644
index 961e80001..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/dual-source-blending.frag
+++ /dev/null
@@ -1,23 +0,0 @@
-static float4 FragColor0;
-static float4 FragColor1;
-
-struct SPIRV_Cross_Output
-{
- float4 FragColor0 : SV_Target0;
- float4 FragColor1 : SV_Target1;
-};
-
-void frag_main()
-{
- FragColor0 = 1.0f.xxxx;
- FragColor1 = 2.0f.xxxx;
-}
-
-SPIRV_Cross_Output main()
-{
- frag_main();
- SPIRV_Cross_Output stage_output;
- stage_output.FragColor0 = FragColor0;
- stage_output.FragColor1 = FragColor1;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/early-fragment-test.frag b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/early-fragment-test.frag
deleted file mode 100644
index ae2569d5c..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/early-fragment-test.frag
+++ /dev/null
@@ -1,9 +0,0 @@
-void frag_main()
-{
-}
-
-[earlydepthstencil]
-void main()
-{
- frag_main();
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/for-loop-continue-control-flow.frag b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/for-loop-continue-control-flow.frag
deleted file mode 100644
index f37c1fcc4..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/for-loop-continue-control-flow.frag
+++ /dev/null
@@ -1,25 +0,0 @@
-static float4 FragColor;
-
-struct SPIRV_Cross_Output
-{
- float4 FragColor : SV_Target0;
-};
-
-void frag_main()
-{
- FragColor = 0.0f.xxxx;
- for (int _43 = 0; _43 < 3; )
- {
- FragColor[_43] += float(_43);
- _43++;
- continue;
- }
-}
-
-SPIRV_Cross_Output main()
-{
- frag_main();
- SPIRV_Cross_Output stage_output;
- stage_output.FragColor = FragColor;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/fp16-packing.frag b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/fp16-packing.frag
deleted file mode 100644
index d87828225..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/fp16-packing.frag
+++ /dev/null
@@ -1,44 +0,0 @@
-static float2 FP32Out;
-static uint FP16;
-static uint FP16Out;
-static float2 FP32;
-
-struct SPIRV_Cross_Input
-{
- nointerpolation uint FP16 : TEXCOORD0;
- nointerpolation float2 FP32 : TEXCOORD1;
-};
-
-struct SPIRV_Cross_Output
-{
- float2 FP32Out : SV_Target0;
- uint FP16Out : SV_Target1;
-};
-
-uint SPIRV_Cross_packHalf2x16(float2 value)
-{
- uint2 Packed = f32tof16(value);
- return Packed.x | (Packed.y << 16);
-}
-
-float2 SPIRV_Cross_unpackHalf2x16(uint value)
-{
- return f16tof32(uint2(value & 0xffff, value >> 16));
-}
-
-void frag_main()
-{
- FP32Out = SPIRV_Cross_unpackHalf2x16(FP16);
- FP16Out = SPIRV_Cross_packHalf2x16(FP32);
-}
-
-SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input)
-{
- FP16 = stage_input.FP16;
- FP32 = stage_input.FP32;
- frag_main();
- SPIRV_Cross_Output stage_output;
- stage_output.FP32Out = FP32Out;
- stage_output.FP16Out = FP16Out;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/front-facing.frag b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/front-facing.frag
deleted file mode 100644
index 4ed09a2bd..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/front-facing.frag
+++ /dev/null
@@ -1,39 +0,0 @@
-static bool gl_FrontFacing;
-static float4 FragColor;
-static float4 vA;
-static float4 vB;
-
-struct SPIRV_Cross_Input
-{
- float4 vA : TEXCOORD0;
- float4 vB : TEXCOORD1;
- bool gl_FrontFacing : SV_IsFrontFace;
-};
-
-struct SPIRV_Cross_Output
-{
- float4 FragColor : SV_Target0;
-};
-
-void frag_main()
-{
- if (gl_FrontFacing)
- {
- FragColor = vA;
- }
- else
- {
- FragColor = vB;
- }
-}
-
-SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input)
-{
- gl_FrontFacing = stage_input.gl_FrontFacing;
- vA = stage_input.vA;
- vB = stage_input.vB;
- frag_main();
- SPIRV_Cross_Output stage_output;
- stage_output.FragColor = FragColor;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/image-query-selective.frag b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/image-query-selective.frag
deleted file mode 100644
index 3b50282fe..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/image-query-selective.frag
+++ /dev/null
@@ -1,8 +0,0 @@
-void frag_main()
-{
-}
-
-void main()
-{
- frag_main();
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/image-query.frag b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/image-query.frag
deleted file mode 100644
index 3b50282fe..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/image-query.frag
+++ /dev/null
@@ -1,8 +0,0 @@
-void frag_main()
-{
-}
-
-void main()
-{
- frag_main();
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/input-attachment-ms.frag b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/input-attachment-ms.frag
deleted file mode 100644
index e206b8379..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/input-attachment-ms.frag
+++ /dev/null
@@ -1,32 +0,0 @@
-Texture2DMS uSubpass0 : register(t0);
-Texture2DMS uSubpass1 : register(t1);
-
-static float4 gl_FragCoord;
-static int gl_SampleID;
-static float4 FragColor;
-
-struct SPIRV_Cross_Input
-{
- float4 gl_FragCoord : SV_Position;
- uint gl_SampleID : SV_SampleIndex;
-};
-
-struct SPIRV_Cross_Output
-{
- float4 FragColor : SV_Target0;
-};
-
-void frag_main()
-{
- FragColor = (uSubpass0.Load(int2(gl_FragCoord.xy), 1) + uSubpass1.Load(int2(gl_FragCoord.xy), 2)) + uSubpass0.Load(int2(gl_FragCoord.xy), gl_SampleID);
-}
-
-SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input)
-{
- gl_FragCoord = stage_input.gl_FragCoord;
- gl_SampleID = stage_input.gl_SampleID;
- frag_main();
- SPIRV_Cross_Output stage_output;
- stage_output.FragColor = FragColor;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/input-attachment.frag b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/input-attachment.frag
deleted file mode 100644
index d87661e5f..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/input-attachment.frag
+++ /dev/null
@@ -1,29 +0,0 @@
-Texture2D uSubpass0 : register(t0);
-Texture2D uSubpass1 : register(t1);
-
-static float4 gl_FragCoord;
-static float4 FragColor;
-
-struct SPIRV_Cross_Input
-{
- float4 gl_FragCoord : SV_Position;
-};
-
-struct SPIRV_Cross_Output
-{
- float4 FragColor : SV_Target0;
-};
-
-void frag_main()
-{
- FragColor = uSubpass0.Load(int3(int2(gl_FragCoord.xy), 0)) + uSubpass1.Load(int3(int2(gl_FragCoord.xy), 0));
-}
-
-SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input)
-{
- gl_FragCoord = stage_input.gl_FragCoord;
- frag_main();
- SPIRV_Cross_Output stage_output;
- stage_output.FragColor = FragColor;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/io-block.frag b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/io-block.frag
deleted file mode 100644
index 52c1f518b..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/io-block.frag
+++ /dev/null
@@ -1,28 +0,0 @@
-static float4 FragColor;
-
-struct VertexOut
-{
- float4 a : TEXCOORD1;
- float4 b : TEXCOORD2;
-};
-
-static VertexOut _12;
-
-struct SPIRV_Cross_Output
-{
- float4 FragColor : SV_Target0;
-};
-
-void frag_main()
-{
- FragColor = _12.a + _12.b;
-}
-
-SPIRV_Cross_Output main(in VertexOut stage_input_12)
-{
- _12 = stage_input_12;
- frag_main();
- SPIRV_Cross_Output stage_output;
- stage_output.FragColor = FragColor;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/lut-promotion.frag b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/lut-promotion.frag
deleted file mode 100644
index 4d89d36eb..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/lut-promotion.frag
+++ /dev/null
@@ -1,55 +0,0 @@
-static const float _16[16] = { 1.0f, 2.0f, 3.0f, 4.0f, 1.0f, 2.0f, 3.0f, 4.0f, 1.0f, 2.0f, 3.0f, 4.0f, 1.0f, 2.0f, 3.0f, 4.0f };
-static const float4 _60[4] = { 0.0f.xxxx, 1.0f.xxxx, 8.0f.xxxx, 5.0f.xxxx };
-static const float4 _104[4] = { 20.0f.xxxx, 30.0f.xxxx, 50.0f.xxxx, 60.0f.xxxx };
-
-static float FragColor;
-static int index;
-
-struct SPIRV_Cross_Input
-{
- nointerpolation int index : TEXCOORD0;
-};
-
-struct SPIRV_Cross_Output
-{
- float FragColor : SV_Target0;
-};
-
-void frag_main()
-{
- FragColor = _16[index];
- if (index < 10)
- {
- FragColor += _16[index ^ 1];
- }
- else
- {
- FragColor += _16[index & 1];
- }
- bool _63 = index > 30;
- if (_63)
- {
- FragColor += _60[index & 3].y;
- }
- else
- {
- FragColor += _60[index & 1].x;
- }
- float4 foobar[4] = _60;
- if (_63)
- {
- foobar[1].z = 20.0f;
- }
- int _91 = index & 3;
- FragColor += foobar[_91].z;
- FragColor += _104[_91].z;
-}
-
-SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input)
-{
- index = stage_input.index;
- frag_main();
- SPIRV_Cross_Output stage_output;
- stage_output.FragColor = FragColor;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/matrix-input.frag b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/matrix-input.frag
deleted file mode 100644
index 92d87d396..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/matrix-input.frag
+++ /dev/null
@@ -1,26 +0,0 @@
-static float4 FragColor;
-static float4x4 m;
-
-struct SPIRV_Cross_Input
-{
- float4x4 m : TEXCOORD1;
-};
-
-struct SPIRV_Cross_Output
-{
- float4 FragColor : SV_Target0;
-};
-
-void frag_main()
-{
- FragColor = ((m[0] + m[1]) + m[2]) + m[3];
-}
-
-SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input)
-{
- m = stage_input.m;
- frag_main();
- SPIRV_Cross_Output stage_output;
- stage_output.FragColor = FragColor;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/mod.frag b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/mod.frag
deleted file mode 100644
index 41ac93049..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/mod.frag
+++ /dev/null
@@ -1,67 +0,0 @@
-static float4 a4;
-static float4 b4;
-static float3 a3;
-static float3 b3;
-static float2 a2;
-static float2 b2;
-static float a1;
-static float b1;
-static float4 FragColor;
-
-struct SPIRV_Cross_Input
-{
- float4 a4 : TEXCOORD0;
- float3 a3 : TEXCOORD1;
- float2 a2 : TEXCOORD2;
- float a1 : TEXCOORD3;
- float4 b4 : TEXCOORD4;
- float3 b3 : TEXCOORD5;
- float2 b2 : TEXCOORD6;
- float b1 : TEXCOORD7;
-};
-
-struct SPIRV_Cross_Output
-{
- float4 FragColor : SV_Target0;
-};
-
-float mod(float x, float y)
-{
- return x - y * floor(x / y);
-}
-
-float2 mod(float2 x, float2 y)
-{
- return x - y * floor(x / y);
-}
-
-float3 mod(float3 x, float3 y)
-{
- return x - y * floor(x / y);
-}
-
-float4 mod(float4 x, float4 y)
-{
- return x - y * floor(x / y);
-}
-
-void frag_main()
-{
- FragColor = ((mod(a4, b4) + mod(a3, b3).xyzx) + mod(a2, b2).xyxy) + mod(a1, b1).xxxx;
-}
-
-SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input)
-{
- a4 = stage_input.a4;
- b4 = stage_input.b4;
- a3 = stage_input.a3;
- b3 = stage_input.b3;
- a2 = stage_input.a2;
- b2 = stage_input.b2;
- a1 = stage_input.a1;
- b1 = stage_input.b1;
- frag_main();
- SPIRV_Cross_Output stage_output;
- stage_output.FragColor = FragColor;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/mrt.frag b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/mrt.frag
deleted file mode 100644
index e69e91196..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/mrt.frag
+++ /dev/null
@@ -1,31 +0,0 @@
-static float4 RT0;
-static float4 RT1;
-static float4 RT2;
-static float4 RT3;
-
-struct SPIRV_Cross_Output
-{
- float4 RT0 : SV_Target0;
- float4 RT1 : SV_Target1;
- float4 RT2 : SV_Target2;
- float4 RT3 : SV_Target3;
-};
-
-void frag_main()
-{
- RT0 = 1.0f.xxxx;
- RT1 = 2.0f.xxxx;
- RT2 = 3.0f.xxxx;
- RT3 = 4.0f.xxxx;
-}
-
-SPIRV_Cross_Output main()
-{
- frag_main();
- SPIRV_Cross_Output stage_output;
- stage_output.RT0 = RT0;
- stage_output.RT1 = RT1;
- stage_output.RT2 = RT2;
- stage_output.RT3 = RT3;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/no-return.frag b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/no-return.frag
deleted file mode 100644
index 3b50282fe..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/no-return.frag
+++ /dev/null
@@ -1,8 +0,0 @@
-void frag_main()
-{
-}
-
-void main()
-{
- frag_main();
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/no-return2.frag b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/no-return2.frag
deleted file mode 100644
index e9d7bbc8f..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/no-return2.frag
+++ /dev/null
@@ -1,16 +0,0 @@
-static float4 vColor;
-
-struct SPIRV_Cross_Input
-{
- float4 vColor : TEXCOORD0;
-};
-
-void frag_main()
-{
-}
-
-void main(SPIRV_Cross_Input stage_input)
-{
- vColor = stage_input.vColor;
- frag_main();
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/nonuniform-qualifier.nonuniformresource.sm51.frag b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/nonuniform-qualifier.nonuniformresource.sm51.frag
deleted file mode 100644
index 65b486518..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/nonuniform-qualifier.nonuniformresource.sm51.frag
+++ /dev/null
@@ -1,49 +0,0 @@
-struct UBO_1_1
-{
- float4 v[64];
-};
-
-ConstantBuffer ubos[] : register(b0, space3);
-ByteAddressBuffer ssbos[] : register(t0, space4);
-Texture2D uSamplers[] : register(t0, space0);
-SamplerState uSamps[] : register(s0, space2);
-Texture2D uCombinedSamplers[] : register(t0, space1);
-SamplerState _uCombinedSamplers_sampler[] : register(s0, space1);
-
-static int vIndex;
-static float4 FragColor;
-static float2 vUV;
-
-struct SPIRV_Cross_Input
-{
- nointerpolation int vIndex : TEXCOORD0;
- float2 vUV : TEXCOORD1;
-};
-
-struct SPIRV_Cross_Output
-{
- float4 FragColor : SV_Target0;
-};
-
-void frag_main()
-{
- int _23 = vIndex + 10;
- int _34 = vIndex + 40;
- FragColor = uSamplers[NonUniformResourceIndex(_23)].Sample(uSamps[NonUniformResourceIndex(_34)], vUV);
- FragColor = uCombinedSamplers[NonUniformResourceIndex(_23)].Sample(_uCombinedSamplers_sampler[NonUniformResourceIndex(_23)], vUV);
- int _66 = vIndex + 20;
- FragColor += ubos[NonUniformResourceIndex(_66)].v[_34];
- int _84 = vIndex + 50;
- int _88 = vIndex + 60;
- FragColor += asfloat(ssbos[NonUniformResourceIndex(_84)].Load4(_88 * 16 + 0));
-}
-
-SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input)
-{
- vIndex = stage_input.vIndex;
- vUV = stage_input.vUV;
- frag_main();
- SPIRV_Cross_Output stage_output;
- stage_output.FragColor = FragColor;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/partial-write-preserve.frag b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/partial-write-preserve.frag
deleted file mode 100644
index 3b50282fe..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/partial-write-preserve.frag
+++ /dev/null
@@ -1,8 +0,0 @@
-void frag_main()
-{
-}
-
-void main()
-{
- frag_main();
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/pixel-interlock-ordered.sm51.fxconly.frag b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/pixel-interlock-ordered.sm51.fxconly.frag
deleted file mode 100644
index 8923f96a7..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/pixel-interlock-ordered.sm51.fxconly.frag
+++ /dev/null
@@ -1,24 +0,0 @@
-RWByteAddressBuffer _9 : register(u6, space0);
-globallycoherent RasterizerOrderedByteAddressBuffer _42 : register(u3, space0);
-RasterizerOrderedByteAddressBuffer _52 : register(u4, space0);
-RWTexture2D img4 : register(u5, space0);
-RasterizerOrderedTexture2D img : register(u0, space0);
-RasterizerOrderedTexture2D img3 : register(u2, space0);
-RasterizerOrderedTexture2D img2 : register(u1, space0);
-
-void frag_main()
-{
- _9.Store(0, uint(0));
- img4[int2(1, 1)] = float4(1.0f, 0.0f, 0.0f, 1.0f);
- img[int2(0, 0)] = img3[int2(0, 0)];
- uint _39;
- InterlockedAdd(img2[int2(0, 0)], 1u, _39);
- _42.Store(0, uint(int(_42.Load(0)) + 42));
- uint _55;
- _42.InterlockedAnd(4, _52.Load(0), _55);
-}
-
-void main()
-{
- frag_main();
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/point-coord-compat.frag b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/point-coord-compat.frag
deleted file mode 100644
index 629153982..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/point-coord-compat.frag
+++ /dev/null
@@ -1,19 +0,0 @@
-static float2 FragColor;
-
-struct SPIRV_Cross_Output
-{
- float2 FragColor : SV_Target0;
-};
-
-void frag_main()
-{
- FragColor = float2(0.5f, 0.5f);
-}
-
-SPIRV_Cross_Output main()
-{
- frag_main();
- SPIRV_Cross_Output stage_output;
- stage_output.FragColor = FragColor;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/query-lod.desktop.frag b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/query-lod.desktop.frag
deleted file mode 100644
index a9d4bd83d..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/query-lod.desktop.frag
+++ /dev/null
@@ -1,31 +0,0 @@
-Texture2D uSampler : register(t0);
-SamplerState _uSampler_sampler : register(s0);
-
-static float4 FragColor;
-static float2 vTexCoord;
-
-struct SPIRV_Cross_Input
-{
- float2 vTexCoord : TEXCOORD0;
-};
-
-struct SPIRV_Cross_Output
-{
- float4 FragColor : SV_Target0;
-};
-
-void frag_main()
-{
- float _19_tmp = uSampler.CalculateLevelOfDetail(_uSampler_sampler, vTexCoord);
- float2 _19 = _19_tmp.xx;
- FragColor = _19.xyxy;
-}
-
-SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input)
-{
- vTexCoord = stage_input.vTexCoord;
- frag_main();
- SPIRV_Cross_Output stage_output;
- stage_output.FragColor = FragColor;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/resources.frag b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/resources.frag
deleted file mode 100644
index aac0d53a1..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/resources.frag
+++ /dev/null
@@ -1,41 +0,0 @@
-cbuffer CBuffer : register(b3)
-{
- float4 cbuf_a : packoffset(c0);
-};
-
-cbuffer PushMe
-{
- float4 registers_d : packoffset(c0);
-};
-
-Texture2D uSampledImage : register(t4);
-SamplerState _uSampledImage_sampler : register(s4);
-Texture2D uTexture : register(t5);
-SamplerState uSampler : register(s6);
-
-static float2 vTex;
-static float4 FragColor;
-
-struct SPIRV_Cross_Input
-{
- float2 vTex : TEXCOORD0;
-};
-
-struct SPIRV_Cross_Output
-{
- float4 FragColor : SV_Target0;
-};
-
-void frag_main()
-{
- FragColor = (uSampledImage.Sample(_uSampledImage_sampler, vTex) + uTexture.Sample(uSampler, vTex)) + (cbuf_a + registers_d);
-}
-
-SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input)
-{
- vTex = stage_input.vTex;
- frag_main();
- SPIRV_Cross_Output stage_output;
- stage_output.FragColor = FragColor;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/row-major-layout-in-struct.frag b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/row-major-layout-in-struct.frag
deleted file mode 100644
index 7df0fd91d..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/row-major-layout-in-struct.frag
+++ /dev/null
@@ -1,38 +0,0 @@
-struct Foo
-{
- row_major float4x4 v;
- row_major float4x4 w;
-};
-
-cbuffer UBO : register(b0)
-{
- Foo _17_foo : packoffset(c0);
-};
-
-
-static float4 FragColor;
-static float4 vUV;
-
-struct SPIRV_Cross_Input
-{
- float4 vUV : TEXCOORD0;
-};
-
-struct SPIRV_Cross_Output
-{
- float4 FragColor : SV_Target0;
-};
-
-void frag_main()
-{
- FragColor = mul(mul(vUV, _17_foo.w), _17_foo.v);
-}
-
-SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input)
-{
- vUV = stage_input.vUV;
- frag_main();
- SPIRV_Cross_Output stage_output;
- stage_output.FragColor = FragColor;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/sample-cmp-level-zero.frag b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/sample-cmp-level-zero.frag
deleted file mode 100644
index c6539b183..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/sample-cmp-level-zero.frag
+++ /dev/null
@@ -1,40 +0,0 @@
-Texture2D uSampler2D : register(t0);
-SamplerComparisonState _uSampler2D_sampler : register(s0);
-Texture2DArray uSampler2DArray : register(t1);
-SamplerComparisonState _uSampler2DArray_sampler : register(s1);
-TextureCube uSamplerCube : register(t2);
-SamplerComparisonState _uSamplerCube_sampler : register(s2);
-TextureCubeArray uSamplerCubeArray : register(t3);
-SamplerComparisonState _uSamplerCubeArray_sampler : register(s3);
-
-static float3 vUVRef;
-static float4 vDirRef;
-static float FragColor;
-
-struct SPIRV_Cross_Input
-{
- float3 vUVRef : TEXCOORD0;
- float4 vDirRef : TEXCOORD1;
-};
-
-struct SPIRV_Cross_Output
-{
- float FragColor : SV_Target0;
-};
-
-void frag_main()
-{
- float4 _80 = vDirRef;
- _80.z = vDirRef.w;
- FragColor = (((((((uSampler2D.SampleCmp(_uSampler2D_sampler, vUVRef.xy, vUVRef.z, int2(-1, -1)) + uSampler2DArray.SampleCmp(_uSampler2DArray_sampler, vDirRef.xyz, vDirRef.w, int2(-1, -1))) + uSamplerCube.SampleCmp(_uSamplerCube_sampler, vDirRef.xyz, vDirRef.w)) + uSamplerCubeArray.SampleCmp(_uSamplerCubeArray_sampler, vDirRef, 0.5f)) + uSampler2D.SampleCmpLevelZero(_uSampler2D_sampler, vUVRef.xy, vUVRef.z, int2(-1, -1))) + uSampler2DArray.SampleCmpLevelZero(_uSampler2DArray_sampler, vDirRef.xyz, vDirRef.w, int2(-1, -1))) + uSamplerCube.SampleCmpLevelZero(_uSamplerCube_sampler, vDirRef.xyz, vDirRef.w)) + uSampler2D.SampleCmp(_uSampler2D_sampler, _80.xy / _80.z, vDirRef.z / _80.z, int2(1, 1))) + uSampler2D.SampleCmpLevelZero(_uSampler2D_sampler, _80.xy / _80.z, vDirRef.z / _80.z, int2(1, 1));
-}
-
-SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input)
-{
- vUVRef = stage_input.vUVRef;
- vDirRef = stage_input.vDirRef;
- frag_main();
- SPIRV_Cross_Output stage_output;
- stage_output.FragColor = FragColor;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/sampler-array.frag b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/sampler-array.frag
deleted file mode 100644
index 1eced29be..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/sampler-array.frag
+++ /dev/null
@@ -1,30 +0,0 @@
-Texture2D uCombined[4] : register(t0);
-SamplerState _uCombined_sampler[4] : register(s0);
-Texture2D uTex[4] : register(t4);
-SamplerState uSampler[4] : register(s8);
-RWTexture2D uImage[8] : register(u12);
-
-static float4 gl_FragCoord;
-static float2 vTex;
-static int vIndex;
-
-struct SPIRV_Cross_Input
-{
- float2 vTex : TEXCOORD0;
- nointerpolation int vIndex : TEXCOORD1;
- float4 gl_FragCoord : SV_Position;
-};
-
-void frag_main()
-{
- int _72 = vIndex + 1;
- uImage[vIndex][int2(gl_FragCoord.xy)] = ((uCombined[vIndex].Sample(_uCombined_sampler[vIndex], vTex) + uTex[vIndex].Sample(uSampler[vIndex], vTex)) + uCombined[_72].Sample(_uCombined_sampler[_72], vTex)) + uTex[_72].Sample(uSampler[_72], vTex);
-}
-
-void main(SPIRV_Cross_Input stage_input)
-{
- gl_FragCoord = stage_input.gl_FragCoord;
- vTex = stage_input.vTex;
- vIndex = stage_input.vIndex;
- frag_main();
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/sampler-image-arrays.frag b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/sampler-image-arrays.frag
deleted file mode 100644
index b6d0e9421..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/sampler-image-arrays.frag
+++ /dev/null
@@ -1,39 +0,0 @@
-Texture2D uSampler[4] : register(t0);
-SamplerState _uSampler_sampler[4] : register(s0);
-Texture2D uTextures[4] : register(t8);
-SamplerState uSamplers[4] : register(s4);
-
-static int vIndex;
-static float2 vTex;
-static float4 FragColor;
-
-struct SPIRV_Cross_Input
-{
- nointerpolation float2 vTex : TEXCOORD0;
- nointerpolation int vIndex : TEXCOORD1;
-};
-
-struct SPIRV_Cross_Output
-{
- float4 FragColor : SV_Target0;
-};
-
-void frag_main()
-{
- FragColor = 0.0f.xxxx;
- FragColor += uTextures[2].Sample(uSamplers[1], vTex);
- FragColor += uSampler[vIndex].Sample(_uSampler_sampler[vIndex], vTex);
- FragColor += uSampler[vIndex].Sample(_uSampler_sampler[vIndex], vTex + 0.100000001490116119384765625f.xx);
- FragColor += uSampler[vIndex].Sample(_uSampler_sampler[vIndex], vTex + 0.20000000298023223876953125f.xx);
- FragColor += uSampler[3].Sample(_uSampler_sampler[3], vTex + 0.300000011920928955078125f.xx);
-}
-
-SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input)
-{
- vIndex = stage_input.vIndex;
- vTex = stage_input.vTex;
- frag_main();
- SPIRV_Cross_Output stage_output;
- stage_output.FragColor = FragColor;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/scalar-refract-reflect.frag b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/scalar-refract-reflect.frag
deleted file mode 100644
index 0fb694c54..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/scalar-refract-reflect.frag
+++ /dev/null
@@ -1,49 +0,0 @@
-static float FragColor;
-static float3 vRefract;
-
-struct SPIRV_Cross_Input
-{
- float3 vRefract : TEXCOORD0;
-};
-
-struct SPIRV_Cross_Output
-{
- float FragColor : SV_Target0;
-};
-
-float SPIRV_Cross_Reflect(float i, float n)
-{
- return i - 2.0 * dot(n, i) * n;
-}
-
-float SPIRV_Cross_Refract(float i, float n, float eta)
-{
- float NoI = n * i;
- float NoI2 = NoI * NoI;
- float k = 1.0 - eta * eta * (1.0 - NoI2);
- if (k < 0.0)
- {
- return 0.0;
- }
- else
- {
- return eta * i - (eta * NoI + sqrt(k)) * n;
- }
-}
-
-void frag_main()
-{
- FragColor = SPIRV_Cross_Refract(vRefract.x, vRefract.y, vRefract.z);
- FragColor += SPIRV_Cross_Reflect(vRefract.x, vRefract.y);
- FragColor += refract(vRefract.xy, vRefract.yz, vRefract.z).y;
- FragColor += reflect(vRefract.xy, vRefract.zy).y;
-}
-
-SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input)
-{
- vRefract = stage_input.vRefract;
- frag_main();
- SPIRV_Cross_Output stage_output;
- stage_output.FragColor = FragColor;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/separate-combined-fake-overload.sm30.frag b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/separate-combined-fake-overload.sm30.frag
deleted file mode 100644
index faed40678..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/separate-combined-fake-overload.sm30.frag
+++ /dev/null
@@ -1,22 +0,0 @@
-uniform sampler2D uSamp;
-uniform sampler2D SPIRV_Cross_CombineduTuS;
-
-static float4 FragColor;
-
-struct SPIRV_Cross_Output
-{
- float4 FragColor : COLOR0;
-};
-
-void frag_main()
-{
- FragColor = tex2D(uSamp, 0.5f.xx) + tex2D(SPIRV_Cross_CombineduTuS, 0.5f.xx);
-}
-
-SPIRV_Cross_Output main()
-{
- frag_main();
- SPIRV_Cross_Output stage_output;
- stage_output.FragColor = float4(FragColor);
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/spec-constant-block-size.frag b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/spec-constant-block-size.frag
deleted file mode 100644
index 415886dd3..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/spec-constant-block-size.frag
+++ /dev/null
@@ -1,37 +0,0 @@
-#ifndef SPIRV_CROSS_CONSTANT_ID_10
-#define SPIRV_CROSS_CONSTANT_ID_10 2
-#endif
-static const int Value = SPIRV_CROSS_CONSTANT_ID_10;
-
-cbuffer SpecConstArray : register(b0)
-{
- float4 _15_samples[Value] : packoffset(c0);
-};
-
-
-static float4 FragColor;
-static int Index;
-
-struct SPIRV_Cross_Input
-{
- nointerpolation int Index : TEXCOORD0;
-};
-
-struct SPIRV_Cross_Output
-{
- float4 FragColor : SV_Target0;
-};
-
-void frag_main()
-{
- FragColor = _15_samples[Index];
-}
-
-SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input)
-{
- Index = stage_input.Index;
- frag_main();
- SPIRV_Cross_Output stage_output;
- stage_output.FragColor = FragColor;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/spec-constant-ternary.frag b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/spec-constant-ternary.frag
deleted file mode 100644
index 942da54f0..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/spec-constant-ternary.frag
+++ /dev/null
@@ -1,26 +0,0 @@
-#ifndef SPIRV_CROSS_CONSTANT_ID_0
-#define SPIRV_CROSS_CONSTANT_ID_0 10u
-#endif
-static const uint s = SPIRV_CROSS_CONSTANT_ID_0;
-static const bool _13 = (s > 20u);
-static const uint f = _13 ? 30u : 50u;
-
-static float FragColor;
-
-struct SPIRV_Cross_Output
-{
- float FragColor : SV_Target0;
-};
-
-void frag_main()
-{
- FragColor = float(f);
-}
-
-SPIRV_Cross_Output main()
-{
- frag_main();
- SPIRV_Cross_Output stage_output;
- stage_output.FragColor = FragColor;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/switch-unsigned-case.frag b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/switch-unsigned-case.frag
deleted file mode 100644
index d7ec92f0a..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/switch-unsigned-case.frag
+++ /dev/null
@@ -1,38 +0,0 @@
-cbuffer Buff : register(b0)
-{
- uint _15_TestVal : packoffset(c0);
-};
-
-
-static float4 fsout_Color;
-
-struct SPIRV_Cross_Output
-{
- float4 fsout_Color : SV_Target0;
-};
-
-void frag_main()
-{
- fsout_Color = 1.0f.xxxx;
- switch (_15_TestVal)
- {
- case 0u:
- {
- fsout_Color = 0.100000001490116119384765625f.xxxx;
- break;
- }
- case 1u:
- {
- fsout_Color = 0.20000000298023223876953125f.xxxx;
- break;
- }
- }
-}
-
-SPIRV_Cross_Output main()
-{
- frag_main();
- SPIRV_Cross_Output stage_output;
- stage_output.fsout_Color = fsout_Color;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/swizzle-scalar.frag b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/swizzle-scalar.frag
deleted file mode 100644
index ab310b82f..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/swizzle-scalar.frag
+++ /dev/null
@@ -1,41 +0,0 @@
-static float4 Float;
-static float vFloat;
-static int4 Int;
-static int vInt;
-static float4 Float2;
-static int4 Int2;
-
-struct SPIRV_Cross_Input
-{
- nointerpolation float vFloat : TEXCOORD0;
- nointerpolation int vInt : TEXCOORD1;
-};
-
-struct SPIRV_Cross_Output
-{
- float4 Float : SV_Target0;
- int4 Int : SV_Target1;
- float4 Float2 : SV_Target2;
- int4 Int2 : SV_Target3;
-};
-
-void frag_main()
-{
- Float = vFloat.xxxx * 2.0f;
- Int = vInt.xxxx * int4(2, 2, 2, 2);
- Float2 = 10.0f.xxxx;
- Int2 = int4(10, 10, 10, 10);
-}
-
-SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input)
-{
- vFloat = stage_input.vFloat;
- vInt = stage_input.vInt;
- frag_main();
- SPIRV_Cross_Output stage_output;
- stage_output.Float = Float;
- stage_output.Int = Int;
- stage_output.Float2 = Float2;
- stage_output.Int2 = Int2;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/tex-sampling-ms.frag b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/tex-sampling-ms.frag
deleted file mode 100644
index ca88cfaeb..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/tex-sampling-ms.frag
+++ /dev/null
@@ -1,33 +0,0 @@
-Texture2DMS uTex : register(t0);
-SamplerState _uTex_sampler : register(s0);
-
-static float4 gl_FragCoord;
-static float4 FragColor;
-
-struct SPIRV_Cross_Input
-{
- float4 gl_FragCoord : SV_Position;
-};
-
-struct SPIRV_Cross_Output
-{
- float4 FragColor : SV_Target0;
-};
-
-void frag_main()
-{
- int2 _22 = int2(gl_FragCoord.xy);
- FragColor = uTex.Load(_22, 0);
- FragColor += uTex.Load(_22, 1);
- FragColor += uTex.Load(_22, 2);
- FragColor += uTex.Load(_22, 3);
-}
-
-SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input)
-{
- gl_FragCoord = stage_input.gl_FragCoord;
- frag_main();
- SPIRV_Cross_Output stage_output;
- stage_output.FragColor = FragColor;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/tex-sampling.frag b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/tex-sampling.frag
deleted file mode 100644
index 4f8e8f091..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/tex-sampling.frag
+++ /dev/null
@@ -1,69 +0,0 @@
-Texture1D tex1d : register(t0);
-SamplerState _tex1d_sampler : register(s0);
-Texture2D tex2d : register(t1);
-SamplerState _tex2d_sampler : register(s1);
-Texture3D tex3d : register(t2);
-SamplerState _tex3d_sampler : register(s2);
-TextureCube texCube : register(t3);
-SamplerState _texCube_sampler : register(s3);
-Texture1D tex1dShadow : register(t4);
-SamplerComparisonState _tex1dShadow_sampler : register(s4);
-Texture2D tex2dShadow : register(t5);
-SamplerComparisonState _tex2dShadow_sampler : register(s5);
-TextureCube texCubeShadow : register(t6);
-SamplerComparisonState _texCubeShadow_sampler : register(s6);
-Texture1DArray tex1dArray : register(t7);
-SamplerState _tex1dArray_sampler : register(s7);
-Texture2DArray tex2dArray : register(t8);
-SamplerState _tex2dArray_sampler : register(s8);
-TextureCubeArray texCubeArray : register(t9);
-SamplerState _texCubeArray_sampler : register(s9);
-Texture2D separateTex2d : register(t12);
-SamplerState samplerNonDepth : register(s11);
-Texture2D separateTex2dDepth : register(t13);
-SamplerComparisonState samplerDepth : register(s10);
-
-static float texCoord1d;
-static float2 texCoord2d;
-static float3 texCoord3d;
-static float4 texCoord4d;
-static float4 FragColor;
-
-struct SPIRV_Cross_Input
-{
- float texCoord1d : TEXCOORD0;
- float2 texCoord2d : TEXCOORD1;
- float3 texCoord3d : TEXCOORD2;
- float4 texCoord4d : TEXCOORD3;
-};
-
-struct SPIRV_Cross_Output
-{
- float4 FragColor : SV_Target0;
-};
-
-void frag_main()
-{
- float2 _41 = float2(texCoord1d, 2.0f);
- float3 _88 = float3(texCoord2d, 2.0f);
- float4 _135 = float4(texCoord3d, 2.0f);
- float4 _162 = (((((((((((((((((((tex1d.Sample(_tex1d_sampler, texCoord1d) + tex1d.Sample(_tex1d_sampler, texCoord1d, 1)) + tex1d.SampleLevel(_tex1d_sampler, texCoord1d, 2.0f)) + tex1d.SampleGrad(_tex1d_sampler, texCoord1d, 1.0f, 2.0f)) + tex1d.Sample(_tex1d_sampler, _41.x / _41.y)) + tex1d.SampleBias(_tex1d_sampler, texCoord1d, 1.0f)) + tex2d.Sample(_tex2d_sampler, texCoord2d)) + tex2d.Sample(_tex2d_sampler, texCoord2d, int2(1, 2))) + tex2d.SampleLevel(_tex2d_sampler, texCoord2d, 2.0f)) + tex2d.SampleGrad(_tex2d_sampler, texCoord2d, float2(1.0f, 2.0f), float2(3.0f, 4.0f))) + tex2d.Sample(_tex2d_sampler, _88.xy / _88.z)) + tex2d.SampleBias(_tex2d_sampler, texCoord2d, 1.0f)) + tex3d.Sample(_tex3d_sampler, texCoord3d)) + tex3d.Sample(_tex3d_sampler, texCoord3d, int3(1, 2, 3))) + tex3d.SampleLevel(_tex3d_sampler, texCoord3d, 2.0f)) + tex3d.SampleGrad(_tex3d_sampler, texCoord3d, float3(1.0f, 2.0f, 3.0f), float3(4.0f, 5.0f, 6.0f))) + tex3d.Sample(_tex3d_sampler, _135.xyz / _135.w)) + tex3d.SampleBias(_tex3d_sampler, texCoord3d, 1.0f)) + texCube.Sample(_texCube_sampler, texCoord3d)) + texCube.SampleLevel(_texCube_sampler, texCoord3d, 2.0f)) + texCube.SampleBias(_texCube_sampler, texCoord3d, 1.0f);
- float4 _333 = _162;
- _333.w = ((_162.w + tex1dShadow.SampleCmp(_tex1dShadow_sampler, float3(texCoord1d, 0.0f, 0.0f).x, 0.0f)) + tex2dShadow.SampleCmp(_tex2dShadow_sampler, float3(texCoord2d, 0.0f).xy, 0.0f)) + texCubeShadow.SampleCmp(_texCubeShadow_sampler, float4(texCoord3d, 0.0f).xyz, 0.0f);
- float4 _308 = ((((((((((((((_333 + tex1dArray.Sample(_tex1dArray_sampler, texCoord2d)) + tex2dArray.Sample(_tex2dArray_sampler, texCoord3d)) + texCubeArray.Sample(_texCubeArray_sampler, texCoord4d)) + tex2d.GatherRed(_tex2d_sampler, texCoord2d)) + tex2d.GatherRed(_tex2d_sampler, texCoord2d)) + tex2d.GatherGreen(_tex2d_sampler, texCoord2d)) + tex2d.GatherBlue(_tex2d_sampler, texCoord2d)) + tex2d.GatherAlpha(_tex2d_sampler, texCoord2d)) + tex2d.GatherRed(_tex2d_sampler, texCoord2d, int2(1, 1))) + tex2d.GatherRed(_tex2d_sampler, texCoord2d, int2(1, 1))) + tex2d.GatherGreen(_tex2d_sampler, texCoord2d, int2(1, 1))) + tex2d.GatherBlue(_tex2d_sampler, texCoord2d, int2(1, 1))) + tex2d.GatherAlpha(_tex2d_sampler, texCoord2d, int2(1, 1))) + tex2d.Load(int3(int2(1, 2), 0))) + separateTex2d.Sample(samplerNonDepth, texCoord2d);
- float4 _336 = _308;
- _336.w = _308.w + separateTex2dDepth.SampleCmp(samplerDepth, texCoord3d.xy, texCoord3d.z);
- FragColor = _336;
-}
-
-SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input)
-{
- texCoord1d = stage_input.texCoord1d;
- texCoord2d = stage_input.texCoord2d;
- texCoord3d = stage_input.texCoord3d;
- texCoord4d = stage_input.texCoord4d;
- frag_main();
- SPIRV_Cross_Output stage_output;
- stage_output.FragColor = FragColor;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/texel-fetch-offset.frag b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/texel-fetch-offset.frag
deleted file mode 100644
index d7aa73d52..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/texel-fetch-offset.frag
+++ /dev/null
@@ -1,31 +0,0 @@
-Texture2D uTexture : register(t0);
-SamplerState _uTexture_sampler : register(s0);
-
-static float4 gl_FragCoord;
-static float4 FragColor;
-
-struct SPIRV_Cross_Input
-{
- float4 gl_FragCoord : SV_Position;
-};
-
-struct SPIRV_Cross_Output
-{
- float4 FragColor : SV_Target0;
-};
-
-void frag_main()
-{
- int2 _22 = int2(gl_FragCoord.xy);
- FragColor = uTexture.Load(int3(_22, 0), int2(1, 1));
- FragColor += uTexture.Load(int3(_22, 0), int2(-1, 1));
-}
-
-SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input)
-{
- gl_FragCoord = stage_input.gl_FragCoord;
- frag_main();
- SPIRV_Cross_Output stage_output;
- stage_output.FragColor = FragColor;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/texture-proj-shadow.frag b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/texture-proj-shadow.frag
deleted file mode 100644
index 07e06008a..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/texture-proj-shadow.frag
+++ /dev/null
@@ -1,51 +0,0 @@
-Texture1D uShadow1D : register(t0);
-SamplerComparisonState _uShadow1D_sampler : register(s0);
-Texture2D uShadow2D : register(t1);
-SamplerComparisonState _uShadow2D_sampler : register(s1);
-Texture1D uSampler1D : register(t2);
-SamplerState _uSampler1D_sampler : register(s2);
-Texture2D uSampler2D : register(t3);
-SamplerState _uSampler2D_sampler : register(s3);
-Texture3D uSampler3D : register(t4);
-SamplerState _uSampler3D_sampler : register(s4);
-
-static float FragColor;
-static float4 vClip4;
-static float2 vClip2;
-static float3 vClip3;
-
-struct SPIRV_Cross_Input
-{
- float3 vClip3 : TEXCOORD0;
- float4 vClip4 : TEXCOORD1;
- float2 vClip2 : TEXCOORD2;
-};
-
-struct SPIRV_Cross_Output
-{
- float FragColor : SV_Target0;
-};
-
-void frag_main()
-{
- float4 _20 = vClip4;
- _20.y = vClip4.w;
- FragColor = uShadow1D.SampleCmp(_uShadow1D_sampler, _20.x / _20.y, vClip4.z / _20.y);
- float4 _30 = vClip4;
- _30.z = vClip4.w;
- FragColor = uShadow2D.SampleCmp(_uShadow2D_sampler, _30.xy / _30.z, vClip4.z / _30.z);
- FragColor = uSampler1D.Sample(_uSampler1D_sampler, vClip2.x / vClip2.y).x;
- FragColor = uSampler2D.Sample(_uSampler2D_sampler, vClip3.xy / vClip3.z).x;
- FragColor = uSampler3D.Sample(_uSampler3D_sampler, vClip4.xyz / vClip4.w).x;
-}
-
-SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input)
-{
- vClip4 = stage_input.vClip4;
- vClip2 = stage_input.vClip2;
- vClip3 = stage_input.vClip3;
- frag_main();
- SPIRV_Cross_Output stage_output;
- stage_output.FragColor = FragColor;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/texture-size-combined-image-sampler.frag b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/texture-size-combined-image-sampler.frag
deleted file mode 100644
index d5c373746..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/texture-size-combined-image-sampler.frag
+++ /dev/null
@@ -1,30 +0,0 @@
-Texture2D uTex : register(t0);
-SamplerState uSampler : register(s1);
-
-static int2 FooOut;
-
-struct SPIRV_Cross_Output
-{
- int2 FooOut : SV_Target0;
-};
-
-uint2 SPIRV_Cross_textureSize(Texture2D Tex, uint Level, out uint Param)
-{
- uint2 ret;
- Tex.GetDimensions(Level, ret.x, ret.y, Param);
- return ret;
-}
-
-void frag_main()
-{
- uint _23_dummy_parameter;
- FooOut = int2(SPIRV_Cross_textureSize(uTex, uint(0), _23_dummy_parameter));
-}
-
-SPIRV_Cross_Output main()
-{
- frag_main();
- SPIRV_Cross_Output stage_output;
- stage_output.FooOut = FooOut;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/unary-enclose.frag b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/unary-enclose.frag
deleted file mode 100644
index 348b91c17..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/unary-enclose.frag
+++ /dev/null
@@ -1,29 +0,0 @@
-static float4 FragColor;
-static float4 vIn;
-static int4 vIn1;
-
-struct SPIRV_Cross_Input
-{
- float4 vIn : TEXCOORD0;
- nointerpolation int4 vIn1 : TEXCOORD1;
-};
-
-struct SPIRV_Cross_Output
-{
- float4 FragColor : SV_Target0;
-};
-
-void frag_main()
-{
- FragColor = vIn;
-}
-
-SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input)
-{
- vIn = stage_input.vIn;
- vIn1 = stage_input.vIn1;
- frag_main();
- SPIRV_Cross_Output stage_output;
- stage_output.FragColor = FragColor;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/unorm-snorm-packing.frag b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/unorm-snorm-packing.frag
deleted file mode 100644
index 57b595063..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/unorm-snorm-packing.frag
+++ /dev/null
@@ -1,109 +0,0 @@
-static float4 FP32Out;
-static uint UNORM8;
-static uint SNORM8;
-static uint UNORM16;
-static uint SNORM16;
-static uint UNORM8Out;
-static float4 FP32;
-static uint SNORM8Out;
-static uint UNORM16Out;
-static uint SNORM16Out;
-
-struct SPIRV_Cross_Input
-{
- nointerpolation uint SNORM8 : TEXCOORD0;
- nointerpolation uint UNORM8 : TEXCOORD1;
- nointerpolation uint SNORM16 : TEXCOORD2;
- nointerpolation uint UNORM16 : TEXCOORD3;
- nointerpolation float4 FP32 : TEXCOORD4;
-};
-
-struct SPIRV_Cross_Output
-{
- float4 FP32Out : SV_Target0;
- uint UNORM8Out : SV_Target1;
- uint SNORM8Out : SV_Target2;
- uint UNORM16Out : SV_Target3;
- uint SNORM16Out : SV_Target4;
-};
-
-uint SPIRV_Cross_packUnorm4x8(float4 value)
-{
- uint4 Packed = uint4(round(saturate(value) * 255.0));
- return Packed.x | (Packed.y << 8) | (Packed.z << 16) | (Packed.w << 24);
-}
-
-float4 SPIRV_Cross_unpackUnorm4x8(uint value)
-{
- uint4 Packed = uint4(value & 0xff, (value >> 8) & 0xff, (value >> 16) & 0xff, value >> 24);
- return float4(Packed) / 255.0;
-}
-
-uint SPIRV_Cross_packSnorm4x8(float4 value)
-{
- int4 Packed = int4(round(clamp(value, -1.0, 1.0) * 127.0)) & 0xff;
- return uint(Packed.x | (Packed.y << 8) | (Packed.z << 16) | (Packed.w << 24));
-}
-
-float4 SPIRV_Cross_unpackSnorm4x8(uint value)
-{
- int SignedValue = int(value);
- int4 Packed = int4(SignedValue << 24, SignedValue << 16, SignedValue << 8, SignedValue) >> 24;
- return clamp(float4(Packed) / 127.0, -1.0, 1.0);
-}
-
-uint SPIRV_Cross_packUnorm2x16(float2 value)
-{
- uint2 Packed = uint2(round(saturate(value) * 65535.0));
- return Packed.x | (Packed.y << 16);
-}
-
-float2 SPIRV_Cross_unpackUnorm2x16(uint value)
-{
- uint2 Packed = uint2(value & 0xffff, value >> 16);
- return float2(Packed) / 65535.0;
-}
-
-uint SPIRV_Cross_packSnorm2x16(float2 value)
-{
- int2 Packed = int2(round(clamp(value, -1.0, 1.0) * 32767.0)) & 0xffff;
- return uint(Packed.x | (Packed.y << 16));
-}
-
-float2 SPIRV_Cross_unpackSnorm2x16(uint value)
-{
- int SignedValue = int(value);
- int2 Packed = int2(SignedValue << 16, SignedValue) >> 16;
- return clamp(float2(Packed) / 32767.0, -1.0, 1.0);
-}
-
-void frag_main()
-{
- FP32Out = SPIRV_Cross_unpackUnorm4x8(UNORM8);
- FP32Out = SPIRV_Cross_unpackSnorm4x8(SNORM8);
- float2 _21 = SPIRV_Cross_unpackUnorm2x16(UNORM16);
- FP32Out = float4(_21.x, _21.y, FP32Out.z, FP32Out.w);
- float2 _26 = SPIRV_Cross_unpackSnorm2x16(SNORM16);
- FP32Out = float4(_26.x, _26.y, FP32Out.z, FP32Out.w);
- UNORM8Out = SPIRV_Cross_packUnorm4x8(FP32);
- SNORM8Out = SPIRV_Cross_packSnorm4x8(FP32);
- UNORM16Out = SPIRV_Cross_packUnorm2x16(FP32.xy);
- SNORM16Out = SPIRV_Cross_packSnorm2x16(FP32.zw);
-}
-
-SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input)
-{
- UNORM8 = stage_input.UNORM8;
- SNORM8 = stage_input.SNORM8;
- UNORM16 = stage_input.UNORM16;
- SNORM16 = stage_input.SNORM16;
- FP32 = stage_input.FP32;
- frag_main();
- SPIRV_Cross_Output stage_output;
- stage_output.FP32Out = FP32Out;
- stage_output.UNORM8Out = UNORM8Out;
- stage_output.SNORM8Out = SNORM8Out;
- stage_output.UNORM16Out = UNORM16Out;
- stage_output.SNORM16Out = SNORM16Out;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/various-glsl-ops.frag b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/various-glsl-ops.frag
deleted file mode 100644
index 0bc2fc1a9..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/frag/various-glsl-ops.frag
+++ /dev/null
@@ -1,26 +0,0 @@
-static float2 interpolant;
-static float4 FragColor;
-
-struct SPIRV_Cross_Input
-{
- float2 interpolant : TEXCOORD0;
-};
-
-struct SPIRV_Cross_Output
-{
- float4 FragColor : SV_Target0;
-};
-
-void frag_main()
-{
- FragColor = float4(0.0f, 0.0f, 0.0f, EvaluateAttributeSnapped(interpolant, 0.100000001490116119384765625f.xx).x) + float4(0.0f, 0.0f, 0.0f, ddx_coarse(interpolant.x));
-}
-
-SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input)
-{
- interpolant = stage_input.interpolant;
- frag_main();
- SPIRV_Cross_Output stage_output;
- stage_output.FragColor = FragColor;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/vert/basic.vert b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/vert/basic.vert
deleted file mode 100644
index e0bcebf72..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/vert/basic.vert
+++ /dev/null
@@ -1,39 +0,0 @@
-cbuffer UBO : register(b0)
-{
- row_major float4x4 _16_uMVP : packoffset(c0);
-};
-
-
-static float4 gl_Position;
-static float4 aVertex;
-static float3 vNormal;
-static float3 aNormal;
-
-struct SPIRV_Cross_Input
-{
- float4 aVertex : TEXCOORD0;
- float3 aNormal : TEXCOORD1;
-};
-
-struct SPIRV_Cross_Output
-{
- float3 vNormal : TEXCOORD0;
- float4 gl_Position : SV_Position;
-};
-
-void vert_main()
-{
- gl_Position = mul(aVertex, _16_uMVP);
- vNormal = aNormal;
-}
-
-SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input)
-{
- aVertex = stage_input.aVertex;
- aNormal = stage_input.aNormal;
- vert_main();
- SPIRV_Cross_Output stage_output;
- stage_output.gl_Position = gl_Position;
- stage_output.vNormal = vNormal;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/vert/clip-cull-distance.vert b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/vert/clip-cull-distance.vert
deleted file mode 100644
index 7e0d104ac..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/vert/clip-cull-distance.vert
+++ /dev/null
@@ -1,28 +0,0 @@
-static float4 gl_Position;
-static float gl_ClipDistance[2];
-static float gl_CullDistance[1];
-struct SPIRV_Cross_Output
-{
- float4 gl_Position : SV_Position;
- float2 gl_ClipDistance0 : SV_ClipDistance0;
- float gl_CullDistance0 : SV_CullDistance0;
-};
-
-void vert_main()
-{
- gl_Position = 1.0f.xxxx;
- gl_ClipDistance[0] = 0.0f;
- gl_ClipDistance[1] = 0.0f;
- gl_CullDistance[0] = 4.0f;
-}
-
-SPIRV_Cross_Output main()
-{
- vert_main();
- SPIRV_Cross_Output stage_output;
- stage_output.gl_Position = gl_Position;
- stage_output.gl_ClipDistance0.x = gl_ClipDistance[0];
- stage_output.gl_ClipDistance0.y = gl_ClipDistance[1];
- stage_output.gl_CullDistance0.x = gl_CullDistance[0];
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/vert/instancing.vert b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/vert/instancing.vert
deleted file mode 100644
index 48b2df20d..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/vert/instancing.vert
+++ /dev/null
@@ -1,28 +0,0 @@
-static float4 gl_Position;
-static int gl_VertexIndex;
-static int gl_InstanceIndex;
-struct SPIRV_Cross_Input
-{
- uint gl_VertexIndex : SV_VertexID;
- uint gl_InstanceIndex : SV_InstanceID;
-};
-
-struct SPIRV_Cross_Output
-{
- float4 gl_Position : SV_Position;
-};
-
-void vert_main()
-{
- gl_Position = float(gl_VertexIndex + gl_InstanceIndex).xxxx;
-}
-
-SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input)
-{
- gl_VertexIndex = int(stage_input.gl_VertexIndex);
- gl_InstanceIndex = int(stage_input.gl_InstanceIndex);
- vert_main();
- SPIRV_Cross_Output stage_output;
- stage_output.gl_Position = gl_Position;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/vert/locations.vert b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/vert/locations.vert
deleted file mode 100644
index b007582c2..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/vert/locations.vert
+++ /dev/null
@@ -1,73 +0,0 @@
-struct Foo
-{
- float3 a;
- float3 b;
- float3 c;
-};
-
-static const Foo _71 = { 1.0f.xxx, 1.0f.xxx, 1.0f.xxx };
-
-static float4 gl_Position;
-static float4 Input2;
-static float4 Input4;
-static float4 Input0;
-static float vLocation0;
-static float vLocation1;
-static float vLocation2[2];
-static Foo vLocation4;
-static float vLocation9;
-
-struct VertexOut
-{
- float3 color : TEXCOORD7;
- float3 foo : TEXCOORD8;
-};
-
-static VertexOut vout;
-
-struct SPIRV_Cross_Input
-{
- float4 Input0 : TEXCOORD0;
- float4 Input2 : TEXCOORD2;
- float4 Input4 : TEXCOORD4;
-};
-
-struct SPIRV_Cross_Output
-{
- float vLocation0 : TEXCOORD0;
- float vLocation1 : TEXCOORD1;
- float vLocation2[2] : TEXCOORD2;
- Foo vLocation4 : TEXCOORD4;
- float vLocation9 : TEXCOORD9;
- float4 gl_Position : SV_Position;
-};
-
-void vert_main()
-{
- gl_Position = ((1.0f.xxxx + Input2) + Input4) + Input0;
- vLocation0 = 0.0f;
- vLocation1 = 1.0f;
- vLocation2[0] = 2.0f;
- vLocation2[1] = 2.0f;
- vLocation4 = _71;
- vLocation9 = 9.0f;
- vout.color = 2.0f.xxx;
- vout.foo = 4.0f.xxx;
-}
-
-SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input, out VertexOut stage_outputvout)
-{
- Input2 = stage_input.Input2;
- Input4 = stage_input.Input4;
- Input0 = stage_input.Input0;
- vert_main();
- stage_outputvout = vout;
- SPIRV_Cross_Output stage_output;
- stage_output.gl_Position = gl_Position;
- stage_output.vLocation0 = vLocation0;
- stage_output.vLocation1 = vLocation1;
- stage_output.vLocation2 = vLocation2;
- stage_output.vLocation4 = vLocation4;
- stage_output.vLocation9 = vLocation9;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/vert/matrix-attribute.vert b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/vert/matrix-attribute.vert
deleted file mode 100644
index a3d0eef56..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/vert/matrix-attribute.vert
+++ /dev/null
@@ -1,35 +0,0 @@
-static float4 gl_Position;
-static float4x4 m;
-static float3 pos;
-
-struct SPIRV_Cross_Input
-{
- float3 pos : TEXCOORD0;
- float4 m_0 : TEXCOORD1_0;
- float4 m_1 : TEXCOORD1_1;
- float4 m_2 : TEXCOORD1_2;
- float4 m_3 : TEXCOORD1_3;
-};
-
-struct SPIRV_Cross_Output
-{
- float4 gl_Position : SV_Position;
-};
-
-void vert_main()
-{
- gl_Position = mul(float4(pos, 1.0f), m);
-}
-
-SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input)
-{
- m[0] = stage_input.m_0;
- m[1] = stage_input.m_1;
- m[2] = stage_input.m_2;
- m[3] = stage_input.m_3;
- pos = stage_input.pos;
- vert_main();
- SPIRV_Cross_Output stage_output;
- stage_output.gl_Position = gl_Position;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/vert/matrix-output.vert b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/vert/matrix-output.vert
deleted file mode 100644
index dc776cb5e..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/vert/matrix-output.vert
+++ /dev/null
@@ -1,23 +0,0 @@
-static float4 gl_Position;
-static float4x4 m;
-
-struct SPIRV_Cross_Output
-{
- float4x4 m : TEXCOORD0;
- float4 gl_Position : SV_Position;
-};
-
-void vert_main()
-{
- gl_Position = 1.0f.xxxx;
- m = float4x4(float4(1.0f, 0.0f, 0.0f, 0.0f), float4(0.0f, 1.0f, 0.0f, 0.0f), float4(0.0f, 0.0f, 1.0f, 0.0f), float4(0.0f, 0.0f, 0.0f, 1.0f));
-}
-
-SPIRV_Cross_Output main()
-{
- vert_main();
- SPIRV_Cross_Output stage_output;
- stage_output.gl_Position = gl_Position;
- stage_output.m = m;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/vert/no-input.vert b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/vert/no-input.vert
deleted file mode 100644
index c98544dbe..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/vert/no-input.vert
+++ /dev/null
@@ -1,18 +0,0 @@
-static float4 gl_Position;
-struct SPIRV_Cross_Output
-{
- float4 gl_Position : SV_Position;
-};
-
-void vert_main()
-{
- gl_Position = 1.0f.xxxx;
-}
-
-SPIRV_Cross_Output main()
-{
- vert_main();
- SPIRV_Cross_Output stage_output;
- stage_output.gl_Position = gl_Position;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/vert/point-size-compat.vert b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/vert/point-size-compat.vert
deleted file mode 100644
index 95f45d02f..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/vert/point-size-compat.vert
+++ /dev/null
@@ -1,20 +0,0 @@
-static float4 gl_Position;
-static float gl_PointSize;
-struct SPIRV_Cross_Output
-{
- float4 gl_Position : SV_Position;
-};
-
-void vert_main()
-{
- gl_Position = 1.0f.xxxx;
- gl_PointSize = 1.0f;
-}
-
-SPIRV_Cross_Output main()
-{
- vert_main();
- SPIRV_Cross_Output stage_output;
- stage_output.gl_Position = gl_Position;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/vert/qualifiers.vert b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/vert/qualifiers.vert
deleted file mode 100644
index 13ee2a8c1..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/vert/qualifiers.vert
+++ /dev/null
@@ -1,50 +0,0 @@
-static float4 gl_Position;
-static float vFlat;
-static float vCentroid;
-static float vSample;
-static float vNoperspective;
-
-struct Block
-{
- nointerpolation float vFlat : TEXCOORD4;
- centroid float vCentroid : TEXCOORD5;
- sample float vSample : TEXCOORD6;
- noperspective float vNoperspective : TEXCOORD7;
-};
-
-static Block vout;
-
-struct SPIRV_Cross_Output
-{
- nointerpolation float vFlat : TEXCOORD0;
- centroid float vCentroid : TEXCOORD1;
- sample float vSample : TEXCOORD2;
- noperspective float vNoperspective : TEXCOORD3;
- float4 gl_Position : SV_Position;
-};
-
-void vert_main()
-{
- gl_Position = 1.0f.xxxx;
- vFlat = 0.0f;
- vCentroid = 1.0f;
- vSample = 2.0f;
- vNoperspective = 3.0f;
- vout.vFlat = 0.0f;
- vout.vCentroid = 1.0f;
- vout.vSample = 2.0f;
- vout.vNoperspective = 3.0f;
-}
-
-SPIRV_Cross_Output main(out Block stage_outputvout)
-{
- vert_main();
- stage_outputvout = vout;
- SPIRV_Cross_Output stage_output;
- stage_output.gl_Position = gl_Position;
- stage_output.vFlat = vFlat;
- stage_output.vCentroid = vCentroid;
- stage_output.vSample = vSample;
- stage_output.vNoperspective = vNoperspective;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/vert/read-from-row-major-array.vert b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/vert/read-from-row-major-array.vert
deleted file mode 100644
index 03fa4f335..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/vert/read-from-row-major-array.vert
+++ /dev/null
@@ -1,36 +0,0 @@
-cbuffer Block : register(b0)
-{
- column_major float2x3 _104_var[3][4] : packoffset(c0);
-};
-
-
-static float4 gl_Position;
-static float4 a_position;
-static float v_vtxResult;
-
-struct SPIRV_Cross_Input
-{
- float4 a_position : TEXCOORD0;
-};
-
-struct SPIRV_Cross_Output
-{
- float v_vtxResult : TEXCOORD0;
- float4 gl_Position : SV_Position;
-};
-
-void vert_main()
-{
- gl_Position = a_position;
- v_vtxResult = ((float(abs(_104_var[0][0][0].x - 2.0f) < 0.0500000007450580596923828125f) * float(abs(_104_var[0][0][0].y - 6.0f) < 0.0500000007450580596923828125f)) * float(abs(_104_var[0][0][0].z - (-6.0f)) < 0.0500000007450580596923828125f)) * ((float(abs(_104_var[0][0][1].x) < 0.0500000007450580596923828125f) * float(abs(_104_var[0][0][1].y - 5.0f) < 0.0500000007450580596923828125f)) * float(abs(_104_var[0][0][1].z - 5.0f) < 0.0500000007450580596923828125f));
-}
-
-SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input)
-{
- a_position = stage_input.a_position;
- vert_main();
- SPIRV_Cross_Output stage_output;
- stage_output.gl_Position = gl_Position;
- stage_output.v_vtxResult = v_vtxResult;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/vert/return-array.vert b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/vert/return-array.vert
deleted file mode 100644
index bd1575563..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/vert/return-array.vert
+++ /dev/null
@@ -1,29 +0,0 @@
-static float4 gl_Position;
-static float4 vInput0;
-static float4 vInput1;
-
-struct SPIRV_Cross_Input
-{
- float4 vInput0 : TEXCOORD0;
- float4 vInput1 : TEXCOORD1;
-};
-
-struct SPIRV_Cross_Output
-{
- float4 gl_Position : SV_Position;
-};
-
-void vert_main()
-{
- gl_Position = 10.0f.xxxx + vInput1;
-}
-
-SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input)
-{
- vInput0 = stage_input.vInput0;
- vInput1 = stage_input.vInput1;
- vert_main();
- SPIRV_Cross_Output stage_output;
- stage_output.gl_Position = gl_Position;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/vert/sampler-buffers.vert b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/vert/sampler-buffers.vert
deleted file mode 100644
index 365218544..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/vert/sampler-buffers.vert
+++ /dev/null
@@ -1,22 +0,0 @@
-Buffer uFloatSampler : register(t1);
-Buffer uIntSampler : register(t2);
-Buffer uUintSampler : register(t3);
-
-static float4 gl_Position;
-struct SPIRV_Cross_Output
-{
- float4 gl_Position : SV_Position;
-};
-
-void vert_main()
-{
- gl_Position = (uFloatSampler.Load(20) + asfloat(uIntSampler.Load(40))) + asfloat(uUintSampler.Load(60));
-}
-
-SPIRV_Cross_Output main()
-{
- vert_main();
- SPIRV_Cross_Output stage_output;
- stage_output.gl_Position = gl_Position;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/vert/struct-composite-decl.vert b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/vert/struct-composite-decl.vert
deleted file mode 100644
index 76bd34977..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/vert/struct-composite-decl.vert
+++ /dev/null
@@ -1,44 +0,0 @@
-struct VOut
-{
- float4 a;
- float4 b;
- float4 c;
- float4 d;
-};
-
-static VOut vout;
-static float4 a;
-static float4 b;
-static float4 c;
-static float4 d;
-
-struct SPIRV_Cross_Input
-{
- float4 a : TEXCOORD0;
- float4 b : TEXCOORD1;
- float4 c : TEXCOORD2;
- float4 d : TEXCOORD3;
-};
-
-struct SPIRV_Cross_Output
-{
- VOut vout : TEXCOORD0;
-};
-
-void vert_main()
-{
- VOut _26 = { a, b, c, d };
- vout = _26;
-}
-
-SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input)
-{
- a = stage_input.a;
- b = stage_input.b;
- c = stage_input.c;
- d = stage_input.d;
- vert_main();
- SPIRV_Cross_Output stage_output;
- stage_output.vout = vout;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/vert/texture_buffer.vert b/3rdparty/spirv-cross/reference/opt/shaders-hlsl/vert/texture_buffer.vert
deleted file mode 100644
index 1c92f6fe6..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-hlsl/vert/texture_buffer.vert
+++ /dev/null
@@ -1,21 +0,0 @@
-Buffer uSamp : register(t4);
-RWBuffer uSampo : register(u5);
-
-static float4 gl_Position;
-struct SPIRV_Cross_Output
-{
- float4 gl_Position : SV_Position;
-};
-
-void vert_main()
-{
- gl_Position = uSamp.Load(10) + uSampo[100];
-}
-
-SPIRV_Cross_Output main()
-{
- vert_main();
- SPIRV_Cross_Output stage_output;
- stage_output.gl_Position = gl_Position;
- return stage_output;
-}
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-msl/amd/shader_trinary_minmax.msl21.comp b/3rdparty/spirv-cross/reference/opt/shaders-msl/amd/shader_trinary_minmax.msl21.comp
deleted file mode 100644
index 9c33c22ca..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-msl/amd/shader_trinary_minmax.msl21.comp
+++ /dev/null
@@ -1,11 +0,0 @@
-#include
-#include
-
-using namespace metal;
-
-constant uint3 gl_WorkGroupSize [[maybe_unused]] = uint3(64u, 1u, 1u);
-
-kernel void main0()
-{
-}
-
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/comp/atomic-decrement.asm.comp b/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/comp/atomic-decrement.asm.comp
deleted file mode 100644
index 3dc6fffcf..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/comp/atomic-decrement.asm.comp
+++ /dev/null
@@ -1,27 +0,0 @@
-#pragma clang diagnostic ignored "-Wmissing-prototypes"
-#pragma clang diagnostic ignored "-Wunused-variable"
-
-#include
-#include
-#include
-
-using namespace metal;
-
-struct u0_counters
-{
- uint c;
-};
-
-// Returns 2D texture coords corresponding to 1D texel buffer coords
-static inline __attribute__((always_inline))
-uint2 spvTexelBufferCoord(uint tc)
-{
- return uint2(tc % 4096, tc / 4096);
-}
-
-kernel void main0(device u0_counters& u0_counter [[buffer(0)]], texture2d u0 [[texture(0)]], uint3 gl_GlobalInvocationID [[thread_position_in_grid]])
-{
- uint _29 = atomic_fetch_sub_explicit((device atomic_uint*)&u0_counter.c, 1, memory_order_relaxed);
- u0.write(uint4(uint(int(gl_GlobalInvocationID.x))), spvTexelBufferCoord(as_type(as_type(_29))));
-}
-
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/comp/atomic-increment.asm.comp b/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/comp/atomic-increment.asm.comp
deleted file mode 100644
index 6f42bb9d2..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/comp/atomic-increment.asm.comp
+++ /dev/null
@@ -1,27 +0,0 @@
-#pragma clang diagnostic ignored "-Wmissing-prototypes"
-#pragma clang diagnostic ignored "-Wunused-variable"
-
-#include
-#include
-#include
-
-using namespace metal;
-
-struct u0_counters
-{
- uint c;
-};
-
-// Returns 2D texture coords corresponding to 1D texel buffer coords
-static inline __attribute__((always_inline))
-uint2 spvTexelBufferCoord(uint tc)
-{
- return uint2(tc % 4096, tc / 4096);
-}
-
-kernel void main0(device u0_counters& u0_counter [[buffer(0)]], texture2d u0 [[texture(0)]], uint3 gl_GlobalInvocationID [[thread_position_in_grid]])
-{
- uint _29 = atomic_fetch_add_explicit((device atomic_uint*)&u0_counter.c, 1, memory_order_relaxed);
- u0.write(uint4(uint(int(gl_GlobalInvocationID.x))), spvTexelBufferCoord(as_type(as_type(_29))));
-}
-
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/comp/bitcast_iadd.asm.comp b/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/comp/bitcast_iadd.asm.comp
deleted file mode 100644
index ad61d750d..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/comp/bitcast_iadd.asm.comp
+++ /dev/null
@@ -1,29 +0,0 @@
-#include
-#include
-
-using namespace metal;
-
-struct _3
-{
- int4 _m0;
- uint4 _m1;
-};
-
-struct _4
-{
- uint4 _m0;
- int4 _m1;
-};
-
-kernel void main0(device _3& restrict _5 [[buffer(0)]], device _4& restrict _6 [[buffer(1)]])
-{
- _6._m0 = _5._m1 + uint4(_5._m0);
- _6._m0 = uint4(_5._m0) + _5._m1;
- _6._m0 = _5._m1 + _5._m1;
- _6._m0 = uint4(_5._m0 + _5._m0);
- _6._m1 = int4(_5._m1 + _5._m1);
- _6._m1 = _5._m0 + _5._m0;
- _6._m1 = int4(_5._m1) + _5._m0;
- _6._m1 = _5._m0 + int4(_5._m1);
-}
-
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/comp/bitcast_icmp.asm.comp b/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/comp/bitcast_icmp.asm.comp
deleted file mode 100644
index 31c71daa4..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/comp/bitcast_icmp.asm.comp
+++ /dev/null
@@ -1,29 +0,0 @@
-#include
-#include
-
-using namespace metal;
-
-struct _3
-{
- int4 _m0;
- uint4 _m1;
-};
-
-struct _4
-{
- uint4 _m0;
- int4 _m1;
-};
-
-kernel void main0(device _3& restrict _5 [[buffer(0)]], device _4& restrict _6 [[buffer(1)]])
-{
- _6._m0 = select(uint4(0u), uint4(1u), int4(_5._m1) < _5._m0);
- _6._m0 = select(uint4(0u), uint4(1u), int4(_5._m1) <= _5._m0);
- _6._m0 = select(uint4(0u), uint4(1u), _5._m1 < uint4(_5._m0));
- _6._m0 = select(uint4(0u), uint4(1u), _5._m1 <= uint4(_5._m0));
- _6._m0 = select(uint4(0u), uint4(1u), int4(_5._m1) > _5._m0);
- _6._m0 = select(uint4(0u), uint4(1u), int4(_5._m1) >= _5._m0);
- _6._m0 = select(uint4(0u), uint4(1u), _5._m1 > uint4(_5._m0));
- _6._m0 = select(uint4(0u), uint4(1u), _5._m1 >= uint4(_5._m0));
-}
-
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/comp/bitcast_sar.asm.comp b/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/comp/bitcast_sar.asm.comp
deleted file mode 100644
index 417683058..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/comp/bitcast_sar.asm.comp
+++ /dev/null
@@ -1,31 +0,0 @@
-#include
-#include
-
-using namespace metal;
-
-struct _3
-{
- int4 _m0;
- uint4 _m1;
-};
-
-struct _4
-{
- uint4 _m0;
- int4 _m1;
-};
-
-kernel void main0(device _3& _5 [[buffer(0)]], device _4& _6 [[buffer(1)]])
-{
- int4 _22 = _5._m0;
- uint4 _23 = _5._m1;
- _6._m0 = uint4(int4(_23) >> _22);
- _6._m0 = uint4(_22 >> int4(_23));
- _6._m0 = uint4(int4(_23) >> int4(_23));
- _6._m0 = uint4(_22 >> _22);
- _6._m1 = int4(_23) >> int4(_23);
- _6._m1 = _22 >> _22;
- _6._m1 = int4(_23) >> _22;
- _6._m1 = _22 >> int4(_23);
-}
-
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/comp/bitcast_sdiv.asm.comp b/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/comp/bitcast_sdiv.asm.comp
deleted file mode 100644
index 6b80dff31..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/comp/bitcast_sdiv.asm.comp
+++ /dev/null
@@ -1,31 +0,0 @@
-#include
-#include
-
-using namespace metal;
-
-struct _3
-{
- int4 _m0;
- uint4 _m1;
-};
-
-struct _4
-{
- uint4 _m0;
- int4 _m1;
-};
-
-kernel void main0(device _3& _5 [[buffer(0)]], device _4& _6 [[buffer(1)]])
-{
- int4 _22 = _5._m0;
- uint4 _23 = _5._m1;
- _6._m0 = uint4(int4(_23) / _22);
- _6._m0 = uint4(_22 / int4(_23));
- _6._m0 = uint4(int4(_23) / int4(_23));
- _6._m0 = uint4(_22 / _22);
- _6._m1 = int4(_23) / int4(_23);
- _6._m1 = _22 / _22;
- _6._m1 = int4(_23) / _22;
- _6._m1 = _22 / int4(_23);
-}
-
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/comp/bitcast_slr.asm.comp b/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/comp/bitcast_slr.asm.comp
deleted file mode 100644
index 1dfca3918..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/comp/bitcast_slr.asm.comp
+++ /dev/null
@@ -1,31 +0,0 @@
-#include
-#include
-
-using namespace metal;
-
-struct _3
-{
- int4 _m0;
- uint4 _m1;
-};
-
-struct _4
-{
- uint4 _m0;
- int4 _m1;
-};
-
-kernel void main0(device _3& _5 [[buffer(0)]], device _4& _6 [[buffer(1)]])
-{
- int4 _22 = _5._m0;
- uint4 _23 = _5._m1;
- _6._m0 = _23 >> uint4(_22);
- _6._m0 = uint4(_22) >> _23;
- _6._m0 = _23 >> _23;
- _6._m0 = uint4(_22) >> uint4(_22);
- _6._m1 = int4(_23 >> _23);
- _6._m1 = int4(uint4(_22) >> uint4(_22));
- _6._m1 = int4(_23 >> uint4(_22));
- _6._m1 = int4(uint4(_22) >> _23);
-}
-
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/comp/block-name-alias-global.asm.comp b/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/comp/block-name-alias-global.asm.comp
deleted file mode 100644
index 6dcc14ea8..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/comp/block-name-alias-global.asm.comp
+++ /dev/null
@@ -1,46 +0,0 @@
-#include
-#include
-
-using namespace metal;
-
-struct A
-{
- int a;
- int b;
-};
-
-struct A_1
-{
- A Data[1];
-};
-
-struct A_2
-{
- int a;
- int b;
- char _m0_final_padding[8];
-};
-
-struct A_3
-{
- A_2 Data[1024];
-};
-
-struct B
-{
- A Data[1];
-};
-
-struct B_1
-{
- A_2 Data[1024];
-};
-
-kernel void main0(device A_1& C1 [[buffer(0)]], constant A_3& C2 [[buffer(1)]], device B& C3 [[buffer(2)]], constant B_1& C4 [[buffer(3)]], uint3 gl_GlobalInvocationID [[thread_position_in_grid]])
-{
- C1.Data[gl_GlobalInvocationID.x].a = C2.Data[gl_GlobalInvocationID.x].a;
- C1.Data[gl_GlobalInvocationID.x].b = C2.Data[gl_GlobalInvocationID.x].b;
- C3.Data[gl_GlobalInvocationID.x].a = C4.Data[gl_GlobalInvocationID.x].a;
- C3.Data[gl_GlobalInvocationID.x].b = C4.Data[gl_GlobalInvocationID.x].b;
-}
-
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/comp/buffer-write-relative-addr.asm.comp b/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/comp/buffer-write-relative-addr.asm.comp
deleted file mode 100644
index bb51fd7b1..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/comp/buffer-write-relative-addr.asm.comp
+++ /dev/null
@@ -1,29 +0,0 @@
-#pragma clang diagnostic ignored "-Wmissing-prototypes"
-
-#include
-#include
-
-using namespace metal;
-
-struct cb5_struct
-{
- float4 _m0[5];
-};
-
-// Returns 2D texture coords corresponding to 1D texel buffer coords
-static inline __attribute__((always_inline))
-uint2 spvTexelBufferCoord(uint tc)
-{
- return uint2(tc % 4096, tc / 4096);
-}
-
-kernel void main0(constant cb5_struct& cb0_5 [[buffer(0)]], texture2d u0 [[texture(0)]], uint3 gl_LocalInvocationID [[thread_position_in_threadgroup]])
-{
- uint _44 = as_type(as_type(int(gl_LocalInvocationID.x) << 4)) >> 2u;
- uint4 _51 = as_type(cb0_5._m0[uint(as_type(as_type(int(gl_LocalInvocationID.x)))) + 1u]);
- u0.write(_51.xxxx, spvTexelBufferCoord(_44));
- u0.write(_51.yyyy, spvTexelBufferCoord((_44 + 1u)));
- u0.write(_51.zzzz, spvTexelBufferCoord((_44 + 2u)));
- u0.write(_51.wwww, spvTexelBufferCoord((_44 + 3u)));
-}
-
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/comp/buffer-write.asm.comp b/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/comp/buffer-write.asm.comp
deleted file mode 100644
index 8c9e23aa0..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/comp/buffer-write.asm.comp
+++ /dev/null
@@ -1,24 +0,0 @@
-#pragma clang diagnostic ignored "-Wmissing-prototypes"
-
-#include
-#include
-
-using namespace metal;
-
-struct cb
-{
- float value;
-};
-
-// Returns 2D texture coords corresponding to 1D texel buffer coords
-static inline __attribute__((always_inline))
-uint2 spvTexelBufferCoord(uint tc)
-{
- return uint2(tc % 4096, tc / 4096);
-}
-
-kernel void main0(constant cb& _6 [[buffer(0)]], texture2d _buffer [[texture(0)]], uint3 gl_WorkGroupID [[threadgroup_position_in_grid]], uint gl_LocalInvocationIndex [[thread_index_in_threadgroup]])
-{
- _buffer.write(float4(_6.value), spvTexelBufferCoord(((32u * gl_WorkGroupID.x) + gl_LocalInvocationIndex)));
-}
-
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/comp/global-parameter-name-alias.asm.comp b/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/comp/global-parameter-name-alias.asm.comp
deleted file mode 100644
index 59fc03a75..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/comp/global-parameter-name-alias.asm.comp
+++ /dev/null
@@ -1,9 +0,0 @@
-#include
-#include
-
-using namespace metal;
-
-kernel void main0()
-{
-}
-
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/comp/image-load-store-short-vector.asm.comp b/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/comp/image-load-store-short-vector.asm.comp
deleted file mode 100644
index fb97d0da9..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/comp/image-load-store-short-vector.asm.comp
+++ /dev/null
@@ -1,10 +0,0 @@
-#include
-#include
-
-using namespace metal;
-
-kernel void main0(texture2d TargetTexture [[texture(0)]], uint3 gl_WorkGroupID [[threadgroup_position_in_grid]])
-{
- TargetTexture.write((TargetTexture.read(uint2(gl_WorkGroupID.xy)).xy + float2(1.0)).xyyy, uint2((gl_WorkGroupID.xy + uint2(1u))));
-}
-
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/comp/multiple-entry.asm.comp b/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/comp/multiple-entry.asm.comp
deleted file mode 100644
index 25ccf623e..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/comp/multiple-entry.asm.comp
+++ /dev/null
@@ -1,29 +0,0 @@
-#include
-#include
-
-using namespace metal;
-
-struct _6
-{
- int4 _m0;
- uint4 _m1;
-};
-
-struct _7
-{
- uint4 _m0;
- int4 _m1;
-};
-
-kernel void main0(device _6& restrict _8 [[buffer(0)]], device _7& restrict _9 [[buffer(1)]])
-{
- _9._m0 = _8._m1 + uint4(_8._m0);
- _9._m0 = uint4(_8._m0) + _8._m1;
- _9._m0 = _8._m1 + _8._m1;
- _9._m0 = uint4(_8._m0 + _8._m0);
- _9._m1 = int4(_8._m1 + _8._m1);
- _9._m1 = _8._m0 + _8._m0;
- _9._m1 = int4(_8._m1) + _8._m0;
- _9._m1 = _8._m0 + int4(_8._m1);
-}
-
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/comp/quantize.asm.comp b/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/comp/quantize.asm.comp
deleted file mode 100644
index 1839ec7a3..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/comp/quantize.asm.comp
+++ /dev/null
@@ -1,21 +0,0 @@
-#include
-#include
-
-using namespace metal;
-
-struct SSBO0
-{
- float scalar;
- float2 vec2_val;
- float3 vec3_val;
- float4 vec4_val;
-};
-
-kernel void main0(device SSBO0& _4 [[buffer(0)]])
-{
- _4.scalar = float(half(_4.scalar));
- _4.vec2_val = float2(half2(_4.vec2_val));
- _4.vec3_val = float3(half3(_4.vec3_val));
- _4.vec4_val = float4(half4(_4.vec4_val));
-}
-
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/comp/relaxed-block-layout.asm.comp b/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/comp/relaxed-block-layout.asm.comp
deleted file mode 100644
index 6728a4e2d..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/comp/relaxed-block-layout.asm.comp
+++ /dev/null
@@ -1,22 +0,0 @@
-#include
-#include
-
-using namespace metal;
-
-struct foo
-{
- uint bar;
- packed_float3 baz;
- uchar quux;
- packed_uchar4 blah;
- packed_half2 wibble;
-};
-
-kernel void main0(device foo& _8 [[buffer(0)]], uint3 gl_LocalInvocationID [[thread_position_in_threadgroup]], uint3 gl_GlobalInvocationID [[thread_position_in_grid]], uint3 gl_WorkGroupID [[threadgroup_position_in_grid]], uint3 gl_NumWorkGroups [[threadgroups_per_grid]])
-{
- _8.bar = gl_LocalInvocationID.x;
- _8.baz = float3(gl_GlobalInvocationID);
- _8.blah = uchar4(uint4(uint4(uchar4(_8.blah)).xyz + gl_WorkGroupID, 0u));
- _8.wibble = half2(float2(half2(_8.wibble)) * float2(gl_NumWorkGroups.xy));
-}
-
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/comp/specialization-constant-workgroup.asm.comp b/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/comp/specialization-constant-workgroup.asm.comp
deleted file mode 100644
index 1e2880f4e..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/comp/specialization-constant-workgroup.asm.comp
+++ /dev/null
@@ -1,21 +0,0 @@
-#include
-#include
-
-using namespace metal;
-
-struct SSBO
-{
- float a;
-};
-
-constant uint _5_tmp [[function_constant(10)]];
-constant uint _5 = is_function_constant_defined(_5_tmp) ? _5_tmp : 9u;
-constant uint _6_tmp [[function_constant(12)]];
-constant uint _6 = is_function_constant_defined(_6_tmp) ? _6_tmp : 4u;
-constant uint3 gl_WorkGroupSize [[maybe_unused]] = uint3(_5, 20u, _6);
-
-kernel void main0(device SSBO& _4 [[buffer(0)]])
-{
- _4.a += 1.0;
-}
-
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/comp/struct-resource-name-aliasing.asm.comp b/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/comp/struct-resource-name-aliasing.asm.comp
deleted file mode 100644
index 5b1f0a036..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/comp/struct-resource-name-aliasing.asm.comp
+++ /dev/null
@@ -1,16 +0,0 @@
-#include
-#include
-
-using namespace metal;
-
-struct bufA
-{
- uint _data[1];
-};
-
-kernel void main0(device bufA& bufA_1 [[buffer(0)]], device bufA& bufB [[buffer(1)]])
-{
- bufA_1._data[0] = 0u;
- bufB._data[0] = 0u;
-}
-
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/comp/variable-pointers-2.asm.comp b/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/comp/variable-pointers-2.asm.comp
deleted file mode 100644
index a87e341af..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/comp/variable-pointers-2.asm.comp
+++ /dev/null
@@ -1,51 +0,0 @@
-#include
-#include
-
-using namespace metal;
-
-struct foo
-{
- int a[128];
- uint b;
- float2 c;
-};
-
-struct bar
-{
- int d;
-};
-
-kernel void main0(device foo& buf [[buffer(0)]], constant bar& cb [[buffer(1)]], uint3 gl_GlobalInvocationID [[thread_position_in_grid]], uint3 gl_LocalInvocationID [[thread_position_in_threadgroup]])
-{
- bool _70 = cb.d != 0;
- device foo* _71 = _70 ? &buf : nullptr;
- device foo* _67 = _71;
- device foo* _45 = _71;
- thread uint3* _77 = _70 ? &gl_GlobalInvocationID : &gl_LocalInvocationID;
- thread uint3* _73 = _77;
- device int* _52;
- device int* _55;
- _52 = &_71->a[0u];
- _55 = &buf.a[0u];
- int _57;
- int _58;
- for (;;)
- {
- _57 = *_52;
- _58 = *_55;
- if (_57 != _58)
- {
- int _66 = (_57 + _58) + int((*_77).x);
- *_52 = _66;
- *_55 = _66;
- _52 = &_52[1u];
- _55 = &_55[1u];
- continue;
- }
- else
- {
- break;
- }
- }
-}
-
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/comp/variable-pointers-store-forwarding.asm.comp b/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/comp/variable-pointers-store-forwarding.asm.comp
deleted file mode 100644
index b4e03a292..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/comp/variable-pointers-store-forwarding.asm.comp
+++ /dev/null
@@ -1,25 +0,0 @@
-#include
-#include
-
-using namespace metal;
-
-struct foo
-{
- int a;
-};
-
-struct bar
-{
- int b;
-};
-
-kernel void main0(device foo& x [[buffer(0)]], device bar& y [[buffer(1)]], uint3 gl_GlobalInvocationID [[thread_position_in_grid]])
-{
- device int* _46 = (gl_GlobalInvocationID.x != 0u) ? &x.a : &y.b;
- device int* _40 = _46;
- device int* _33 = _46;
- int _37 = x.a;
- *_46 = 0;
- y.b = _37 + _37;
-}
-
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/comp/vector-builtin-type-cast-func.asm.comp b/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/comp/vector-builtin-type-cast-func.asm.comp
deleted file mode 100644
index 641f108e8..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/comp/vector-builtin-type-cast-func.asm.comp
+++ /dev/null
@@ -1,28 +0,0 @@
-#include
-#include
-
-using namespace metal;
-
-struct cb1_struct
-{
- float4 _m0[1];
-};
-
-constant uint3 gl_WorkGroupSize [[maybe_unused]] = uint3(16u, 16u, 1u);
-
-kernel void main0(constant cb1_struct& cb0_1 [[buffer(0)]], texture2d u0 [[texture(0)]], uint3 gl_LocalInvocationID [[thread_position_in_threadgroup]])
-{
- int2 _46 = int2(u0.get_width(), u0.get_height()) >> int2(uint2(4u));
- int _97;
- _97 = 0;
- for (; _97 < _46.y; _97++)
- {
- for (int _98 = 0; _98 < _46.x; )
- {
- u0.write(cb0_1._m0[0].xxxx, uint2(((_46 * int3(gl_LocalInvocationID).xy) + int2(_97, _98))));
- _98++;
- continue;
- }
- }
-}
-
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/comp/vector-builtin-type-cast.asm.comp b/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/comp/vector-builtin-type-cast.asm.comp
deleted file mode 100644
index 7f6d4bd90..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/comp/vector-builtin-type-cast.asm.comp
+++ /dev/null
@@ -1,28 +0,0 @@
-#include
-#include
-
-using namespace metal;
-
-struct cb1_struct
-{
- float4 _m0[1];
-};
-
-constant uint3 gl_WorkGroupSize [[maybe_unused]] = uint3(16u, 16u, 1u);
-
-kernel void main0(constant cb1_struct& cb0_1 [[buffer(0)]], texture2d u0 [[texture(0)]], uint3 gl_LocalInvocationID [[thread_position_in_threadgroup]])
-{
- int2 _40 = int2(u0.get_width(), u0.get_height()) >> int2(uint2(4u));
- int _80;
- _80 = 0;
- for (; _80 < _40.y; _80++)
- {
- for (int _81 = 0; _81 < _40.x; )
- {
- u0.write(cb0_1._m0[0].xxxx, uint2(((_40 * int3(gl_LocalInvocationID).xy) + int2(_80, _81))));
- _81++;
- continue;
- }
- }
-}
-
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/frag/combined-sampler-reuse.asm.frag b/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/frag/combined-sampler-reuse.asm.frag
deleted file mode 100644
index 703dd0a95..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/frag/combined-sampler-reuse.asm.frag
+++ /dev/null
@@ -1,23 +0,0 @@
-#include
-#include
-
-using namespace metal;
-
-struct main0_out
-{
- float4 FragColor [[color(0)]];
-};
-
-struct main0_in
-{
- float2 vUV [[user(locn0)]];
-};
-
-fragment main0_out main0(main0_in in [[stage_in]], texture2d uTex [[texture(0)]], sampler uSampler [[sampler(0)]])
-{
- main0_out out = {};
- out.FragColor = uTex.sample(uSampler, in.vUV);
- out.FragColor += uTex.sample(uSampler, in.vUV, int2(1));
- return out;
-}
-
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/frag/default-member-names.asm.frag b/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/frag/default-member-names.asm.frag
deleted file mode 100644
index 82b41d1a8..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/frag/default-member-names.asm.frag
+++ /dev/null
@@ -1,19 +0,0 @@
-#include
-#include
-
-using namespace metal;
-
-constant float _49 = {};
-
-struct main0_out
-{
- float4 m_3 [[color(0)]];
-};
-
-fragment main0_out main0()
-{
- main0_out out = {};
- out.m_3 = float4(_49);
- return out;
-}
-
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/frag/descriptor-array-unnamed.asm.frag b/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/frag/descriptor-array-unnamed.asm.frag
deleted file mode 100644
index 1870f6719..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/frag/descriptor-array-unnamed.asm.frag
+++ /dev/null
@@ -1,48 +0,0 @@
-#include
-#include
-
-using namespace metal;
-
-struct _4
-{
- float4 _m0;
-};
-
-struct _6
-{
- int _m0;
-};
-
-struct _7
-{
- float4 _m0;
-};
-
-struct main0_out
-{
- float4 m_3 [[color(0)]];
-};
-
-fragment main0_out main0(const device _4* _5_0 [[buffer(0)]], const device _4* _5_1 [[buffer(1)]], const device _4* _5_2 [[buffer(2)]], const device _4* _5_3 [[buffer(3)]], constant _6& _20 [[buffer(4)]], constant _7* _8_0 [[buffer(5)]], constant _7* _8_1 [[buffer(6)]], constant _7* _8_2 [[buffer(7)]], constant _7* _8_3 [[buffer(8)]])
-{
- const device _4* _5[] =
- {
- _5_0,
- _5_1,
- _5_2,
- _5_3,
- };
-
- constant _7* _8[] =
- {
- _8_0,
- _8_1,
- _8_2,
- _8_3,
- };
-
- main0_out out = {};
- out.m_3 = _5[_20._m0]->_m0 + (_8[_20._m0]->_m0 * float4(0.20000000298023223876953125));
- return out;
-}
-
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/frag/empty-struct.asm.frag b/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/frag/empty-struct.asm.frag
deleted file mode 100644
index 92ac1d9f8..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/frag/empty-struct.asm.frag
+++ /dev/null
@@ -1,9 +0,0 @@
-#include
-#include
-
-using namespace metal;
-
-fragment void main0()
-{
-}
-
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/frag/extract-packed-from-composite.asm.frag b/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/frag/extract-packed-from-composite.asm.frag
deleted file mode 100644
index 649f9f6f1..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/frag/extract-packed-from-composite.asm.frag
+++ /dev/null
@@ -1,30 +0,0 @@
-#include
-#include
-
-using namespace metal;
-
-struct Foo
-{
- packed_float3 a;
- float b;
-};
-
-struct buf
-{
- Foo results[16];
- float4 bar;
-};
-
-struct main0_out
-{
- float4 _entryPointOutput [[color(0)]];
-};
-
-fragment main0_out main0(constant buf& _11 [[buffer(0)]], float4 gl_FragCoord [[position]])
-{
- main0_out out = {};
- int _67 = int(gl_FragCoord.x) % 16;
- out._entryPointOutput = float4(dot(float3(_11.results[_67].a), _11.bar.xyz), _11.results[_67].b, 0.0, 0.0);
- return out;
-}
-
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/frag/frem.asm.frag b/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/frag/frem.asm.frag
deleted file mode 100644
index ebc73d52d..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/frag/frem.asm.frag
+++ /dev/null
@@ -1,23 +0,0 @@
-#include
-#include
-
-using namespace metal;
-
-struct main0_out
-{
- float4 FragColor [[color(0)]];
-};
-
-struct main0_in
-{
- float4 vA [[user(locn0)]];
- float4 vB [[user(locn1)]];
-};
-
-fragment main0_out main0(main0_in in [[stage_in]])
-{
- main0_out out = {};
- out.FragColor = fmod(in.vA, in.vB);
- return out;
-}
-
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/frag/function-overload-alias.asm.frag b/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/frag/function-overload-alias.asm.frag
deleted file mode 100644
index 64edee872..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/frag/function-overload-alias.asm.frag
+++ /dev/null
@@ -1,17 +0,0 @@
-#include
-#include
-
-using namespace metal;
-
-struct main0_out
-{
- float4 FragColor [[color(0)]];
-};
-
-fragment main0_out main0()
-{
- main0_out out = {};
- out.FragColor = float4(10.0);
- return out;
-}
-
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/frag/image-extract-reuse.asm.frag b/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/frag/image-extract-reuse.asm.frag
deleted file mode 100644
index 0d691b306..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/frag/image-extract-reuse.asm.frag
+++ /dev/null
@@ -1,17 +0,0 @@
-#include
-#include
-
-using namespace metal;
-
-struct main0_out
-{
- int2 Size [[color(0)]];
-};
-
-fragment main0_out main0(texture2d uTexture [[texture(0)]], sampler uTextureSmplr [[sampler(0)]])
-{
- main0_out out = {};
- out.Size = int2(uTexture.get_width(), uTexture.get_height()) + int2(uTexture.get_width(1), uTexture.get_height(1));
- return out;
-}
-
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/frag/implicit-read-dep-phi.asm.frag b/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/frag/implicit-read-dep-phi.asm.frag
deleted file mode 100644
index dd977a99d..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/frag/implicit-read-dep-phi.asm.frag
+++ /dev/null
@@ -1,50 +0,0 @@
-#include
-#include
-
-using namespace metal;
-
-struct main0_out
-{
- float4 FragColor [[color(0)]];
-};
-
-struct main0_in
-{
- float4 v0 [[user(locn0)]];
-};
-
-fragment main0_out main0(main0_in in [[stage_in]], texture2d uImage [[texture(0)]], sampler uImageSmplr [[sampler(0)]])
-{
- main0_out out = {};
- float phi;
- float4 _36;
- int _51;
- _51 = 0;
- phi = 1.0;
- _36 = float4(1.0, 2.0, 1.0, 2.0);
- for (;;)
- {
- out.FragColor = _36;
- if (_51 < 4)
- {
- if (in.v0[_51] > 0.0)
- {
- float2 _48 = float2(phi);
- _51++;
- phi += 2.0;
- _36 = uImage.sample(uImageSmplr, _48, level(0.0));
- continue;
- }
- else
- {
- break;
- }
- }
- else
- {
- break;
- }
- }
- return out;
-}
-
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/frag/inf-nan-constant.asm.frag b/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/frag/inf-nan-constant.asm.frag
deleted file mode 100644
index 8537dac19..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/frag/inf-nan-constant.asm.frag
+++ /dev/null
@@ -1,17 +0,0 @@
-#include
-#include
-
-using namespace metal;
-
-struct main0_out
-{
- float3 FragColor [[color(0)]];
-};
-
-fragment main0_out main0()
-{
- main0_out out = {};
- out.FragColor = float3(as_type(0x7f800000u), as_type(0xff800000u), as_type(0x7fc00000u));
- return out;
-}
-
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/frag/interpolation-qualifiers-struct.asm.frag b/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/frag/interpolation-qualifiers-struct.asm.frag
deleted file mode 100644
index 41472adac..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/frag/interpolation-qualifiers-struct.asm.frag
+++ /dev/null
@@ -1,47 +0,0 @@
-#include
-#include
-
-using namespace metal;
-
-struct Input
-{
- float2 v0;
- float2 v1;
- float3 v2;
- float4 v3;
- float v4;
- float v5;
- float v6;
-};
-
-struct main0_out
-{
- float4 FragColor [[color(0)]];
-};
-
-struct main0_in
-{
- float2 Input_v0 [[user(locn0)]];
- float2 Input_v1 [[user(locn1), center_no_perspective]];
- float3 Input_v2 [[user(locn2), centroid_perspective]];
- float4 Input_v3 [[user(locn3), centroid_no_perspective]];
- float Input_v4 [[user(locn4), sample_perspective]];
- float Input_v5 [[user(locn5), sample_no_perspective]];
- float Input_v6 [[user(locn6), flat]];
-};
-
-fragment main0_out main0(main0_in in [[stage_in]])
-{
- main0_out out = {};
- Input inp = {};
- inp.v0 = in.Input_v0;
- inp.v1 = in.Input_v1;
- inp.v2 = in.Input_v2;
- inp.v3 = in.Input_v3;
- inp.v4 = in.Input_v4;
- inp.v5 = in.Input_v5;
- inp.v6 = in.Input_v6;
- out.FragColor = float4(inp.v0.x + inp.v1.y, inp.v2.xy, ((inp.v3.w * inp.v4) + inp.v5) - inp.v6);
- return out;
-}
-
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/frag/line-directive.line.asm.frag b/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/frag/line-directive.line.asm.frag
deleted file mode 100644
index 0d9666d66..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/frag/line-directive.line.asm.frag
+++ /dev/null
@@ -1,82 +0,0 @@
-#include
-#include
-
-using namespace metal;
-
-struct main0_out
-{
- float FragColor [[color(0)]];
-};
-
-struct main0_in
-{
- float vColor [[user(locn0)]];
-};
-
-#line 8 "test.frag"
-fragment main0_out main0(main0_in in [[stage_in]])
-{
- main0_out out = {};
-#line 8 "test.frag"
- out.FragColor = 1.0;
-#line 9 "test.frag"
- out.FragColor = 2.0;
-#line 10 "test.frag"
- if (in.vColor < 0.0)
- {
-#line 12 "test.frag"
- out.FragColor = 3.0;
- }
- else
- {
-#line 16 "test.frag"
- out.FragColor = 4.0;
- }
- for (int _126 = 0; float(_126) < (40.0 + in.vColor); )
- {
-#line 21 "test.frag"
- out.FragColor += 0.20000000298023223876953125;
-#line 22 "test.frag"
- out.FragColor += 0.300000011920928955078125;
- _126 += (int(in.vColor) + 5);
- continue;
- }
- switch (int(in.vColor))
- {
- case 0:
- {
-#line 28 "test.frag"
- out.FragColor += 0.20000000298023223876953125;
-#line 29 "test.frag"
- break;
- }
- case 1:
- {
-#line 32 "test.frag"
- out.FragColor += 0.4000000059604644775390625;
-#line 33 "test.frag"
- break;
- }
- default:
- {
-#line 36 "test.frag"
- out.FragColor += 0.800000011920928955078125;
-#line 37 "test.frag"
- break;
- }
- }
- for (;;)
- {
- out.FragColor += (10.0 + in.vColor);
-#line 43 "test.frag"
- if (out.FragColor < 100.0)
- {
- }
- else
- {
- break;
- }
- }
- return out;
-}
-
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/frag/locations-components.asm.frag b/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/frag/locations-components.asm.frag
deleted file mode 100644
index 07ab82ac1..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/frag/locations-components.asm.frag
+++ /dev/null
@@ -1,35 +0,0 @@
-#include
-#include
-
-using namespace metal;
-
-struct main0_out
-{
- float4 o0 [[color(0)]];
-};
-
-struct main0_in
-{
- float2 m_2 [[user(locn1)]];
- float m_3 [[user(locn1_2)]];
- float m_4 [[user(locn2), flat]];
- uint m_5 [[user(locn2_1)]];
- uint m_6 [[user(locn2_2)]];
-};
-
-fragment main0_out main0(main0_in in [[stage_in]])
-{
- main0_out out = {};
- float4 v1;
- v1 = float4(in.m_2.x, in.m_2.y, v1.z, v1.w);
- v1.z = in.m_3;
- float4 v2;
- v2.x = in.m_4;
- v2.y = as_type(in.m_5);
- v2.z = as_type(in.m_6);
- out.o0.y = float(as_type(as_type(as_type(v2.y) + as_type(v2.z))));
- out.o0.x = v1.y + v2.x;
- out.o0 = float4(out.o0.x, out.o0.y, v1.z, v1.x);
- return out;
-}
-
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/frag/lut-promotion-initializer.asm.frag b/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/frag/lut-promotion-initializer.asm.frag
deleted file mode 100644
index 726976631..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/frag/lut-promotion-initializer.asm.frag
+++ /dev/null
@@ -1,94 +0,0 @@
-#pragma clang diagnostic ignored "-Wmissing-prototypes"
-#pragma clang diagnostic ignored "-Wmissing-braces"
-
-#include
-#include
-
-using namespace metal;
-
-template
-struct spvUnsafeArray
-{
- T elements[Num ? Num : 1];
-
- thread T& operator [] (size_t pos) thread
- {
- return elements[pos];
- }
- constexpr const thread T& operator [] (size_t pos) const thread
- {
- return elements[pos];
- }
-
- device T& operator [] (size_t pos) device
- {
- return elements[pos];
- }
- constexpr const device T& operator [] (size_t pos) const device
- {
- return elements[pos];
- }
-
- constexpr const constant T& operator [] (size_t pos) const constant
- {
- return elements[pos];
- }
-
- threadgroup T& operator [] (size_t pos) threadgroup
- {
- return elements[pos];
- }
- constexpr const threadgroup T& operator [] (size_t pos) const threadgroup
- {
- return elements[pos];
- }
-};
-
-constant spvUnsafeArray _46 = spvUnsafeArray({ 1.0, 2.0, 3.0, 4.0, 1.0, 2.0, 3.0, 4.0, 1.0, 2.0, 3.0, 4.0, 1.0, 2.0, 3.0, 4.0 });
-constant spvUnsafeArray _76 = spvUnsafeArray({ float4(0.0), float4(1.0), float4(8.0), float4(5.0) });
-constant spvUnsafeArray _90 = spvUnsafeArray({ float4(20.0), float4(30.0), float4(50.0), float4(60.0) });
-
-struct main0_out
-{
- float FragColor [[color(0)]];
-};
-
-struct main0_in
-{
- int index [[user(locn0)]];
-};
-
-fragment main0_out main0(main0_in in [[stage_in]])
-{
- spvUnsafeArray foobar = spvUnsafeArray({ float4(0.0), float4(1.0), float4(8.0), float4(5.0) });
- spvUnsafeArray baz = spvUnsafeArray({ float4(0.0), float4(1.0), float4(8.0), float4(5.0) });
- main0_out out = {};
- out.FragColor = _46[in.index];
- if (in.index < 10)
- {
- out.FragColor += _46[in.index ^ 1];
- }
- else
- {
- out.FragColor += _46[in.index & 1];
- }
- bool _99 = in.index > 30;
- if (_99)
- {
- out.FragColor += _76[in.index & 3].y;
- }
- else
- {
- out.FragColor += _76[in.index & 1].x;
- }
- if (_99)
- {
- foobar[1].z = 20.0;
- }
- int _37 = in.index & 3;
- out.FragColor += foobar[_37].z;
- baz = _90;
- out.FragColor += baz[_37].z;
- return out;
-}
-
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/frag/min-lod.msl22.asm.frag b/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/frag/min-lod.msl22.asm.frag
deleted file mode 100644
index 5193b2cda..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/frag/min-lod.msl22.asm.frag
+++ /dev/null
@@ -1,22 +0,0 @@
-#include
-#include
-
-using namespace metal;
-
-struct main0_out
-{
- float4 FragColor [[color(0)]];
-};
-
-struct main0_in
-{
- float2 vUV [[user(locn0)]];
-};
-
-fragment main0_out main0(main0_in in [[stage_in]], texture2d uSampler [[texture(0)]], sampler uSamplerSmplr [[sampler(0)]])
-{
- main0_out out = {};
- out.FragColor = uSampler.sample(uSamplerSmplr, in.vUV, min_lod_clamp(4.0));
- return out;
-}
-
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/frag/op-constant-null.asm.frag b/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/frag/op-constant-null.asm.frag
deleted file mode 100644
index e1badb517..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/frag/op-constant-null.asm.frag
+++ /dev/null
@@ -1,17 +0,0 @@
-#include
-#include
-
-using namespace metal;
-
-struct main0_out
-{
- float FragColor [[color(0)]];
-};
-
-fragment main0_out main0()
-{
- main0_out out = {};
- out.FragColor = 0.0;
- return out;
-}
-
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/frag/op-image-sampled-image.asm.frag b/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/frag/op-image-sampled-image.asm.frag
deleted file mode 100644
index 45f0ca52f..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/frag/op-image-sampled-image.asm.frag
+++ /dev/null
@@ -1,22 +0,0 @@
-#include
-#include
-
-using namespace metal;
-
-struct push_cb
-{
- float4 cb0[1];
-};
-
-struct main0_out
-{
- float4 o0 [[color(0)]];
-};
-
-fragment main0_out main0(constant push_cb& _19 [[buffer(0)]], texture2d t0 [[texture(0)]], sampler dummy_sampler [[sampler(0)]])
-{
- main0_out out = {};
- out.o0 = t0.read(uint2(as_type(_19.cb0[0u].zw)) + uint2(int2(-1, -2)), as_type(0.0));
- return out;
-}
-
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/frag/pass-by-value.asm.frag b/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/frag/pass-by-value.asm.frag
deleted file mode 100644
index 3858f6dac..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/frag/pass-by-value.asm.frag
+++ /dev/null
@@ -1,22 +0,0 @@
-#include
-#include
-
-using namespace metal;
-
-struct Registers
-{
- float foo;
-};
-
-struct main0_out
-{
- float FragColor [[color(0)]];
-};
-
-fragment main0_out main0(constant Registers& registers [[buffer(0)]])
-{
- main0_out out = {};
- out.FragColor = 10.0 + registers.foo;
- return out;
-}
-
diff --git a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/frag/phi-loop-variable.asm.frag b/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/frag/phi-loop-variable.asm.frag
deleted file mode 100644
index 92ac1d9f8..000000000
--- a/3rdparty/spirv-cross/reference/opt/shaders-msl/asm/frag/phi-loop-variable.asm.frag
+++ /dev/null
@@ -1,9 +0,0 @@
-#include