aboutsummaryrefslogtreecommitdiff
path: root/test/link/binary_version_test.cpp
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 78da1aec..a56030f4 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
- static_cast<uint32_t>(spv::MagicNumber),
+ SpvMagicNumber,
version,
SPV_GENERATOR_WORD(SPV_GENERATOR_KHRONOS, 0),
1u, // NOTE: Bound
0u, // NOTE: Schema; reserved
// OpCapability Shader
- static_cast<uint32_t>(spv::Op::OpCapability) | 2u << spv::WordCountShift,
- static_cast<uint32_t>(spv::Capability::Shader),
+ SpvOpCapability | 2u << SpvWordCountShift,
+ SpvCapabilityShader,
// OpMemoryModel Logical Simple
- static_cast<uint32_t>(spv::Op::OpMemoryModel) | 3u << spv::WordCountShift,
- static_cast<uint32_t>(spv::AddressingModel::Logical),
- static_cast<uint32_t>(spv::MemoryModel::Simple)
+ SpvOpMemoryModel | 3u << SpvWordCountShift,
+ SpvAddressingModelLogical,
+ SpvMemoryModelSimple
// clang-format on
};
}