[meta] Use SPIRV-Headers repository as a submodule

This commit is contained in:
Philip Rebohle 2022-08-21 22:21:57 +02:00 committed by Philip Rebohle
parent aa554f1166
commit c1448d31fa
10 changed files with 50 additions and 2876 deletions

3
.gitmodules vendored
View File

@ -4,3 +4,6 @@
[submodule "include/vulkan"]
path = include/vulkan
url = https://github.com/KhronosGroup/Vulkan-Headers
[submodule "include/spirv"]
path = include/spirv
url = https://github.com/KhronosGroup/SPIRV-Headers.git

1
include/spirv Submodule

@ -0,0 +1 @@
Subproject commit 0bcc624926a25a2a273d07877fd25a6ff5ba1cfb

View File

@ -1,131 +0,0 @@
/*
** Copyright (c) 2014-2016 The Khronos Group Inc.
**
** Permission is hereby granted, free of charge, to any person obtaining a copy
** of this software and/or associated documentation files (the "Materials"),
** to deal in the Materials without restriction, including without limitation
** the rights to use, copy, modify, merge, publish, distribute, sublicense,
** and/or sell copies of the Materials, and to permit persons to whom the
** Materials are furnished to do so, subject to the following conditions:
**
** The above copyright notice and this permission notice shall be included in
** all copies or substantial portions of the Materials.
**
** MODIFICATIONS TO THIS FILE MAY MEAN IT NO LONGER ACCURATELY REFLECTS KHRONOS
** STANDARDS. THE UNMODIFIED, NORMATIVE VERSIONS OF KHRONOS SPECIFICATIONS AND
** HEADER INFORMATION ARE LOCATED AT https://www.khronos.org/registry/
**
** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
** OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
** FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
** THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
** LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
** FROM,OUT OF OR IN CONNECTION WITH THE MATERIALS OR THE USE OR OTHER DEALINGS
** IN THE MATERIALS.
*/
#ifndef GLSLstd450_H
#define GLSLstd450_H
static const int GLSLstd450Version = 100;
static const int GLSLstd450Revision = 3;
enum GLSLstd450 {
GLSLstd450Bad = 0, // Don't use
GLSLstd450Round = 1,
GLSLstd450RoundEven = 2,
GLSLstd450Trunc = 3,
GLSLstd450FAbs = 4,
GLSLstd450SAbs = 5,
GLSLstd450FSign = 6,
GLSLstd450SSign = 7,
GLSLstd450Floor = 8,
GLSLstd450Ceil = 9,
GLSLstd450Fract = 10,
GLSLstd450Radians = 11,
GLSLstd450Degrees = 12,
GLSLstd450Sin = 13,
GLSLstd450Cos = 14,
GLSLstd450Tan = 15,
GLSLstd450Asin = 16,
GLSLstd450Acos = 17,
GLSLstd450Atan = 18,
GLSLstd450Sinh = 19,
GLSLstd450Cosh = 20,
GLSLstd450Tanh = 21,
GLSLstd450Asinh = 22,
GLSLstd450Acosh = 23,
GLSLstd450Atanh = 24,
GLSLstd450Atan2 = 25,
GLSLstd450Pow = 26,
GLSLstd450Exp = 27,
GLSLstd450Log = 28,
GLSLstd450Exp2 = 29,
GLSLstd450Log2 = 30,
GLSLstd450Sqrt = 31,
GLSLstd450InverseSqrt = 32,
GLSLstd450Determinant = 33,
GLSLstd450MatrixInverse = 34,
GLSLstd450Modf = 35, // second operand needs an OpVariable to write to
GLSLstd450ModfStruct = 36, // no OpVariable operand
GLSLstd450FMin = 37,
GLSLstd450UMin = 38,
GLSLstd450SMin = 39,
GLSLstd450FMax = 40,
GLSLstd450UMax = 41,
GLSLstd450SMax = 42,
GLSLstd450FClamp = 43,
GLSLstd450UClamp = 44,
GLSLstd450SClamp = 45,
GLSLstd450FMix = 46,
GLSLstd450IMix = 47, // Reserved
GLSLstd450Step = 48,
GLSLstd450SmoothStep = 49,
GLSLstd450Fma = 50,
GLSLstd450Frexp = 51, // second operand needs an OpVariable to write to
GLSLstd450FrexpStruct = 52, // no OpVariable operand
GLSLstd450Ldexp = 53,
GLSLstd450PackSnorm4x8 = 54,
GLSLstd450PackUnorm4x8 = 55,
GLSLstd450PackSnorm2x16 = 56,
GLSLstd450PackUnorm2x16 = 57,
GLSLstd450PackHalf2x16 = 58,
GLSLstd450PackDouble2x32 = 59,
GLSLstd450UnpackSnorm2x16 = 60,
GLSLstd450UnpackUnorm2x16 = 61,
GLSLstd450UnpackHalf2x16 = 62,
GLSLstd450UnpackSnorm4x8 = 63,
GLSLstd450UnpackUnorm4x8 = 64,
GLSLstd450UnpackDouble2x32 = 65,
GLSLstd450Length = 66,
GLSLstd450Distance = 67,
GLSLstd450Cross = 68,
GLSLstd450Normalize = 69,
GLSLstd450FaceForward = 70,
GLSLstd450Reflect = 71,
GLSLstd450Refract = 72,
GLSLstd450FindILsb = 73,
GLSLstd450FindSMsb = 74,
GLSLstd450FindUMsb = 75,
GLSLstd450InterpolateAtCentroid = 76,
GLSLstd450InterpolateAtSample = 77,
GLSLstd450InterpolateAtOffset = 78,
GLSLstd450NMin = 79,
GLSLstd450NMax = 80,
GLSLstd450NClamp = 81,
GLSLstd450Count
};
#endif // #ifndef GLSLstd450_H

