google / google/filament

Metal drawable size issue in readPixels

Open
#4,961 2 comments 0 reactions 1 assignee Claimed by @bejado View on GitHub
ios metal
Dominant language
C++
Stars
20.5k
Forks
2.3k
Avg merge
2d 14h
Merged PRs (30d)
83

Description

Running the modified `hello-pbr` of issue #4077 with a debug build of filament under Catalyst and doing a drag to trigger a `readPixels` leads to

_validateGetBytes:65: failed assertion `GetBytes Validation origin.x + size.width)(3024) must be <= width(2050).

which is produced by the `[readPixelsTexture ...` in `MetalDriver::readPixels` (and leads to a SIGABRT). The image looks fine on the screen.

On an actual iPad, this demo produces an image with a garbled strip on the right-hand side, as in #4077.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.