Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

View Pick: GL_RG32F Not supported on iOS when using OpenGL backend #7520

Open
iRusher opened this issue Jan 25, 2024 · 2 comments
Open

View Pick: GL_RG32F Not supported on iOS when using OpenGL backend #7520

iRusher opened this issue Jan 25, 2024 · 2 comments
Assignees
Labels
bug Something isn't working ios Issue/request for iOS only low priority Low priority issue opengl Issue/request specific to OpenGL

Comments

@iRusher
Copy link

iRusher commented Jan 25, 2024

⚠️ Issues not using this template will be systematically closed.

Describe the bug

In iOS hello-triangle sample , I want to use view pick. It works fine when I use Metal backend. But it occurs error when using OpenGL backend.

Screenshots
image

Xcode break point is hear.
image

Logs

OpenGL error 0x500 (GL_INVALID_ENUM) in "renderBufferStorage" at line 1206
OpenGL framebuffer error 0x8cd6 (GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT) in "framebufferTexture" at line 1179
OpenGL framebuffer error 0x8cd6 (GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT) in "framebufferTexture" at line 1179
OpenGL framebuffer error 0x8cd6 (GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT) in "beginRenderPass" at line 2667
OpenGL error 0x506 (GL_INVALID_FRAMEBUFFER_OPERATION) in "beginRenderPass" at line 2676

Smartphone (please complete the following information):

FEngine (64 bits) created at 0x132833200 (threading is enabled)
FEngine resolved backend: OpenGL
2024-01-25 11:18:00.777050+0800 hello-triangle[90887:38602579] Metal GPU Frame Capture Enabled
2024-01-25 11:18:00.777850+0800 hello-triangle[90887:38602579] Metal API Validation Enabled
[Apple Inc.], [Apple A15 GPU], [OpenGL ES 3.0 Metal - 99], [OpenGL ES GLSL ES 3.00]
Feature level: 1
Active workarounds: 
GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT = 0
GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS = 32
GL_MAX_DRAW_BUFFERS = 4
GL_MAX_RENDERBUFFER_SIZE = 16384
GL_MAX_SAMPLES = 4
GL_MAX_TEXTURE_IMAGE_UNITS = 16
GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS = 4
GL_MAX_UNIFORM_BLOCK_SIZE = 16384
GL_MAX_UNIFORM_BUFFER_BINDINGS = 24
GL_NUM_PROGRAM_BINARY_FORMATS = 0
GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT = 64
OS version: 0
Backend feature level: 1
FEngine feature level: 1
@pixelflinger pixelflinger self-assigned this Jan 25, 2024
@pixelflinger pixelflinger added bug Something isn't working ios Issue/request for iOS only opengl Issue/request specific to OpenGL low priority Low priority issue labels Jan 25, 2024
@pixelflinger
Copy link
Collaborator

Note that iOS GLES backend is considered low-priority and is on life support. iOS should use Metal.

@lwky
Copy link

lwky commented Apr 26, 2024

We experience the same issue in Firefox on Mac. No problem in chrome, safari or edge.

WebGL warning: readPixels: Format and type RG/FLOAT incompatible with this RG32F attachment. This framebuffer requires either RGBA/FLOAT or getParameter(IMPLEMENTATION_COLOR_READ_FORMAT/_TYPE) RGBA/FLOAT.
WebGL warning: getBufferSubData: Reading from a buffer with usage other than *_READ causes pipeline stalls. Copy through a STREAM_READ buffer.

Mac mini (M1, 2020)
MacOS 12.4
Firefox 125.0.2 (64-bit)

[Mozilla], [Apple M1, or similar], [OpenGL ES 3.0 (WebGL 2.0)], [OpenGL ES GLSL ES 3.00 (WebGL GLSL ES 3.00)]
GL_MAX_TEXTURE_SIZE = 16384
GL_MAX_VERTEX_ATTRIBS = 16
GL_MAX_ELEMENTS_INDICES = 150000
GL_MAX_ELEMENTS_VERTICES = 1048575

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ios Issue/request for iOS only low priority Low priority issue opengl Issue/request specific to OpenGL
Projects
None yet
Development

No branches or pull requests

3 participants