shader: drop null checks on the stage input info pointers

This commit is contained in:
nmzik
2026-10-20 03:18:03 +02:00
parent 992a83003d
commit f186b35706
12 changed files with 45 additions and 78 deletions
+4 -1
View File
@@ -52,6 +52,7 @@ void CheckFatal(F &&function, std::string_view expected, const char *message) {
struct Fixture {
Program program;
Block *block = nullptr;
ShaderComputeInputInfo compute_info{};
explicit Fixture(ShaderType stage = ShaderType::Compute) {
program.stage = stage;
@@ -131,7 +132,9 @@ struct Fixture {
Value(0u), Value(0u), Value(0u)});
}
void PlanAndTrack(Libs::Graphics::ShaderStageInputInfo input = {}) {
void PlanAndTrack() { PlanAndTrack({.compute = &compute_info}); }
void PlanAndTrack(Libs::Graphics::ShaderStageInputInfo input) {
for (size_t index = 0; index < program.blocks.size(); ++index) {
const auto condition = program.blocks[index]->condition;
if (!condition.IsEmpty())