Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/KhronosGroup/SPIRV-Tools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'test/link/binary_version_test.cpp')
-rw-r--r--test/link/binary_version_test.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/link/binary_version_test.cpp b/test/link/binary_version_test.cpp
index a56030f4e..78da1aece 100644
--- a/test/link/binary_version_test.cpp
+++ b/test/link/binary_version_test.cpp
@@ -27,20 +27,20 @@ spvtest::Binary CreateBinary(uint32_t version) {
return {
// clang-format off
// Header
- SpvMagicNumber,
+ static_cast<uint32_t>(spv::MagicNumber),
version,
SPV_GENERATOR_WORD(SPV_GENERATOR_KHRONOS, 0),
1u, // NOTE: Bound
0u, // NOTE: Schema; reserved
// OpCapability Shader
- SpvOpCapability | 2u << SpvWordCountShift,
- SpvCapabilityShader,
+ static_cast<uint32_t>(spv::Op::OpCapability) | 2u << spv::WordCountShift,
+ static_cast<uint32_t>(spv::Capability::Shader),
// OpMemoryModel Logical Simple
- SpvOpMemoryModel | 3u << SpvWordCountShift,
- SpvAddressingModelLogical,
- SpvMemoryModelSimple
+ static_cast<uint32_t>(spv::Op::OpMemoryModel) | 3u << spv::WordCountShift,
+ static_cast<uint32_t>(spv::AddressingModel::Logical),
+ static_cast<uint32_t>(spv::MemoryModel::Simple)
// clang-format on
};
}