Skip to content

Latest commit

 

History

History

huawei-cg-smartcachegles-android-cpp-demo

OpenGL Smart Cache

Table of Contents

Introduction

The sample code describes how to use OpenGL Smart Cache.

Main APIs in sample code:

  1. Query supported extensions:
    glGetString():query if the device support OpenGL Smart Cache.

  2. Add Smart Cache flags:
    glTexImage2D() or glTexStorage2D():Add Smart Cache Flag when applying for memory.

Preparation

See details:HUAWEI HMS Core

Build

To build the sample, import the sample to Android Studio (3.x +).

Supported Environments

  1. Devices released after P40 or devices with more advanced chip than Kirin 990.
  2. Devices with Android 10.1 or later

Result

License

The sample of OpenGL Smart Cache has obtained the Apache 2.0 license.