WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
Bug 227586
ANGLE Metal Buffers created out of IOSurfaces should take the EGL_IOSURFACE_USAGE_HINT_ANGLE into account
https://bugs.webkit.org/show_bug.cgi?id=227586
Summary
ANGLE Metal Buffers created out of IOSurfaces should take the EGL_IOSURFACE_U...
Kimmo Kinnunen
Reported
2021-07-01 08:22:59 PDT
ANGLE Metal Buffers created out of IOSurfaces should take the EGL_IOSURFACE_USAGE_HINT_ANGLE into account The attribute EGL_IOSURFACE_USAGE_HINT_ANGLE may optionally be specified as a combination of the bits EGL_IOSURFACE_READ_HINT_ANGLE and EGL_IOSURFACE_WRITE_HINT_ANGLE. On the iOS Simulator platform, where IOSurface support is incomplete, these hints indicate whether the intent is to read from the IOSurface, write to it, or both. Explicitly passing 0 for this attribute is equivalent to setting both the read and write usage bits. This attribute is ignored on other platforms." angle::Result IOSurfaceSurfaceMtl::ensureColorTextureCreated(const gl::Context *context) { if (mColorTexture) { return angle::Result::Continue; } ContextMtl *contextMtl = mtl::GetImpl(context); ANGLE_MTL_OBJC_SCOPE { auto texDesc = [MTLTextureDescriptor texture2DDescriptorWithPixelFormat:mColorFormat.metalFormat width:mSize.width height:mSize.height mipmapped:NO]; texDesc.usage = MTLTextureUsageShaderRead | MTLTextureUsageRenderTarget;
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2021-07-08 08:23:17 PDT
<
rdar://problem/80324846
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug