Skip to content

Commit 18e9b89

Browse files
author
devsh
committed
assuade a few warnings
1 parent a88633e commit 18e9b89

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

include/nbl/video/utilities/CComputeBlit.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ class CComputeBlit : public core::IReferenceCounted
123123
baseBucketCount = 512;
124124
break;
125125
case format_t::EF_R16_UNORM: [[fallthrough]];
126-
case format_t::EF_R16_SNORM: [[fallthrough]];
126+
case format_t::EF_R16_SNORM:
127127
baseBucketCount = 1024;
128128
break;
129129
case format_t::EF_R32_SFLOAT:

src/nbl/video/CVulkanLogicalDevice.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1594,7 +1594,7 @@ void CVulkanLogicalDevice::createRayTracingPipelines_impl(
15941594
const auto key = ShaderModuleKey{ spec.shader, spec.entryPoint };
15951595
if (shaderIndexes.find(key) == shaderIndexes.end())
15961596
{
1597-
shaderIndexes.insert({ key , std::distance<decltype(outCreateInfo->pStages)>(outCreateInfo->pStages, outShaderStage)});
1597+
shaderIndexes.insert({ key , static_cast<uint32_t>(std::distance<decltype(outCreateInfo->pStages)>(outCreateInfo->pStages, outShaderStage)) });
15981598
*(outShaderStage) = getVkShaderStageCreateInfoFrom(spec, shaderStage, false, outShaderModule, outEntryPoints, outRequiredSubgroupSize, outSpecInfo,outSpecMapEntry,outSpecData);
15991599
outShaderStage++;
16001600
}

src/nbl/video/ILogicalDevice.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1062,15 +1062,15 @@ bool ILogicalDevice::createRayTracingPipelines(IGPUPipelineCache* const pipeline
10621062

10631063
const auto missGroupCount = std::accumulate(params.begin(), params.end(), 0, [](uint32_t sum, auto& param)
10641064
{
1065-
return sum + param.shaderGroups.misses.size();
1065+
return sum + static_cast<uint32_t>(param.shaderGroups.misses.size());
10661066
});
10671067
const auto hitGroupCount = std::accumulate(params.begin(), params.end(), 0, [](uint32_t sum, auto& param)
10681068
{
1069-
return sum + param.shaderGroups.hits.size();
1069+
return sum + static_cast<uint32_t>(param.shaderGroups.hits.size());
10701070
});
10711071
const auto callableGroupCount = std::accumulate(params.begin(), params.end(), 0, [](uint32_t sum, auto& param)
10721072
{
1073-
return sum + param.shaderGroups.callables.size();
1073+
return sum + static_cast<uint32_t>(param.shaderGroups.callables.size());
10741074
});
10751075

10761076

0 commit comments

Comments
 (0)