Skip to content

Commit 5ac389d

Browse files
author
kevyuu
committed
Add const to layout parameter in creation params
1 parent d02f474 commit 5ac389d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

include/nbl/video/IGPUComputePipeline.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class IGPUComputePipeline : public IGPUPipeline<asset::IComputePipeline<const IG
7474
return {};
7575
}
7676

77-
IGPUPipelineLayout* layout = nullptr;
77+
const IGPUPipelineLayout* layout = nullptr;
7878
// TODO: Could guess the required flags from SPIR-V introspection of declared caps
7979
core::bitflag<FLAGS> flags = FLAGS::NONE;
8080
SCachedCreationParams cached = {};

include/nbl/video/IGPUGraphicsPipeline.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class IGPUGraphicsPipeline : public IGPUPipeline<asset::IGraphicsPipeline<const
8787
return stages;
8888
}
8989

90-
IGPUPipelineLayout* layout = nullptr;
90+
const IGPUPipelineLayout* layout = nullptr;
9191
SShaderSpecInfo vertexShader;
9292
SShaderSpecInfo tesselationControlShader;
9393
SShaderSpecInfo tesselationEvaluationShader;

include/nbl/video/IGPURayTracingPipeline.h

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

4242
};
4343

44-
IGPUPipelineLayout* layout = nullptr;
44+
const IGPUPipelineLayout* layout = nullptr;
4545
SShaderGroupsParams shaderGroups;
4646

4747
SCachedCreationParams cached = {};

0 commit comments

Comments
 (0)