glsl-opengl-educational-dataset
收藏资源简介:
该数据集是一个面向AI训练的GLSL/OpenGL与WebGPU通用教育数据集。它包含经过静态验证的GLSL、WGSL和HLSL着色器,以及OpenGL/WebGL程序和实时图形管线。数据覆盖多阶段着色器类型(顶点、片段、计算、几何、细分)。所有着色器已通过Khronos的glslangValidator工具进行静态验证。数据集支持通用着色目标,可转译为WGSL、HLSL、MSL。注释丰富,包括思维链推理、数学模型、接口规范以及合成的bug修复对。数据以Apache Parquet和JSONL格式存储,分为完整、宽松和非商业三个分区。数据规模在1千到1万条样本之间,语言为英语和代码,适用于文本生成任务。
This dataset is a general educational dataset for GLSL/OpenGL and WebGPU, designed for AI training. It contains statically validated GLSL, WGSL, and HLSL shaders, along with OpenGL/WebGL programs and real-time graphics pipelines. The data covers multiple shader stage types (vertex, fragment, compute, geometry, tessellation). All shaders have been statically validated using Khronos glslangValidator tool. The dataset supports general shading targets and can be transpiled to WGSL, HLSL, or MSL. Annotations are rich, including chain-of-thought reasoning, mathematical models, interface specifications, and synthetic bug-fix pairs. Data is stored in Apache Parquet and JSONL formats, divided into three partitions: full, permissive, and non-commercial. The dataset size ranges from 1,000 to 10,000 samples, with English and code as the languages, suitable for text generation tasks.
GLSL/OpenGL & WebGPU 通用教育数据集
数据集概览
这是一个面向AI训练的教育型着色器与图形编程数据集,涵盖GLSL、WGSL和HLSL着色器语言,以及OpenGL/WebGL程序和实时图形渲染管线。
基本信息
- 语言: 英语、代码
- 许可证: 其他(other)
- 任务类别: 文本生成
- 数据规模: 1K < n < 10K
核心特点
1. 多阶段着色器支持
- 顶点着色器
- 片段着色器
- 计算着色器
- 几何着色器
- 细分着色器
2. 静态验证
- 使用Khronos官方
glslangValidator工具进行静态校验,确保数据质量
3. 通用着色目标
- 支持多目标代码转换(transpilation):WGSL、HLSL、MSL
4. 丰富注释
- 包含思维链推理
- 数学模型
- 接口规范
- 合成缺陷修复对
5. 数据格式
- 提供Apache Parquet和JSONL两种格式
- 分为完整版(Full)、许可版(Permissive)和非商业版(Non-Commercial)三个分区
适用领域
该数据集适用于OpenGL、GLSL、WebGL、着色器编程、计算机图形学、3D渲染、Vulkan以及代码生成相关的研究与AI模型训练任务。