View File

@ -1,135 +0,0 @@
/*
** Copyright (c) 2014-2016 The Khronos Group Inc.
**
** Permission is hereby granted, free of charge, to any person obtaining a copy
** of this software and/or associated documentation files (the "Materials"),
** to deal in the Materials without restriction, including without limitation
** the rights to use, copy, modify, merge, publish, distribute, sublicense,
** and/or sell copies of the Materials, and to permit persons to whom the
** Materials are furnished to do so, subject to the following conditions:
**
** The above copyright notice and this permission notice shall be included in
** all copies or substantial portions of the Materials.
**
** MODIFICATIONS TO THIS FILE MAY MEAN IT NO LONGER ACCURATELY REFLECTS KHRONOS
** STANDARDS. THE UNMODIFIED, NORMATIVE VERSIONS OF KHRONOS SPECIFICATIONS AND
** HEADER INFORMATION ARE LOCATED AT https://www.khronos.org/registry/
**
** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
** OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
** FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
** THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
** LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
** FROM,OUT OF OR IN CONNECTION WITH THE MATERIALS OR THE USE OR OTHER DEALINGS
** IN THE MATERIALS.
*/
#ifndef GLSLstd450_HPP
#define GLSLstd450_HPP
namespace spv {
static const int GLSLstd450Version = 100;
static const int GLSLstd450Revision = 3;
enum GLSLstd450 {
GLSLstd450Bad = 0, // Don't use
GLSLstd450Round = 1,
GLSLstd450RoundEven = 2,
GLSLstd450Trunc = 3,
GLSLstd450FAbs = 4,
GLSLstd450SAbs = 5,
GLSLstd450FSign = 6,
GLSLstd450SSign = 7,
GLSLstd450Floor = 8,
GLSLstd450Ceil = 9,
GLSLstd450Fract = 10,
GLSLstd450Radians = 11,
GLSLstd450Degrees = 12,
GLSLstd450Sin = 13,
GLSLstd450Cos = 14,
GLSLstd450Tan = 15,
GLSLstd450Asin = 16,
GLSLstd450Acos = 17,
GLSLstd450Atan = 18,
GLSLstd450Sinh = 19,
GLSLstd450Cosh = 20,
GLSLstd450Tanh = 21,
GLSLstd450Asinh = 22,
GLSLstd450Acosh = 23,
GLSLstd450Atanh = 24,
GLSLstd450Atan2 = 25,
GLSLstd450Pow = 26,
GLSLstd450Exp = 27,
GLSLstd450Log = 28,
GLSLstd450Exp2 = 29,
GLSLstd450Log2 = 30,
GLSLstd450Sqrt = 31,
GLSLstd450InverseSqrt = 32,
GLSLstd450Determinant = 33,
GLSLstd450MatrixInverse = 34,
GLSLstd450Modf = 35, // second operand needs an OpVariable to write to
GLSLstd450ModfStruct = 36, // no OpVariable operand
GLSLstd450FMin = 37,
GLSLstd450UMin = 38,
GLSLstd450SMin = 39,
GLSLstd450FMax = 40,
GLSLstd450UMax = 41,
GLSLstd450SMax = 42,
GLSLstd450FClamp = 43,
GLSLstd450UClamp = 44,
GLSLstd450SClamp = 45,
GLSLstd450FMix = 46,
GLSLstd450IMix = 47, // Reserved
GLSLstd450Step = 48,
GLSLstd450SmoothStep = 49,
GLSLstd450Fma = 50,
GLSLstd450Frexp = 51, // second operand needs an OpVariable to write to
GLSLstd450FrexpStruct = 52, // no OpVariable operand
GLSLstd450Ldexp = 53,
GLSLstd450PackSnorm4x8 = 54,
GLSLstd450PackUnorm4x8 = 55,
GLSLstd450PackSnorm2x16 = 56,
GLSLstd450PackUnorm2x16 = 57,
GLSLstd450PackHalf2x16 = 58,
GLSLstd450PackDouble2x32 = 59,
GLSLstd450UnpackSnorm2x16 = 60,
GLSLstd450UnpackUnorm2x16 = 61,
GLSLstd450UnpackHalf2x16 = 62,
GLSLstd450UnpackSnorm4x8 = 63,
GLSLstd450UnpackUnorm4x8 = 64,
GLSLstd450UnpackDouble2x32 = 65,
GLSLstd450Length = 66,
GLSLstd450Distance = 67,
GLSLstd450Cross = 68,
GLSLstd450Normalize = 69,
GLSLstd450FaceForward = 70,
GLSLstd450Reflect = 71,
GLSLstd450Refract = 72,
GLSLstd450FindILsb = 73,
GLSLstd450FindSMsb = 74,
GLSLstd450FindUMsb = 75,
GLSLstd450InterpolateAtCentroid = 76,
GLSLstd450InterpolateAtSample = 77,
GLSLstd450InterpolateAtOffset = 78,
GLSLstd450NMin = 79,
GLSLstd450NMax = 80,
GLSLstd450NClamp = 81,
GLSLstd450Count
};
}
#endif // #ifndef GLSLstd450_HPP

