@galacean/engine-rhi-webgl 2.0.0-alpha.51 → 2.0.0-alpha.52
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.
- package/dist/main.js +51 -63
- package/dist/main.js.map +1 -1
- package/dist/module.js +51 -63
- package/dist/module.js.map +1 -1
- package/package.json +4 -4
- package/types/GLBuffer.d.ts +1 -1
- package/types/GLTransformFeedbackPrimitive.d.ts +7 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@galacean/engine-rhi-webgl",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.52",
|
|
4
4
|
"repository": {
|
|
5
5
|
"url": "https://github.com/galacean/engine.git"
|
|
6
6
|
},
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
"types/**/*"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@galacean/engine-
|
|
22
|
-
"@galacean/engine-
|
|
21
|
+
"@galacean/engine-math": "2.0.0-alpha.52",
|
|
22
|
+
"@galacean/engine-core": "2.0.0-alpha.52"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@galacean/engine-design": "2.0.0-alpha.
|
|
25
|
+
"@galacean/engine-design": "2.0.0-alpha.52"
|
|
26
26
|
},
|
|
27
27
|
"scripts": {
|
|
28
28
|
"b:types": "tsc"
|
package/types/GLBuffer.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BufferBindFlag, BufferUsage, IPlatformBuffer, SetDataOptions } from "@galacean/engine-core";
|
|
2
|
-
import { WebGLGraphicDevice } from "./WebGLGraphicDevice";
|
|
2
|
+
import type { WebGLGraphicDevice } from "./WebGLGraphicDevice";
|
|
3
3
|
export declare class GLBuffer implements IPlatformBuffer {
|
|
4
4
|
/** @internal */
|
|
5
5
|
_glBuffer: WebGLBuffer | null;
|
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
import { IPlatformTransformFeedbackPrimitive,
|
|
1
|
+
import type { IPlatformTransformFeedbackPrimitive, VertexBufferBinding, VertexElement } from "@galacean/engine-core";
|
|
2
|
+
import type { IPlatformShaderProgram } from "@galacean/engine-design";
|
|
2
3
|
/**
|
|
3
4
|
* @internal
|
|
4
5
|
* WebGL2 implementation of Transform Feedback primitive.
|
|
5
|
-
* Maintains two VAOs (one per read direction),
|
|
6
|
+
* Maintains two VAOs (one per read direction), rebuilding when the program or input bindings change.
|
|
6
7
|
*/
|
|
7
8
|
export declare class GLTransformFeedbackPrimitive implements IPlatformTransformFeedbackPrimitive {
|
|
8
|
-
private _gl;
|
|
9
|
+
private readonly _gl;
|
|
9
10
|
private _vaoA;
|
|
10
11
|
private _vaoB;
|
|
11
12
|
private _lastProgramId;
|
|
13
|
+
private readonly _lastInputBindings;
|
|
12
14
|
constructor(gl: WebGL2RenderingContext);
|
|
13
|
-
|
|
14
|
-
bind(readIsA: boolean): void;
|
|
15
|
+
bind(program: IPlatformShaderProgram, bindingA: VertexBufferBinding, bindingB: VertexBufferBinding, feedbackElements: VertexElement[], inputBindings: VertexBufferBinding[], inputElements: VertexElement[], readIsA: boolean): void;
|
|
15
16
|
unbind(): void;
|
|
16
17
|
draw(mode: number, first: number, count: number): void;
|
|
17
18
|
invalidate(): void;
|
|
18
19
|
destroy(): void;
|
|
19
20
|
private _deleteVAOs;
|
|
20
21
|
private _createVAO;
|
|
21
|
-
private
|
|
22
|
+
private _bindElement;
|
|
22
23
|
}
|