Skip to content
Merged

ddd #72

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
128 commits
Select commit Hold shift + click to select a range
678351a
Update benchmark.yml
aaaapai Feb 18, 2026
56e878c
Update test.yml
aaaapai Feb 18, 2026
e788528
Create dry-run.yml
aaaapai Feb 18, 2026
b33db6c
Update and rename dry-run.yml to dry-run.yaml
aaaapai Feb 18, 2026
630581e
Update dry-run.yaml
aaaapai Feb 18, 2026
15f902f
Update dry-run.yaml
aaaapai Feb 18, 2026
6fc24ef
Create build.yml
aaaapai Feb 18, 2026
52ec178
Create android_ci_build.bash
aaaapai Feb 18, 2026
fc3ef52
Update android_ci_build.bash
aaaapai Feb 18, 2026
895cb0c
Update CMakeLists.txt
aaaapai Feb 18, 2026
d90ec9e
Update .gitmodules
aaaapai Feb 18, 2026
fc6b118
Update Types.h
aaaapai Feb 18, 2026
300e30f
Update DirectGLES.cpp
aaaapai Feb 18, 2026
da1b88b
Update EliminateFloatEqualsZeroPass.cpp
aaaapai Feb 18, 2026
49196b6
Update DirectGLES.cpp
aaaapai Feb 18, 2026
c71659e
Update Loader.cpp
aaaapai Feb 18, 2026
99bb759
Update Loader.cpp
aaaapai Feb 18, 2026
b1aff07
Update Init.cpp
aaaapai Feb 18, 2026
000b50a
Add files via upload
aaaapai Feb 18, 2026
5aa9549
Update CMakeLists.txt
aaaapai Feb 18, 2026
bd5eb84
Update Init.cpp
aaaapai Feb 18, 2026
c491ff1
Update BackendObject_DirectGLES.cpp
aaaapai Feb 18, 2026
206df87
Update GetProcAddress.cpp
aaaapai Feb 18, 2026
635cfcc
Update GL_Getter.cpp
aaaapai Feb 18, 2026
2f1fd27
Update GL_Framebuffer.cpp
aaaapai Feb 18, 2026
b56771d
Update CMakeLists.txt
aaaapai Feb 18, 2026
dfe790a
Update GL_Framebuffer.cpp
aaaapai Feb 18, 2026
7888314
Create UpdateSubmodules.yml
aaaapai Feb 18, 2026
aa2228a
Create update.bash
aaaapai Feb 18, 2026
be53bed
Automated 3rdparty submodule update Wed Feb 18 08:33:58 UTC 2026
actions-user Feb 18, 2026
96def5d
Update android_ci_build.bash
aaaapai Feb 18, 2026
432d735
Update build.yml
aaaapai Feb 18, 2026
cb1529d
Update build.yml
aaaapai Feb 18, 2026
e230ff2
Update android_ci_build.bash
aaaapai Feb 18, 2026
8e22f47
Update android_ci_build.bash
aaaapai Feb 18, 2026
e1ec361
Update Loader.cpp
aaaapai Feb 18, 2026
971f517
Update Loader.cpp
aaaapai Feb 18, 2026
faa5658
Update Loader.cpp
aaaapai Feb 18, 2026
5b69b57
Update Loader.cpp
aaaapai Feb 18, 2026
7e73d05
Update Init.cpp
aaaapai Feb 18, 2026
9f1ac14
Update Init.cpp
aaaapai Feb 18, 2026
e14b27e
Update Init.cpp
aaaapai Feb 18, 2026
df9e325
Update BackendObject_DirectGLES.cpp
aaaapai Feb 18, 2026
e078c9f
Update Init.cpp
aaaapai Feb 18, 2026
53d873d
Update config.cpp
aaaapai Feb 18, 2026
a9f23f6
Update settings.cpp
aaaapai Feb 18, 2026
1f10f13
Create mgl-version.script
aaaapai Feb 18, 2026
ad26c45
Merge branch 'MobileGL-Dev:dev' into dev
aaaapai Feb 19, 2026
c5f0a00
Update DirectGLES.cpp
aaaapai Feb 19, 2026
95f3f53
Update ShaderCompiler.cpp
aaaapai Feb 19, 2026
34bb6b1
Update ShaderSourceProcessor.cpp
aaaapai Feb 19, 2026
1b9fe9e
Add files via upload
aaaapai Feb 19, 2026
1916c16
Update ShaderSourceProcessor.cpp
aaaapai Feb 19, 2026
2086e13
Update ShaderCompiler.cpp
aaaapai Feb 19, 2026
8f24f4c
Create EnvChecker.h
aaaapai Feb 19, 2026
c1598c9
Update ShaderSourceProcessor.cpp
aaaapai Feb 19, 2026
63846eb
Update ShaderCompiler.cpp
aaaapai Feb 19, 2026
1d2faf3
Update Managers.cpp
aaaapai Feb 19, 2026
0580d92
Update GL_Sync.cpp
aaaapai Feb 19, 2026
57370cf
Update Defines.h
aaaapai Feb 19, 2026
9b1d07a
Update GL_Sync.cpp
aaaapai Feb 19, 2026
a4305b1
Update GL_Sync.cpp
aaaapai Feb 19, 2026
7491eb9
Update DirectGLES.cpp
aaaapai Feb 20, 2026
a00f6f4
Update DirectGLES.h
aaaapai Feb 20, 2026
cb67825
Update GL_Drawing.cpp
aaaapai Feb 20, 2026
d31706f
Update GL_Drawing.h
aaaapai Feb 20, 2026
ffbf75c
Update Definitions.cpp
aaaapai Feb 20, 2026
1dded66
Update GL_Drawing.h
aaaapai Feb 20, 2026
b928d9b
Update BackendObject_DirectGLES.cpp
aaaapai Feb 20, 2026
e32740b
Update BackendObject.h
aaaapai Feb 20, 2026
6f390ef
Update DirectGLES.cpp
aaaapai Feb 20, 2026
d9d59dc
Update DirectGLES.cpp
aaaapai Feb 20, 2026
1c0b09b
Update DirectGLES.cpp
aaaapai Feb 20, 2026
92fb9fa
Update DirectGLES.cpp
aaaapai Feb 20, 2026
1b85762
Update DirectGLES.cpp
aaaapai Feb 20, 2026
485ff69
Update DirectGLES.cpp
aaaapai Feb 20, 2026
7073e9e
Update DirectGLES.cpp
aaaapai Feb 21, 2026
b229b01
Merge branch 'dev' into up
aaaapai Feb 22, 2026
ffd78e2
Merge pull request #66 from aaaapai/up
aaaapai Feb 22, 2026
b44db41
Update .gitmodules
aaaapai Feb 22, 2026
c50bf56
Automated 3rdparty submodule update Sun Feb 22 04:55:50 UTC 2026
actions-user Feb 22, 2026
926cc02
Update DirectGLES.cpp
aaaapai Feb 22, 2026
4fb6e9a
Update config.cpp
aaaapai Feb 22, 2026
9383259
Update settings.cpp
aaaapai Feb 22, 2026
c681fa9
Update GL_Sync.cpp
aaaapai Feb 22, 2026
5096240
Update ShaderCompiler.cpp
aaaapai Feb 22, 2026
002d640
Update ShaderCompiler.cpp
aaaapai Feb 22, 2026
22c2b43
Update GL_Sync.cpp
aaaapai Feb 22, 2026
77691b7
Update GL_Sync.cpp
aaaapai Feb 22, 2026
6145bc5
Merge branch 'MobileGL-Dev:dev' into dev
aaaapai Feb 23, 2026
e195c3b
Merge branch 'dev' into up
aaaapai Feb 23, 2026
dfcf2aa
Merge pull request #67 from aaaapai/up
aaaapai Feb 23, 2026
f72c6b1
Update Definitions.cpp
aaaapai Feb 23, 2026
356e382
Update DirectGLES.cpp
aaaapai Feb 23, 2026
932ef8c
Update Definitions.cpp
aaaapai Feb 23, 2026
04e10dc
Update BackendObject_DirectGLES.cpp
aaaapai Feb 23, 2026
1092a01
Update GL_Drawing.cpp
aaaapai Feb 23, 2026
7825088
Update DirectGLES.h
aaaapai Feb 23, 2026
af1f88a
Update ShaderCompiler.cpp
aaaapai Feb 23, 2026
910d23f
Merge branch 'MobileGL-Dev:dev' into dev
aaaapai Feb 24, 2026
c7b007f
Update CMakeLists.txt
aaaapai Feb 24, 2026
44da0f5
Add files via upload
aaaapai Feb 24, 2026
35a28e3
Merge branch 'MobileGL-Dev:dev' into dev
aaaapai Feb 24, 2026
4f689e7
Update CMakeLists.txt
aaaapai Feb 24, 2026
981a4fc
Update android_ci_build.bash
aaaapai Feb 24, 2026
67cbbf2
Merge branch 'MobileGL-Dev:dev' into dev
aaaapai Mar 8, 2026
26f2c0d
Update CMakeLists.txt
aaaapai Mar 20, 2026
a7b25cb
Update GL_RenderState.cpp
aaaapai Mar 22, 2026
4f7db51
Merge branch 'dev' into up
aaaapai Jun 8, 2026
32b176f
Merge pull request #71 from aaaapai/up
aaaapai Jun 8, 2026
20ab205
Update BackendObject_DirectGLES.cpp
aaaapai Jun 8, 2026
cd8a1e3
Delete .github/workflows/plugin-apk.yml
aaaapai Jun 8, 2026
e2a936c
Update CMakeLists.txt
aaaapai Jun 8, 2026
c771dd9
Update Types.h
aaaapai Jun 8, 2026
ad5cb9f
Update CMakeLists.txt
aaaapai Jun 8, 2026
94e25d2
Update CMakeLists.txt
aaaapai Jun 8, 2026
7336967
Update CMakeLists.txt
aaaapai Jun 8, 2026
e9275cc
Update CMakeLists.txt
aaaapai Jun 8, 2026
246b6e9
Update Types.h
aaaapai Jun 8, 2026
38a69d2
Update CMakeLists.txt
aaaapai Jun 8, 2026
f0206d0
Update GL_Getter.cpp
aaaapai Jun 8, 2026
852d2ed
Update BackendObject_DirectGLES.cpp
aaaapai Jun 8, 2026
e5c5628
Update BackendObject_DirectGLES.cpp
aaaapai Jun 8, 2026
982f86f
Update Core.cpp
aaaapai Jun 8, 2026
519e2d4
Update Loader.cpp
aaaapai Jun 9, 2026
4e81035
Update Loader.h
aaaapai Jun 9, 2026
5e225ee
Update Types.h
aaaapai Jun 9, 2026
459f94c
Merge branch 'tttttest' into dev
aaaapai Jun 9, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/workflows/UpdateSubmodules.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Update Submodules
on:
workflow_dispatch:

