How to get max texture size?

Hello,

I know how to get max texture size supported by device in WebGL.

But is there any way to detect it for native platforms (Android and iOS)?

Thanks in advance!

In typescript, we might use the following getter in gfx.Device.

    get capabilities (): DeviceCaps {
        return this._caps;
    }

And in C++, we can use getCapabilities in gfx::Device

inline const DeviceCaps &getCapabilities() const { return _caps; }

DeviceCaps has member uint32_t maxTextureSize.
This might be what you need.

1 Like

This is the typescript API

that’s exactly what I need, thank you!