Harden recording renderer CLI bounds

This commit is contained in:
2026-06-02 15:12:59 +02:00
parent c58b9a3718
commit d37145660a
5 changed files with 45 additions and 2 deletions

View File

@@ -1639,6 +1639,15 @@ pp::foundation::Status parse_simulate_document_edits_args(
return pp::foundation::Status::invalid_argument("width and height must be greater than zero");
}
const auto render_target_size = pp::renderer::texture_byte_size(pp::renderer::TextureDesc {
.extent = pp::renderer::Extent2D { .width = args.width, .height = args.height },
.format = pp::renderer::TextureFormat::rgba8,
.render_target = true,
});
if (!render_target_size) {
return render_target_size.status();
}
return pp::foundation::Status::success();
}