jobs:
update-submodules:
runs-on: ubuntu-slim
steps:
- uses: actions/checkout@main
with:
submodules: 'recursive'

- name: Update all submodules
run: |
chmod +x ./update.bash
./update.bash

7 changes: 1 addition & 6 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
name: Benchmark

on:
push:
branches:
- dev
- Feat/Backend-Direct-GLES
- Feat/Backend-Direct-Vulkan

workflow_dispatch:
jobs:
benchmark:
runs-on: ubuntu-latest
Expand Down
46 changes: 46 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Build

on:
workflow_dispatch:

env:
BUILD_TYPE: Release
CCACHE_DIR: /tmp/ccache # 设置ccache缓存目录

jobs:
build:
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@main
with:
submodules: true

# 添加ccache步骤
- name: CCache
uses: hendrikmuhs/ccache-action@main
with:
key: ${{ runner.os }}-ndk-${{ env.BUILD_TYPE }}
max-size: 1G # 设置缓存大小,根据需要调整

# 将ccache添加到PATH
- name: Setup ccache in PATH
run: |
echo "/usr/lib/ccache" >> $GITHUB_PATH
echo "CCACHE_DIR=/tmp/ccache" >> $GITHUB_ENV
echo "CCACHE_MAXSIZE=2G" >> $GITHUB_ENV

