Harden recording renderer CLI bounds
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user