diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2019-03-24 05:39:18 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2019-03-24 05:39:18 +0000 |
| commit | 6fdb3608683609fd0399715724fb9bed228e4521 (patch) | |
| tree | 41ff49384e060032fd797ed6d0a0b839dbd9ba0b /Graphics/GraphicsEngineVulkan | |
| parent | Disabling requested vulkand device features if they are not supported by phys... (diff) | |
| download | DiligentCore-6fdb3608683609fd0399715724fb9bed228e4521.tar.gz DiligentCore-6fdb3608683609fd0399715724fb9bed228e4521.zip | |
Fixed few clang warnings
Diffstat (limited to 'Graphics/GraphicsEngineVulkan')
| -rw-r--r-- | Graphics/GraphicsEngineVulkan/src/ShaderVkImpl.cpp | 2 | ||||
| -rw-r--r-- | Graphics/GraphicsEngineVulkan/src/VulkanTypeConversions.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Graphics/GraphicsEngineVulkan/src/ShaderVkImpl.cpp b/Graphics/GraphicsEngineVulkan/src/ShaderVkImpl.cpp index 5409b278..fe712cc8 100644 --- a/Graphics/GraphicsEngineVulkan/src/ShaderVkImpl.cpp +++ b/Graphics/GraphicsEngineVulkan/src/ShaderVkImpl.cpp @@ -115,7 +115,7 @@ void ShaderVkImpl::MapHLSLVertexShaderInputs() } char* EndPtr = nullptr; - auto Location = strtol(s, &EndPtr, 10); + auto Location = static_cast<uint32_t>(strtol(s, &EndPtr, 10)); if (*EndPtr != 0) { LOG_ERROR_MESSAGE("Unable to map semantic '", Input.Semantic, "' to input location: semantics must have 'ATTRIBx' format."); diff --git a/Graphics/GraphicsEngineVulkan/src/VulkanTypeConversions.cpp b/Graphics/GraphicsEngineVulkan/src/VulkanTypeConversions.cpp index 28c09426..70f4dba5 100644 --- a/Graphics/GraphicsEngineVulkan/src/VulkanTypeConversions.cpp +++ b/Graphics/GraphicsEngineVulkan/src/VulkanTypeConversions.cpp @@ -1173,7 +1173,7 @@ private: VkAccessFlags ResourceStateFlagsToVkAccessFlags(RESOURCE_STATE StateFlags) { - VERIFY(StateFlags < (RESOURCE_STATE_MAX_BIT<<1), "Resource state flags are out of range"); + VERIFY(Uint32{StateFlags} < (RESOURCE_STATE_MAX_BIT<<1), "Resource state flags are out of range"); static const StateFlagBitPosToVkAccessFlags BitPosToAccessFlags; VkAccessFlags AccessFlags = 0; Uint32 Bits = StateFlags; |
