Skip to content

Commit c9597ff

Browse files
author
kevyuu
committed
Initialize stages to zero.
1 parent 542bd06 commit c9597ff

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/nbl/video/IGPUGraphicsPipeline.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class IGPUGraphicsPipeline : public IGPUPipeline<asset::IGraphicsPipeline<const
6969

7070
inline core::bitflag<hlsl::ShaderStage> getRequiredSubgroupStages() const
7171
{
72-
core::bitflag<hlsl::ShaderStage> stages;
72+
core::bitflag<hlsl::ShaderStage> stages = {};
7373
auto processSpecInfo = [&](const SShaderSpecInfo& spec, hlsl::ShaderStage stage)
7474
{
7575
if (spec.shader && spec.requiredSubgroupSize >= SUBGROUP_SIZE::REQUIRE_4) {

include/nbl/video/IGPURayTracingPipeline.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ class IGPURayTracingPipeline : public IGPUPipeline<asset::IRayTracingPipeline<c
146146

147147
inline core::bitflag<hlsl::ShaderStage> getRequiredSubgroupStages() const
148148
{
149-
core::bitflag<hlsl::ShaderStage> stages;
149+
core::bitflag<hlsl::ShaderStage> stages = {};
150150
auto processSpecInfo = [&](const SShaderSpecInfo& spec, hlsl::ShaderStage stage)
151151
{
152152
if (spec.shader && spec.requiredSubgroupSize >= SUBGROUP_SIZE::REQUIRE_4) {

0 commit comments

Comments
 (0)