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

ETC2 support for GL backend #5234

Open
tasogare3710 opened this issue Feb 10, 2024 · 0 comments
Open

ETC2 support for GL backend #5234

tasogare3710 opened this issue Feb 10, 2024 · 0 comments
Labels
api: gles Issues with GLES or WebGL type: enhancement New feature or request

Comments

@tasogare3710
Copy link

Description

ETC2 is required if GL4.3 and higher or GL_ARB_ES3_compatibility extension is available.

Repro steps

Specify Features::TEXTURE_COMPRESSION_ETC2 for DeviceDescriptor::required_features.

let (device, queue) = adapter
    .request_device(
        &wgpu::DeviceDescriptor {
        required_features: wgpu::Features::TEXTURE_ADAPTER_SPECIFIC_FORMAT_FEATURES
                         | wgpu::Features::TEXTURE_COMPRESSION_ETC2,
        ...
        },
        None,
    )

Expected vs observed behavior

If ETC2 is supported by the GL backend, I want to use ETC2, but currently I get the following error when I try to enable ETC2.

Failed to create device: RequestDeviceError { inner: Core(UnsupportedFeature(Features(TEXTURE_COMPRESSION_ETC2))) }

Extra materials

// This is a required part of GLES3, but not part of Desktop GL at all.
es_ver.is_some()

L508 can be fixed as supported((3, 0), (4, 3)) || extensions.contains("GL_ARB_ES3_compatibility");.

I think there is a wrong in not part of Desktop GL at all. Or is there some reason?

Platform

  • Windows [Version 10.0.19045.3930]
  • Intel HD Graphics (Haswell GT1)
  • GL_VERSION: "4.3.0 - Build 20.19.15.5171"
  • GL_SHADING_LANGUAGE_VERSION: "4.30 - Build 20.19.15.5171"
  • GL_RENDERER: "Intel(R) HD Graphics"
  • GL_VENDOR: "Intel"
@teoxoy teoxoy added type: enhancement New feature or request api: gles Issues with GLES or WebGL labels Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: gles Issues with GLES or WebGL type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants