File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ class IGPUComputePipeline : public IGPUPipeline<asset::IComputePipeline<const IG
64
64
65
65
inline core::bitflag<hlsl::ShaderStage> getRequiredSubgroupStages () const
66
66
{
67
- if (shader.requiredSubgroupSize >= asset::IPipelineBase::SUBGROUP_SIZE::REQUIRE_4)
67
+ if (shader.shader && shader. requiredSubgroupSize >= asset::IPipelineBase::SUBGROUP_SIZE::REQUIRE_4)
68
68
{
69
69
return hlsl::ESS_COMPUTE;
70
70
}
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ class IGPUGraphicsPipeline : public IGPUPipeline<asset::IGraphicsPipeline<const
72
72
core::bitflag<hlsl::ShaderStage> stages;
73
73
auto processSpecInfo = [&](const SShaderSpecInfo& spec, hlsl::ShaderStage stage)
74
74
{
75
- if (spec.requiredSubgroupSize >= SUBGROUP_SIZE::REQUIRE_4) {
75
+ if (spec.shader && spec. requiredSubgroupSize >= SUBGROUP_SIZE::REQUIRE_4) {
76
76
stages |= stage;
77
77
}
78
78
};
Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ class IGPURayTracingPipeline : public IGPUPipeline<asset::IRayTracingPipeline<c
149
149
core::bitflag<hlsl::ShaderStage> stages;
150
150
auto processSpecInfo = [&](const SShaderSpecInfo& spec, hlsl::ShaderStage stage)
151
151
{
152
- if (spec.requiredSubgroupSize >= SUBGROUP_SIZE::REQUIRE_4) {
152
+ if (spec.shader && spec. requiredSubgroupSize >= SUBGROUP_SIZE::REQUIRE_4) {
153
153
stages |= stage;
154
154
}
155
155
};
You can’t perform that action at this time.
0 commit comments