File diff suppressed because it is too large Load Diff

View File

@ -26,7 +26,7 @@ if get_option('build_id')
]
endif
dxvk_include_path = include_directories('./include', './include/vulkan/include')
dxvk_include_path = include_directories('./include', './include/vulkan/include', './include/spirv/include')
if platform == 'windows'
compiler_args += [

View File

@ -1,7 +1,5 @@
#pragma once
#include <spirv/spirv.hpp>
#include <iostream>
#include <utility>
#include <vector>

View File

@ -1,5 +1,8 @@
#pragma once
#include <spirv/unified1/spirv.hpp>
#include <spirv/unified1/GLSL.std.450.h>
#include "../util/log/log.h"
#include "../util/log/log_debug.h"

View File

@ -1,8 +1,5 @@
#pragma once
#include <spirv/spirv.hpp>
#include <spirv/GLSL.std.450.hpp>
#include "spirv_include.h"
namespace dxvk {

View File

@ -1330,7 +1330,7 @@ namespace dxvk {
m_code.putWord(resultType);
m_code.putWord(resultId);
m_code.putWord(m_instExtGlsl450);
m_code.putWord(spv::GLSLstd450FindILsb);
m_code.putWord(GLSLstd450FindILsb);
m_code.putWord(operand);
return resultId;
}
@ -1345,7 +1345,7 @@ namespace dxvk {
m_code.putWord(resultType);
m_code.putWord(resultId);
m_code.putWord(m_instExtGlsl450);
m_code.putWord(spv::GLSLstd450FindUMsb);
m_code.putWord(GLSLstd450FindUMsb);
m_code.putWord(operand);
return resultId;
}
@ -1360,7 +1360,7 @@ namespace dxvk {
m_code.putWord(resultType);
m_code.putWord(resultId);
m_code.putWord(m_instExtGlsl450);
m_code.putWord(spv::GLSLstd450FindSMsb);
m_code.putWord(GLSLstd450FindSMsb);
m_code.putWord(operand);
return resultId;
}
@ -1776,7 +1776,7 @@ namespace dxvk {
m_code.putWord(resultType);
m_code.putWord(resultId);
m_code.putWord(m_instExtGlsl450);
m_code.putWord(spv::GLSLstd450SAbs);
m_code.putWord(GLSLstd450SAbs);
m_code.putWord(operand);
return resultId;
}
@ -1791,7 +1791,7 @@ namespace dxvk {
m_code.putWord(resultType);
m_code.putWord(resultId);
m_code.putWord(m_instExtGlsl450);
m_code.putWord(spv::GLSLstd450FAbs);
m_code.putWord(GLSLstd450FAbs);
m_code.putWord(operand);
return resultId;
}
@ -1806,7 +1806,7 @@ namespace dxvk {
m_code.putWord(resultType);
m_code.putWord(resultId);
m_code.putWord(m_instExtGlsl450);
m_code.putWord(spv::GLSLstd450FSign);
m_code.putWord(GLSLstd450FSign);
m_code.putWord(operand);
return resultId;
}
@ -1823,7 +1823,7 @@ namespace dxvk {
m_code.putWord(resultType);
m_code.putWord(resultId);
m_code.putWord(m_instExtGlsl450);
m_code.putWord(spv::GLSLstd450FMix);
m_code.putWord(GLSLstd450FMix);
m_code.putWord(x);
m_code.putWord(y);
m_code.putWord(a);
@ -1841,7 +1841,7 @@ namespace dxvk {
m_code.putWord(resultType);
m_code.putWord(resultId);
m_code.putWord(m_instExtGlsl450);
m_code.putWord(spv::GLSLstd450Cross);
m_code.putWord(GLSLstd450Cross);
m_code.putWord(x);
m_code.putWord(y);
return resultId;
@ -2095,7 +2095,7 @@ namespace dxvk {
m_code.putWord(resultType);
m_code.putWord(resultId);
m_code.putWord(m_instExtGlsl450);
m_code.putWord(spv::GLSLstd450MatrixInverse);
m_code.putWord(GLSLstd450MatrixInverse);
m_code.putWord(matrix);
return resultId;
}
@ -2112,7 +2112,7 @@ namespace dxvk {
m_code.putWord(resultType);
m_code.putWord(resultId);
m_code.putWord(m_instExtGlsl450);
m_code.putWord(spv::GLSLstd450Fma);
m_code.putWord(GLSLstd450Fma);
m_code.putWord(a);
m_code.putWord(b);
m_code.putWord(c);
@ -2130,7 +2130,7 @@ namespace dxvk {
m_code.putWord(resultType);
m_code.putWord(resultId);
m_code.putWord(m_instExtGlsl450);
m_code.putWord(spv::GLSLstd450FMax);
m_code.putWord(GLSLstd450FMax);
m_code.putWord(a);
m_code.putWord(b);
return resultId;
@ -2147,7 +2147,7 @@ namespace dxvk {
m_code.putWord(resultType);
m_code.putWord(resultId);
m_code.putWord(m_instExtGlsl450);
m_code.putWord(spv::GLSLstd450FMin);
m_code.putWord(GLSLstd450FMin);
m_code.putWord(a);
m_code.putWord(b);
return resultId;
@ -2164,7 +2164,7 @@ namespace dxvk {
m_code.putWord(resultType);
m_code.putWord(resultId);
m_code.putWord(m_instExtGlsl450);
m_code.putWord(spv::GLSLstd450NMax);
m_code.putWord(GLSLstd450NMax);
m_code.putWord(a);
m_code.putWord(b);
return resultId;
@ -2181,7 +2181,7 @@ namespace dxvk {
m_code.putWord(resultType);
m_code.putWord(resultId);
m_code.putWord(m_instExtGlsl450);
m_code.putWord(spv::GLSLstd450NMin);
m_code.putWord(GLSLstd450NMin);
m_code.putWord(a);
m_code.putWord(b);
return resultId;
@ -2198,7 +2198,7 @@ namespace dxvk {
m_code.putWord(resultType);
m_code.putWord(resultId);
m_code.putWord(m_instExtGlsl450);
m_code.putWord(spv::GLSLstd450SMax);
m_code.putWord(GLSLstd450SMax);
m_code.putWord(a);
m_code.putWord(b);
return resultId;
@ -2215,7 +2215,7 @@ namespace dxvk {
m_code.putWord(resultType);
m_code.putWord(resultId);
m_code.putWord(m_instExtGlsl450);
m_code.putWord(spv::GLSLstd450SMin);
m_code.putWord(GLSLstd450SMin);
m_code.putWord(a);
m_code.putWord(b);
return resultId;
@ -2232,7 +2232,7 @@ namespace dxvk {
m_code.putWord(resultType);
m_code.putWord(resultId);
m_code.putWord(m_instExtGlsl450);
m_code.putWord(spv::GLSLstd450UMax);
m_code.putWord(GLSLstd450UMax);
m_code.putWord(a);
m_code.putWord(b);
return resultId;
@ -2249,7 +2249,7 @@ namespace dxvk {
m_code.putWord(resultType);
m_code.putWord(resultId);
m_code.putWord(m_instExtGlsl450);
m_code.putWord(spv::GLSLstd450UMin);
m_code.putWord(GLSLstd450UMin);
m_code.putWord(a);
m_code.putWord(b);
return resultId;
@ -2267,7 +2267,7 @@ namespace dxvk {
m_code.putWord(resultType);
m_code.putWord(resultId);
m_code.putWord(m_instExtGlsl450);
m_code.putWord(spv::GLSLstd450FClamp);
m_code.putWord(GLSLstd450FClamp);
m_code.putWord(x);
m_code.putWord(minVal);
m_code.putWord(maxVal);
@ -2286,7 +2286,7 @@ namespace dxvk {
m_code.putWord(resultType);
m_code.putWord(resultId);
m_code.putWord(m_instExtGlsl450);
m_code.putWord(spv::GLSLstd450NClamp);
m_code.putWord(GLSLstd450NClamp);
m_code.putWord(x);
m_code.putWord(minVal);
m_code.putWord(maxVal);
@ -2631,7 +2631,7 @@ namespace dxvk {
m_code.putWord(resultType);
m_code.putWord(resultId);
m_code.putWord(m_instExtGlsl450);
m_code.putWord(spv::GLSLstd450Sin);
m_code.putWord(GLSLstd450Sin);
m_code.putWord(vector);
return resultId;
}
@ -2646,7 +2646,7 @@ namespace dxvk {
m_code.putWord(resultType);
m_code.putWord(resultId);
m_code.putWord(m_instExtGlsl450);
m_code.putWord(spv::GLSLstd450Cos);
m_code.putWord(GLSLstd450Cos);
m_code.putWord(vector);
return resultId;
}
@ -2661,7 +2661,7 @@ namespace dxvk {
m_code.putWord(resultType);
m_code.putWord(resultId);
m_code.putWord(m_instExtGlsl450);
m_code.putWord(spv::GLSLstd450Sqrt);
m_code.putWord(GLSLstd450Sqrt);
m_code.putWord(operand);
return resultId;
}
@ -2676,7 +2676,7 @@ namespace dxvk {
m_code.putWord(resultType);
m_code.putWord(resultId);
m_code.putWord(m_instExtGlsl450);
m_code.putWord(spv::GLSLstd450InverseSqrt);
m_code.putWord(GLSLstd450InverseSqrt);
m_code.putWord(operand);
return resultId;
}
@ -2691,7 +2691,7 @@ namespace dxvk {
m_code.putWord(resultType);
m_code.putWord(resultId);
m_code.putWord(m_instExtGlsl450);
m_code.putWord(spv::GLSLstd450Normalize);
m_code.putWord(GLSLstd450Normalize);
m_code.putWord(operand);
return resultId;
}
@ -2707,7 +2707,7 @@ namespace dxvk {
m_code.putWord(resultType);
m_code.putWord(resultId);
m_code.putWord(m_instExtGlsl450);
m_code.putWord(spv::GLSLstd450Reflect);
m_code.putWord(GLSLstd450Reflect);
m_code.putWord(incident);
m_code.putWord(normal);
return resultId;
@ -2723,7 +2723,7 @@ namespace dxvk {
m_code.putWord(resultType);
m_code.putWord(resultId);
m_code.putWord(m_instExtGlsl450);
m_code.putWord(spv::GLSLstd450Length);
m_code.putWord(GLSLstd450Length);
m_code.putWord(operand);
return resultId;
}
@ -2738,7 +2738,7 @@ namespace dxvk {
m_code.putWord(resultType);
m_code.putWord(resultId);
m_code.putWord(m_instExtGlsl450);
m_code.putWord(spv::GLSLstd450Exp2);
m_code.putWord(GLSLstd450Exp2);
m_code.putWord(operand);
return resultId;
}
@ -2753,7 +2753,7 @@ namespace dxvk {
m_code.putWord(resultType);
m_code.putWord(resultId);
m_code.putWord(m_instExtGlsl450);
m_code.putWord(spv::GLSLstd450Exp);
m_code.putWord(GLSLstd450Exp);
m_code.putWord(operand);
return resultId;
}
@ -2768,7 +2768,7 @@ namespace dxvk {
m_code.putWord(resultType);
m_code.putWord(resultId);
m_code.putWord(m_instExtGlsl450);
m_code.putWord(spv::GLSLstd450Log2);
m_code.putWord(GLSLstd450Log2);
m_code.putWord(operand);
return resultId;
}
@ -2783,7 +2783,7 @@ namespace dxvk {
m_code.putWord(resultType);
m_code.putWord(resultId);
m_code.putWord(m_instExtGlsl450);
m_code.putWord(spv::GLSLstd450Pow);
m_code.putWord(GLSLstd450Pow);
m_code.putWord(base);
m_code.putWord(exponent);
return resultId;
@ -2798,7 +2798,7 @@ namespace dxvk {
m_code.putWord(resultType);
m_code.putWord(resultId);
m_code.putWord(m_instExtGlsl450);
m_code.putWord(spv::GLSLstd450Fract);
m_code.putWord(GLSLstd450Fract);
m_code.putWord(operand);
return resultId;
}
@ -2813,7 +2813,7 @@ namespace dxvk {
m_code.putWord(resultType);
m_code.putWord(resultId);
m_code.putWord(m_instExtGlsl450);
m_code.putWord(spv::GLSLstd450Ceil);
m_code.putWord(GLSLstd450Ceil);
m_code.putWord(operand);
return resultId;
}
@ -2828,7 +2828,7 @@ namespace dxvk {
m_code.putWord(resultType);
m_code.putWord(resultId);
m_code.putWord(m_instExtGlsl450);
m_code.putWord(spv::GLSLstd450Floor);
m_code.putWord(GLSLstd450Floor);
m_code.putWord(operand);
return resultId;
}
@ -2843,7 +2843,7 @@ namespace dxvk {
m_code.putWord(resultType);
m_code.putWord(resultId);
m_code.putWord(m_instExtGlsl450);
m_code.putWord(spv::GLSLstd450Round);
m_code.putWord(GLSLstd450Round);
m_code.putWord(operand);
return resultId;
}
@ -2858,7 +2858,7 @@ namespace dxvk {
m_code.putWord(resultType);
m_code.putWord(resultId);
m_code.putWord(m_instExtGlsl450);
m_code.putWord(spv::GLSLstd450RoundEven);
m_code.putWord(GLSLstd450RoundEven);
m_code.putWord(operand);
return resultId;
}
@ -2873,7 +2873,7 @@ namespace dxvk {
m_code.putWord(resultType);
m_code.putWord(resultId);
m_code.putWord(m_instExtGlsl450);
m_code.putWord(spv::GLSLstd450Trunc);
m_code.putWord(GLSLstd450Trunc);
m_code.putWord(operand);
return resultId;
}
@ -2901,7 +2901,7 @@ namespace dxvk {
m_code.putWord(resultType);
m_code.putWord(resultId);
m_code.putWord(m_instExtGlsl450);
m_code.putWord(spv::GLSLstd450PackHalf2x16);
m_code.putWord(GLSLstd450PackHalf2x16);
m_code.putWord(operand);
return resultId;
}
@ -2916,7 +2916,7 @@ namespace dxvk {
m_code.putWord(resultType);
m_code.putWord(resultId);
m_code.putWord(m_instExtGlsl450);
m_code.putWord(spv::GLSLstd450UnpackHalf2x16);
m_code.putWord(GLSLstd450UnpackHalf2x16);
m_code.putWord(operand);
return resultId;
}
@ -3022,7 +3022,7 @@ namespace dxvk {
m_code.putWord(resultType);
m_code.putWord(resultId);
m_code.putWord(m_instExtGlsl450);
m_code.putWord(spv::GLSLstd450InterpolateAtCentroid);
m_code.putWord(GLSLstd450InterpolateAtCentroid);
m_code.putWord(interpolant);
return resultId;
}
@ -3038,7 +3038,7 @@ namespace dxvk {
m_code.putWord(resultType);
m_code.putWord(resultId);
m_code.putWord(m_instExtGlsl450);
m_code.putWord(spv::GLSLstd450InterpolateAtSample);
m_code.putWord(GLSLstd450InterpolateAtSample);
m_code.putWord(interpolant);
m_code.putWord(sample);
return resultId;
@ -3055,7 +3055,7 @@ namespace dxvk {
m_code.putWord(resultType);
m_code.putWord(resultId);
m_code.putWord(m_instExtGlsl450);
m_code.putWord(spv::GLSLstd450InterpolateAtOffset);
m_code.putWord(GLSLstd450InterpolateAtOffset);
m_code.putWord(interpolant);
m_code.putWord(offset);
return resultId;