gllllll commited on
Commit
b07e26d
·
verified ·
1 Parent(s): 5f91f29

Upload folder using huggingface_hub

Browse files
README.md CHANGED
@@ -1,91 +1,30 @@
1
- ---
2
- language:
3
- - en
4
- - code
5
- license: other
6
- task_categories:
7
- - text2text-generation
8
- - text-generation
9
- tags:
10
- - opengl
11
- - glsl
12
- - webgl
13
- - shaders
14
- - computer-graphics
15
- - 3d
16
- - vulkan
17
- - code-generation
18
- size_categories:
19
- - 1K<n<10K
20
- ---
21
-
22
- # GLSL/OpenGL Educational Dataset for AI Training
23
-
24
- A curated, statically validated, and educational dataset of GLSL shaders, OpenGL 3.3/4.x programs, WebGL/WebGL2 demos, and procedural graphics pipelines.
25
-
26
- ## Key Features
27
-
28
- - **Multi-Stage GLSL**: Vertex, Fragment, Compute, Geometry, and Tessellation shaders.
29
- - **Static Validation**: All shaders validated against Khronos `glslangValidator` (GLSL 1.00 ES up to GLSL 4.60 & SPIR-V).
30
- - **Inline Extraction**: Shaders extracted from C++ host code, raw string literals, `ssgl` lambdas, and WebGL JavaScript/HTML applications.
31
- - **Rich Annotations**: Includes GLSL dialect version, comment density, topic tagging (PBR, raymarching, lighting, compute, etc.), and complexity classification.
32
- - **License Partitioning**: Permissive (MIT, Apache-2.0, BSD, CC0) vs Non-Commercial partitions.
33
- - **Visual Previews**: High-quality screenshot previews linked to shader code.
34
-
35
- ## Dataset Structure & Splits
36
-
37
- - `dataset_permissive.jsonl`: Clean, permissive open source licenses (MIT, Apache 2.0, BSD, CC0, Unlicense, Zlib).
38
- - `dataset_noncommercial.jsonl`: Non-commercial educational content (CC-BY-NC-4.0, Shadertoy CC-BY-NC-SA-3.0).
39
- - `dataset_full.jsonl`: Complete aggregated corpus.
40
-
41
- ## Schema Specification
42
-
43
- Each record in JSONL contains:
44
-
45
- ```json
46
- {
47
- "id": "webgl_examples_bumpmapping",
48
- "source": "https://github.com/damdoy/webgl_examples",
49
- "source_commit": "b2c0c53...",
50
- "collected_at": "2026-08-17T13:02:12+00:00",
51
- "source_type": "repo",
52
- "title": "Bumpmapping",
53
- "api": "WebGL",
54
- "glsl_version": "100",
55
- "topic": "raymarching/texturing/bumpmapping/basics",
56
- "difficulty": "advanced",
57
- "files": [
58
- {
59
- "path": "bumpmapping/plane.js#[inline_1_vertex]",
60
- "language": "glsl",
61
- "stage": "vertex",
62
- "loc": 18,
63
- "comment_density": 0.0,
64
- "code": "attribute vec4 vertex_pos;\n...",
65
- "validation_status": "valid"
66
- }
67
- ],
68
- "validation": {
69
- "glslang_valid": 2,
70
- "invalid": 0,
71
- "unverified": 0,
72
- "has_ubo_or_ssbo": false,
73
- "texture_samplers": 1
74
- },
75
- "preview_image": "images/webgl_examples_bumpmapping.png",
76
- "license": "MIT",
77
- "non_commercial": false,
78
- "comment_density": 0.054,
79
- "dedup_hash": "4efd6250c8b26922"
80
- }
81
- ```
82
-
83
- ## Usage Example
84
-
85
- ```python
86
- from datasets import load_dataset
87
-
88
- dataset = load_dataset("json", data_files={"train": "dataset_permissive.jsonl"})
89
- print(dataset["train"][0]["title"])
90
- print(dataset["train"][0]["files"][0]["code"])
91
- ```
 
1
+ ---
2
+ language:
3
+ - en
4
+ - code
5
+ license: other
6
+ task_categories:
7
+ - text-generation
8
+ tags:
9
+ - opengl
10
+ - glsl
11
+ - webgl
12
+ - shaders
13
+ - computer-graphics
14
+ - 3d
15
+ - vulkan
16
+ - code-generation
17
+ size_categories:
18
+ - 1K<n<10K
19
+ ---
20
+
21
+ # GLSL/OpenGL & WebGPU Universal Educational Dataset for AI Training
22
+
23
+ Curated, statically validated, and educational dataset of GLSL, WGSL, and HLSL shaders, OpenGL/WebGL programs, and real-time graphics pipelines.
24
+
25
+ ## Key Features
26
+ - **Multi-Stage Shaders**: Vertex, Fragment, Compute, Geometry, Tessellation.
27
+ - **Static Validation**: Validated against Khronos `glslangValidator`.
28
+ - **Universal Shading Targets**: Multi-target transpilation (WGSL, HLSL, MSL).
29
+ - **Rich Annotations**: Includes Chain-of-Thought reasoning, math models, interface specs, and synthetic bug-fix pairs.
30
+ - **Parquet Tables**: Full, Permissive, and Non-Commercial partitions in Apache Parquet and JSONL.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
dataset_full.jsonl CHANGED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:83bd3930dd9bfe79dd4370df95ed489a94c4a0f16798ac10f6d7c685e2f85b2a
3
- size 102793
 
 
 
 
dataset_full.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:72bd03da6297b2dcbc059089721a6f42992a2d69fe0a6dccaeb48fcb940950a2
3
- size 33993
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:14a9e6c91d8ba09bd5a744ca3fb124640df237017932eb3605d396e2a9d7a860
3
+ size 176
dataset_noncommercial.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:c6414a44ff7bd9093d3c6186e511a4504db43082a965b2aeb583417080d489a2
3
- size 742816
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:14a9e6c91d8ba09bd5a744ca3fb124640df237017932eb3605d396e2a9d7a860
3
+ size 176
dataset_permissive.jsonl CHANGED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:83bd3930dd9bfe79dd4370df95ed489a94c4a0f16798ac10f6d7c685e2f85b2a
3
- size 102793
 
 
 
 
dataset_permissive.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:72bd03da6297b2dcbc059089721a6f42992a2d69fe0a6dccaeb48fcb940950a2
3
- size 33993
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:14a9e6c91d8ba09bd5a744ca3fb124640df237017932eb3605d396e2a9d7a860
3
+ size 176
sample.jsonl CHANGED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:83bd3930dd9bfe79dd4370df95ed489a94c4a0f16798ac10f6d7c685e2f85b2a
3
- size 102793