- name: Configure CMake and Build
run: bash android_ci_build.bash
env:
CC: ccache clang
CXX: ccache clang++
CMAKE_C_COMPILER_LAUNCHER: ccache
CMAKE_CXX_COMPILER_LAUNCHER: ccache

- name: Upload build output
uses: actions/upload-artifact@main
with:
name: MobileGL
path: |
**/libMobileGL.so
153 changes: 153 additions & 0 deletions .github/workflows/dry-run.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,153 @@
name: Python Clean - Delete All Old Runs

on:
workflow_dispatch:
inputs:
dry_run:
description: '模拟运行(只查看不删除)'
required: true
default: 'true'
type: boolean
days_old:
description: '删除多少天前的运行'
required: true
default: '1'
type: string

jobs:
clean:
runs-on: ubuntu-latest

permissions:
actions: write
contents: read

steps:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: Install requests
run: pip install requests

- name: Delete old runs
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPO: ${{ github.repository }}
DRY_RUN: ${{ github.event.inputs.dry_run }}
DAYS_OLD: ${{ github.event.inputs.days_old }}
run: |
python - <<'EOF'
import os
import requests
from datetime import datetime, timedelta
import time

token = os.environ.get('GITHUB_TOKEN')
repo = os.environ.get('REPO')
dry_run = os.environ.get('DRY_RUN', 'true').lower() == 'true'
days_old = int(os.environ.get('DAYS_OLD', 1))

