@flighthq/scene3d-wgpu 0.5.1-next.903.f434bc2 → 0.5.1-next.905.5fbf787
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/README.md +2 -2
- package/package.json +17 -17
- package/src/wgpuMeshPipeline.test.ts +11 -5
package/README.md
CHANGED
|
@@ -13,5 +13,5 @@ Import the supported application-facing API from `@flighthq/scene3d-wgpu`. The `
|
|
|
13
13
|
This package is part of the locked-version Flight SDK graph. Applications may instead install and import `@flighthq/sdk` when package-level tree shaking is sufficient.
|
|
14
14
|
|
|
15
15
|
- [Flight project](https://github.com/flighthq/flight)
|
|
16
|
-
- [Source for @flighthq/scene3d-wgpu@0.5.1-next.
|
|
17
|
-
- [License](https://github.com/flighthq/flight/blob/
|
|
16
|
+
- [Source for @flighthq/scene3d-wgpu@0.5.1-next.905.5fbf787](https://github.com/flighthq/flight/tree/5fbf7874064c384307542d68b4dcb6a895ff0dcf/packages/scene3d-wgpu)
|
|
17
|
+
- [License](https://github.com/flighthq/flight/blob/5fbf7874064c384307542d68b4dcb6a895ff0dcf/LICENSE.md)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flighthq/scene3d-wgpu",
|
|
3
|
-
"version": "0.5.1-next.
|
|
3
|
+
"version": "0.5.1-next.905.5fbf787",
|
|
4
4
|
"author": "Joshua Granick and other contributors",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -38,22 +38,22 @@
|
|
|
38
38
|
"clean:dist": "tsx ../../scripts/clean-package-dist.ts"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@flighthq/camera": "0.5.1-next.
|
|
42
|
-
"@flighthq/color": "0.5.1-next.
|
|
43
|
-
"@flighthq/entity": "0.5.1-next.
|
|
44
|
-
"@flighthq/geometry": "0.5.1-next.
|
|
45
|
-
"@flighthq/image": "0.5.1-next.
|
|
46
|
-
"@flighthq/lighting": "0.5.1-next.
|
|
47
|
-
"@flighthq/log": "0.5.1-next.
|
|
48
|
-
"@flighthq/materials": "0.5.1-next.
|
|
49
|
-
"@flighthq/node": "0.5.1-next.
|
|
50
|
-
"@flighthq/registry": "0.5.1-next.
|
|
51
|
-
"@flighthq/render": "0.5.1-next.
|
|
52
|
-
"@flighthq/render-wgpu": "0.5.1-next.
|
|
53
|
-
"@flighthq/scene3d": "0.5.1-next.
|
|
54
|
-
"@flighthq/shading": "0.5.1-next.
|
|
55
|
-
"@flighthq/texture": "0.5.1-next.
|
|
56
|
-
"@flighthq/types": "0.5.1-next.
|
|
41
|
+
"@flighthq/camera": "0.5.1-next.905.5fbf787",
|
|
42
|
+
"@flighthq/color": "0.5.1-next.905.5fbf787",
|
|
43
|
+
"@flighthq/entity": "0.5.1-next.905.5fbf787",
|
|
44
|
+
"@flighthq/geometry": "0.5.1-next.905.5fbf787",
|
|
45
|
+
"@flighthq/image": "0.5.1-next.905.5fbf787",
|
|
46
|
+
"@flighthq/lighting": "0.5.1-next.905.5fbf787",
|
|
47
|
+
"@flighthq/log": "0.5.1-next.905.5fbf787",
|
|
48
|
+
"@flighthq/materials": "0.5.1-next.905.5fbf787",
|
|
49
|
+
"@flighthq/node": "0.5.1-next.905.5fbf787",
|
|
50
|
+
"@flighthq/registry": "0.5.1-next.905.5fbf787",
|
|
51
|
+
"@flighthq/render": "0.5.1-next.905.5fbf787",
|
|
52
|
+
"@flighthq/render-wgpu": "0.5.1-next.905.5fbf787",
|
|
53
|
+
"@flighthq/scene3d": "0.5.1-next.905.5fbf787",
|
|
54
|
+
"@flighthq/shading": "0.5.1-next.905.5fbf787",
|
|
55
|
+
"@flighthq/texture": "0.5.1-next.905.5fbf787",
|
|
56
|
+
"@flighthq/types": "0.5.1-next.905.5fbf787"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
59
|
"@webgpu/types": "^0.1.70"
|
|
@@ -22,18 +22,19 @@ import {
|
|
|
22
22
|
} from '@flighthq/types/contract';
|
|
23
23
|
|
|
24
24
|
import {
|
|
25
|
+
WGPU_MESH_PRELUDE_WGSL,
|
|
25
26
|
beginWgpuMeshDraw,
|
|
26
27
|
buildWgpuMaterialBindGroup,
|
|
27
28
|
buildWgpuPerMapMaterialBindGroup,
|
|
28
29
|
createWgpuMeshPipeline,
|
|
29
30
|
drawWgpuMeshSubset,
|
|
30
|
-
ensureWgpuMaterialBinding,
|
|
31
|
-
ensureWgpuPerMapMaterialBinding,
|
|
32
31
|
ensureWgpuFrameBindGroup,
|
|
33
32
|
ensureWgpuIblSampleBindGroup,
|
|
34
33
|
ensureWgpuIblSampleLayout,
|
|
34
|
+
ensureWgpuMaterialBinding,
|
|
35
35
|
ensureWgpuPbrSampleBindGroup,
|
|
36
36
|
ensureWgpuPbrSampleLayout,
|
|
37
|
+
ensureWgpuPerMapMaterialBinding,
|
|
37
38
|
ensureWgpuPlaceholderTextureView,
|
|
38
39
|
ensureWgpuScene3DLayouts,
|
|
39
40
|
ensureWgpuScene3DPipeline,
|
|
@@ -41,13 +42,13 @@ import {
|
|
|
41
42
|
ensureWgpuShadowSampleLayout,
|
|
42
43
|
getWgpuMaterialSampler,
|
|
43
44
|
getWgpuMeshPreludeWgsl,
|
|
45
|
+
initializeWgpuMeshPipeline,
|
|
46
|
+
isWgpuMaterialBindGroupRebuildNeeded,
|
|
44
47
|
isWgpuTextureReady,
|
|
45
48
|
resolveWgpuMaterialTextureView,
|
|
46
49
|
spliceWgpuColorAdjustmentPrelude,
|
|
47
50
|
stashWgpuUvTransform,
|
|
48
|
-
isWgpuMaterialBindGroupRebuildNeeded,
|
|
49
51
|
wgpuPerMapMaterialBindGroupNeedsRebuild,
|
|
50
|
-
WGPU_MESH_PRELUDE_WGSL,
|
|
51
52
|
writeWgpuDrawUniform,
|
|
52
53
|
writeWgpuFrameUniform,
|
|
53
54
|
} from './wgpuMeshPipeline';
|
|
@@ -800,6 +801,12 @@ describe('getWgpuMeshPreludeWgsl', () => {
|
|
|
800
801
|
});
|
|
801
802
|
});
|
|
802
803
|
|
|
804
|
+
describe('initializeWgpuMeshPipeline', () => {
|
|
805
|
+
it('is the construction initializer of createWgpuMeshPipeline', () => {
|
|
806
|
+
expect(typeof initializeWgpuMeshPipeline).toBe('function');
|
|
807
|
+
});
|
|
808
|
+
});
|
|
809
|
+
|
|
803
810
|
describe('isWgpuMaterialBindGroupRebuildNeeded', () => {
|
|
804
811
|
const sampler = {} as GPUSampler;
|
|
805
812
|
const view0 = {} as GPUTextureView;
|
|
@@ -1057,7 +1064,6 @@ describe('writeWgpuDrawUniform', () => {
|
|
|
1057
1064
|
expect(u[63]).toBeCloseTo(0.4);
|
|
1058
1065
|
});
|
|
1059
1066
|
});
|
|
1060
|
-
|
|
1061
1067
|
describe('writeWgpuFrameUniform', () => {
|
|
1062
1068
|
it('writes the frame uniform buffer', () => {
|
|
1063
1069
|
const { fake, state } = makeWgpuScene3DState();
|