From 44347caff169a22468965c8c5e986f4a1332c568 Mon Sep 17 00:00:00 2001 From: Bill Hollings Date: Mon, 2 Oct 2017 18:13:08 -0400 Subject: [PATCH] Add *.bc to .gitignore to ignore Xcode 9 intermediate compiled shader files. spirv_msl.hpp use numeric_limits instead of UINT32_MAX. --- .gitignore | 1 + spirv_msl.hpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index bdd308ad..206279ae 100644 --- a/.gitignore +++ b/.gitignore @@ -13,5 +13,6 @@ *.opensdf *.shader *.a +*.bc !CMakeLists.txt diff --git a/spirv_msl.hpp b/spirv_msl.hpp index 0489a230..da74c92e 100644 --- a/spirv_msl.hpp +++ b/spirv_msl.hpp @@ -63,7 +63,7 @@ using MSLStructMemberKey = uint64_t; // Special constant used in a MSLResourceBinding desc_set // element to indicate the bindings for the push constants. -static const uint32_t kPushConstDescSet = UINT32_MAX; +static const uint32_t kPushConstDescSet = std::numeric_limits::max(); // Special constant used in a MSLResourceBinding binding // element to indicate the bindings for the push constants.