headers = {
'Authorization': f'token {token}',
'Accept': 'application/vnd.github.v3+json'
}

# 计算截止日期
cutoff_date = (datetime.utcnow() - timedelta(days=days_old)).isoformat()

print(f"🔍 清理配置:")
print(f" 仓库: {repo}")
print(f" 删除 {days_old} 天前的运行 (截止: {cutoff_date})")
print(f" 模拟模式: {dry_run}")
print()

# 获取所有运行
print("获取所有运行...")
runs_to_delete = []
page = 1

while True:
url = f"https://api.github.com/repos/{repo}/actions/runs"
params = {
'per_page': 100,
'page': page
}

response = requests.get(url, headers=headers, params=params)
if response.status_code != 200:
print(f"错误: {response.status_code}")
break

data = response.json()
runs = data.get('workflow_runs', [])

if not runs:
break

for run in runs:
run_id = run['id']
created_at = run['created_at']
status = run['status']
branch = run['head_branch']
name = run.get('name', '未命名')

# 跳过进行中的
if status in ['in_progress', 'queued', 'pending']:
continue

# 检查日期
if created_at < cutoff_date:
runs_to_delete.append({
'id': run_id,
'name': name,
'date': created_at,
'branch': branch
})
print(f" ✓ 标记删除 #{run_id} - {name} ({created_at}) [{branch}]")

if len(runs) < 100:
break

page += 1
time.sleep(0.5)

total = len(runs_to_delete)
print(f"\n📊 找到 {total} 个需要删除的运行")

if total == 0:
print("✅ 没有需要删除的运行")
exit(0)

if dry_run:
print("\n🔍 [模拟模式] 以上是将会删除的运行")
print("设置 dry_run=false 实际删除")
exit(0)

# 删除
print(f"\n🗑️ 开始删除 {total} 个运行...")
deleted = 0
failed = 0

for i, run in enumerate(runs_to_delete, 1):
run_id = run['id']
url = f"https://api.github.com/repos/{repo}/actions/runs/{run_id}"

print(f"进度: [{i}/{total}] 删除 #{run_id}...", end=' ')

response = requests.delete(url, headers=headers)
if response.status_code == 204:
deleted += 1
print("✓ 成功")
else:
failed += 1
print(f"✗ 失败 ({response.status_code})")

time.sleep(0.2)

print(f"\n✅ 完成!")
print(f" 成功: {deleted}")
print(f" 失败: {failed}")

EOF
80 changes: 0 additions & 80 deletions .github/workflows/plugin-apk.yml

This file was deleted.

6 changes: 1 addition & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
name: Test

on:
push:
branches:
- dev
- Feat/Backend-Direct-GLES
- Feat/Backend-Direct-Vulkan
workflow_dispatch:

jobs:
test:
Expand Down
6 changes: 3 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
url = https://github.com/DiligentGraphics/DiligentCore.git
[submodule "3rdparty/glslang"]
path = 3rdparty/glslang
url = https://github.com/MobileGL-Dev/glslang.git
url = https://github.com/aaaapai/glslang.git
[submodule "3rdparty/SPIRV-Cross"]
path = 3rdparty/SPIRV-Cross
url = https://github.com/KhronosGroup/SPIRV-Cross.git
url = https://github.com/aaaapai/SPIRV-Cross.git
[submodule "include/FastSTL"]
path = include/FastSTL
url = https://github.com/MobileGL-Dev/FastSTL.git
url = https://github.com/aaaapai/FastSTL.git
[submodule "3rdparty/tracy"]
path = 3rdparty/tracy
url = https://github.com/wolfpld/tracy.git
Expand Down
2 changes: 1 addition & 1 deletion 3rdparty/DiligentCore
Submodule DiligentCore updated 381 files
2 changes: 1 addition & 1 deletion 3rdparty/SPIRV-Cross
Submodule SPIRV-Cross updated 169 files
2 changes: 1 addition & 1 deletion 3rdparty/tracy
Submodule tracy updated 120 files
2 changes: 1 addition & 1 deletion 3rdparty/xxHash
Submodule xxHash updated 2 files
+3 −0 cli/xxhsum.c
+8 −7 xxhash.h
Loading
Loading