e2D 2.0.0__cp313-cp313-win_amd64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- e2D/__init__.py +461 -0
- e2D/commons.py +56 -0
- e2D/cvectors.c +27800 -0
- e2D/cvectors.cp313-win_amd64.pyd +0 -0
- e2D/cvectors.pxd +56 -0
- e2D/cvectors.pyx +561 -0
- e2D/devices.py +74 -0
- e2D/plots.py +584 -0
- e2D/shaders/curve_fragment.glsl +6 -0
- e2D/shaders/curve_vertex.glsl +16 -0
- e2D/shaders/line_instanced_vertex.glsl +37 -0
- e2D/shaders/plot_grid_fragment.glsl +48 -0
- e2D/shaders/plot_grid_vertex.glsl +7 -0
- e2D/shaders/segment_fragment.glsl +6 -0
- e2D/shaders/segment_vertex.glsl +9 -0
- e2D/shaders/stream_fragment.glsl +11 -0
- e2D/shaders/stream_shift_compute.glsl +16 -0
- e2D/shaders/stream_vertex.glsl +27 -0
- e2D/shapes.py +1081 -0
- e2D/text_renderer.py +491 -0
- e2D/vectors.py +247 -0
- e2d-2.0.0.dist-info/METADATA +260 -0
- e2d-2.0.0.dist-info/RECORD +26 -0
- e2d-2.0.0.dist-info/WHEEL +5 -0
- e2d-2.0.0.dist-info/licenses/LICENSE +21 -0
- e2d-2.0.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
#version 430
|
|
2
|
+
layout(local_size_x=64) in;
|
|
3
|
+
|
|
4
|
+
layout(std430, binding=1) buffer PointBuffer {
|
|
5
|
+
vec2 points[];
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
uniform vec2 offset;
|
|
9
|
+
uniform int capacity;
|
|
10
|
+
|
|
11
|
+
void main() {
|
|
12
|
+
uint id = gl_GlobalInvocationID.x;
|
|
13
|
+
if (id >= capacity) return;
|
|
14
|
+
|
|
15
|
+
points[id] += offset;
|
|
16
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
#version 430
|
|
2
|
+
layout(std140, binding=0) uniform View {
|
|
3
|
+
vec2 resolution;
|
|
4
|
+
vec2 center;
|
|
5
|
+
vec2 scale;
|
|
6
|
+
float aspect;
|
|
7
|
+
} view;
|
|
8
|
+
|
|
9
|
+
layout(std430, binding=1) buffer PointBuffer {
|
|
10
|
+
vec2 points[];
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
uniform int start_index;
|
|
14
|
+
uniform int capacity;
|
|
15
|
+
uniform float point_size;
|
|
16
|
+
|
|
17
|
+
void main() {
|
|
18
|
+
// Handle ring buffer wrapping
|
|
19
|
+
int idx = (start_index + gl_VertexID) % capacity;
|
|
20
|
+
vec2 p = points[idx];
|
|
21
|
+
|
|
22
|
+
vec2 diff = p - view.center;
|
|
23
|
+
vec2 norm = diff * view.scale;
|
|
24
|
+
norm.x /= view.aspect;
|
|
25
|
+
gl_Position = vec4(norm, 0.0, 1.0);
|
|
26
|
+
gl_PointSize = point_size;
|
|
27
|
+
}
|