react-native-shine 0.2.2 → 0.3.1

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.
Files changed (141) hide show
  1. package/README.md +22 -7
  2. package/lib/module/components/Content.js +232 -0
  3. package/lib/module/components/Content.js.map +1 -0
  4. package/lib/module/components/Shine.js +33 -0
  5. package/lib/module/components/Shine.js.map +1 -0
  6. package/lib/module/components/ShineGroup.js +92 -0
  7. package/lib/module/components/ShineGroup.js.map +1 -0
  8. package/lib/module/enums/waveCallback.js +19 -0
  9. package/lib/module/enums/waveCallback.js.map +1 -0
  10. package/lib/module/hooks/useAnimationFrame.js +17 -0
  11. package/lib/module/hooks/useAnimationFrame.js.map +1 -0
  12. package/lib/module/hooks/useOrientation.js +10 -0
  13. package/lib/module/hooks/useOrientation.js.map +1 -0
  14. package/lib/module/index.js +6 -219
  15. package/lib/module/index.js.map +1 -1
  16. package/lib/module/shaders/bindGroupLayouts.js +41 -6
  17. package/lib/module/shaders/bindGroupLayouts.js.map +1 -1
  18. package/lib/module/shaders/bindGroupUtils.js +34 -41
  19. package/lib/module/shaders/bindGroupUtils.js.map +1 -1
  20. package/lib/module/shaders/fragmentShaders/colorMaskFragment.js +2 -2
  21. package/lib/module/shaders/fragmentShaders/colorMaskFragment.js.map +1 -1
  22. package/lib/module/shaders/fragmentShaders/glareFragment.js +115 -0
  23. package/lib/module/shaders/fragmentShaders/glareFragment.js.map +1 -0
  24. package/lib/module/shaders/fragmentShaders/holoFragment.js +28 -0
  25. package/lib/module/shaders/fragmentShaders/holoFragment.js.map +1 -0
  26. package/lib/module/shaders/fragmentShaders/maskFragment.js +20 -0
  27. package/lib/module/shaders/fragmentShaders/maskFragment.js.map +1 -0
  28. package/lib/module/shaders/fragmentShaders/reverseHoloFragment.js +46 -0
  29. package/lib/module/shaders/fragmentShaders/reverseHoloFragment.js.map +1 -0
  30. package/lib/module/shaders/pipelineSetups.js +72 -17
  31. package/lib/module/shaders/pipelineSetups.js.map +1 -1
  32. package/lib/module/shaders/{resourceManagement.js → resourceManagement/bitmaps.js} +2 -1
  33. package/lib/module/shaders/resourceManagement/bitmaps.js.map +1 -0
  34. package/lib/module/shaders/resourceManagement/bufferManager.js +46 -0
  35. package/lib/module/shaders/resourceManagement/bufferManager.js.map +1 -0
  36. package/lib/module/shaders/resourceManagement/textures.js +24 -0
  37. package/lib/module/shaders/resourceManagement/textures.js.map +1 -0
  38. package/lib/module/shaders/tgpuUtils.js +19 -1
  39. package/lib/module/shaders/tgpuUtils.js.map +1 -1
  40. package/lib/module/shaders/utils.js +8 -36
  41. package/lib/module/shaders/utils.js.map +1 -1
  42. package/lib/module/shaders/vertexShaders/mainRotationEffectVertex.js +47 -0
  43. package/lib/module/shaders/vertexShaders/mainRotationEffectVertex.js.map +1 -0
  44. package/lib/module/types/size.js +2 -0
  45. package/lib/module/types/size.js.map +1 -0
  46. package/lib/module/types/typeUtils.js +17 -19
  47. package/lib/module/types/typeUtils.js.map +1 -1
  48. package/lib/module/types/vector.js +2 -0
  49. package/lib/module/types/vector.js.map +1 -0
  50. package/lib/module/utils/size.js +25 -0
  51. package/lib/module/utils/size.js.map +1 -0
  52. package/lib/module/utils/vector.js +168 -0
  53. package/lib/module/utils/vector.js.map +1 -0
  54. package/lib/typescript/src/components/Content.d.ts +23 -0
  55. package/lib/typescript/src/components/Content.d.ts.map +1 -0
  56. package/lib/typescript/src/components/Shine.d.ts +7 -0
  57. package/lib/typescript/src/components/Shine.d.ts.map +1 -0
  58. package/lib/typescript/src/components/ShineGroup.d.ts +6 -0
  59. package/lib/typescript/src/components/ShineGroup.d.ts.map +1 -0
  60. package/lib/typescript/src/enums/waveCallback.d.ts +9 -0
  61. package/lib/typescript/src/enums/waveCallback.d.ts.map +1 -0
  62. package/lib/typescript/src/hooks/useAnimationFrame.d.ts +2 -0
  63. package/lib/typescript/src/hooks/useAnimationFrame.d.ts.map +1 -0
  64. package/lib/typescript/src/hooks/useOrientation.d.ts +4 -0
  65. package/lib/typescript/src/hooks/useOrientation.d.ts.map +1 -0
  66. package/lib/typescript/src/index.d.ts +8 -11
  67. package/lib/typescript/src/index.d.ts.map +1 -1
  68. package/lib/typescript/src/shaders/bindGroupLayouts.d.ts +46 -8
  69. package/lib/typescript/src/shaders/bindGroupLayouts.d.ts.map +1 -1
  70. package/lib/typescript/src/shaders/bindGroupUtils.d.ts +9 -9
  71. package/lib/typescript/src/shaders/bindGroupUtils.d.ts.map +1 -1
  72. package/lib/typescript/src/shaders/fragmentShaders/glareFragment.d.ts +8 -0
  73. package/lib/typescript/src/shaders/fragmentShaders/glareFragment.d.ts.map +1 -0
  74. package/lib/typescript/src/shaders/fragmentShaders/holoFragment.d.ts +5 -0
  75. package/lib/typescript/src/shaders/fragmentShaders/holoFragment.d.ts.map +1 -0
  76. package/lib/typescript/src/shaders/fragmentShaders/maskFragment.d.ts +6 -0
  77. package/lib/typescript/src/shaders/fragmentShaders/maskFragment.d.ts.map +1 -0
  78. package/lib/typescript/src/shaders/fragmentShaders/reverseHoloFragment.d.ts +5 -0
  79. package/lib/typescript/src/shaders/fragmentShaders/reverseHoloFragment.d.ts.map +1 -0
  80. package/lib/typescript/src/shaders/pipelineSetups.d.ts +9 -4
  81. package/lib/typescript/src/shaders/pipelineSetups.d.ts.map +1 -1
  82. package/lib/typescript/src/shaders/{resourceManagement.d.ts → resourceManagement/bitmaps.d.ts} +1 -1
  83. package/lib/typescript/src/shaders/resourceManagement/bitmaps.d.ts.map +1 -0
  84. package/lib/typescript/src/shaders/resourceManagement/bufferManager.d.ts +28 -0
  85. package/lib/typescript/src/shaders/resourceManagement/bufferManager.d.ts.map +1 -0
  86. package/lib/typescript/src/shaders/resourceManagement/textures.d.ts +8 -0
  87. package/lib/typescript/src/shaders/resourceManagement/textures.d.ts.map +1 -0
  88. package/lib/typescript/src/shaders/tgpuUtils.d.ts +5 -1
  89. package/lib/typescript/src/shaders/tgpuUtils.d.ts.map +1 -1
  90. package/lib/typescript/src/shaders/utils.d.ts +3 -10
  91. package/lib/typescript/src/shaders/utils.d.ts.map +1 -1
  92. package/lib/typescript/src/shaders/vertexShaders/mainRotationEffectVertex.d.ts +6 -0
  93. package/lib/typescript/src/shaders/vertexShaders/mainRotationEffectVertex.d.ts.map +1 -0
  94. package/lib/typescript/src/types/size.d.ts +5 -0
  95. package/lib/typescript/src/types/size.d.ts.map +1 -0
  96. package/lib/typescript/src/types/typeUtils.d.ts +3 -5
  97. package/lib/typescript/src/types/typeUtils.d.ts.map +1 -1
  98. package/lib/typescript/src/types/types.d.ts +10 -3
  99. package/lib/typescript/src/types/types.d.ts.map +1 -1
  100. package/lib/typescript/src/types/vector.d.ts +11 -0
  101. package/lib/typescript/src/types/vector.d.ts.map +1 -0
  102. package/lib/typescript/src/utils/size.d.ts +5 -0
  103. package/lib/typescript/src/utils/size.d.ts.map +1 -0
  104. package/lib/typescript/src/utils/vector.d.ts +33 -0
  105. package/lib/typescript/src/utils/vector.d.ts.map +1 -0
  106. package/package.json +7 -5
  107. package/scripts/postinstall.js +16 -17
  108. package/src/components/Content.tsx +403 -0
  109. package/src/components/Shine.tsx +38 -0
  110. package/src/components/ShineGroup.tsx +100 -0
  111. package/src/enums/waveCallback.ts +22 -0
  112. package/src/hooks/useAnimationFrame.ts +21 -0
  113. package/src/hooks/useOrientation.ts +18 -0
  114. package/src/index.tsx +14 -322
  115. package/src/shaders/bindGroupLayouts.ts +45 -8
  116. package/src/shaders/bindGroupUtils.ts +50 -65
  117. package/src/shaders/fragmentShaders/colorMaskFragment.ts +2 -2
  118. package/src/shaders/fragmentShaders/glareFragment.ts +143 -0
  119. package/src/shaders/fragmentShaders/holoFragment.ts +35 -0
  120. package/src/shaders/fragmentShaders/maskFragment.ts +31 -0
  121. package/src/shaders/fragmentShaders/reverseHoloFragment.ts +71 -0
  122. package/src/shaders/pipelineSetups.ts +152 -20
  123. package/src/shaders/{resourceManagement.ts → resourceManagement/bitmaps.ts} +1 -0
  124. package/src/shaders/resourceManagement/bufferManager.ts +82 -0
  125. package/src/shaders/resourceManagement/textures.ts +42 -0
  126. package/src/shaders/tgpuUtils.ts +36 -1
  127. package/src/shaders/utils.ts +13 -57
  128. package/src/shaders/vertexShaders/mainRotationEffectVertex.ts +76 -0
  129. package/src/types/size.ts +4 -0
  130. package/src/types/typeUtils.ts +22 -36
  131. package/src/types/types.ts +19 -3
  132. package/src/types/vector.ts +13 -0
  133. package/src/utils/size.ts +12 -0
  134. package/src/utils/vector.ts +132 -0
  135. package/lib/module/shaders/fragmentShaders/bloomFragment.js +0 -66
  136. package/lib/module/shaders/fragmentShaders/bloomFragment.js.map +0 -1
  137. package/lib/module/shaders/resourceManagement.js.map +0 -1
  138. package/lib/typescript/src/shaders/fragmentShaders/bloomFragment.d.ts +0 -6
  139. package/lib/typescript/src/shaders/fragmentShaders/bloomFragment.d.ts.map +0 -1
  140. package/lib/typescript/src/shaders/resourceManagement.d.ts.map +0 -1
  141. package/src/shaders/fragmentShaders/bloomFragment.ts +0 -83
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+
3
+ export function sizeToV2d({
4
+ width: x,
5
+ height: y
6
+ }) {
7
+ 'worklet';
8
+
9
+ return {
10
+ x,
11
+ y
12
+ };
13
+ }
14
+ export function sizeFromV2d({
15
+ x: width,
16
+ y: height
17
+ }) {
18
+ 'worklet';
19
+
20
+ return {
21
+ width,
22
+ height
23
+ };
24
+ }
25
+ //# sourceMappingURL=size.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["sizeToV2d","width","x","height","y","sizeFromV2d"],"sourceRoot":"../../../src","sources":["utils/size.ts"],"mappings":";;AAGA,OAAO,SAASA,SAASA,CAAC;EAAEC,KAAK,EAAEC,CAAC;EAAEC,MAAM,EAAEC;AAAQ,CAAC,EAAO;EAC5D,SAAS;;EACT,OAAO;IAAEF,CAAC;IAAEE;EAAE,CAAC;AACjB;AAEA,OAAO,SAASC,WAAWA,CAAC;EAAEH,CAAC,EAAED,KAAK;EAAEG,CAAC,EAAED;AAAY,CAAC,EAAQ;EAC9D,SAAS;;EACT,OAAO;IAAEF,KAAK;IAAEE;EAAO,CAAC;AAC1B","ignoreList":[]}
@@ -0,0 +1,168 @@
1
+ "use strict";
2
+
3
+ // 2d
4
+ export function scaleV2d(a, value) {
5
+ 'worklet';
6
+
7
+ return {
8
+ x: value * a.x,
9
+ y: value * a.y
10
+ };
11
+ }
12
+ export const multiplyV2d = scaleV2d;
13
+ export function addV2d(a, b) {
14
+ 'worklet';
15
+
16
+ return {
17
+ x: a.x + b.x,
18
+ y: a.y + b.y
19
+ };
20
+ }
21
+ export function angleToV2d(angle) {
22
+ 'worklet';
23
+
24
+ return {
25
+ x: Math.cos(angle),
26
+ y: Math.sin(angle)
27
+ };
28
+ }
29
+ export function rotateV2d({
30
+ x,
31
+ y
32
+ }, rad) {
33
+ 'worklet';
34
+
35
+ const {
36
+ x: c,
37
+ y: s
38
+ } = angleToV2d(rad);
39
+ return {
40
+ x: x * c - y * s,
41
+ y: x * s + y * c
42
+ };
43
+ }
44
+ export function negateV2dX({
45
+ x,
46
+ y
47
+ }) {
48
+ 'worklet';
49
+
50
+ return {
51
+ x: -x,
52
+ y
53
+ };
54
+ }
55
+ export function negateV2dY({
56
+ x,
57
+ y
58
+ }) {
59
+ 'worklet';
60
+
61
+ return {
62
+ x,
63
+ y: -y
64
+ };
65
+ }
66
+ export function transformV2d({
67
+ x,
68
+ y
69
+ }, transformer) {
70
+ 'worklet';
71
+
72
+ return {
73
+ x: transformer(x),
74
+ y: transformer(y)
75
+ };
76
+ }
77
+ export function clampV2d(v2d, min, max) {
78
+ 'worklet';
79
+
80
+ return transformV2d(v2d, value => clamp(value, min, max));
81
+ }
82
+ export function round2D(v2d) {
83
+ 'worklet';
84
+
85
+ return transformV2d(v2d, value => Math.round(value));
86
+ }
87
+ export function areV2dEqual(a, b) {
88
+ return a.x === b.x && a.y === b.y;
89
+ }
90
+ export const zeroV2d = {
91
+ x: 0,
92
+ y: 0
93
+ };
94
+
95
+ // 3d
96
+ export function scaleV3d(a, value) {
97
+ 'worklet';
98
+
99
+ return {
100
+ ...scaleV2d(a, value),
101
+ z: value * a.z
102
+ };
103
+ }
104
+ export const multiplyV3d = scaleV3d;
105
+ export function divV3d(a, value) {
106
+ 'worklet';
107
+
108
+ return multiplyV3d(a, 1 / value);
109
+ }
110
+ export function negateV3d(a) {
111
+ 'worklet';
112
+
113
+ return scaleV3d(a, -1);
114
+ }
115
+ export function addV3d(a, b) {
116
+ 'worklet';
117
+
118
+ return {
119
+ ...addV2d(a, b),
120
+ z: a.z + b.z
121
+ };
122
+ }
123
+ export function subtractV3d(a, b) {
124
+ 'worklet';
125
+
126
+ return addV3d(a, negateV3d(b));
127
+ }
128
+ export function componentsFromV3d({
129
+ x,
130
+ y,
131
+ z
132
+ }) {
133
+ 'worklet';
134
+
135
+ return [x, y, z];
136
+ }
137
+ export function transformV3d(v3d, transformer) {
138
+ 'worklet';
139
+
140
+ return {
141
+ ...transformV2d(v3d, transformer),
142
+ z: transformer(v3d.z)
143
+ };
144
+ }
145
+ export function clamp(v, min = -1, max = 1) {
146
+ 'worklet';
147
+
148
+ return Math.max(min, Math.min(max, v));
149
+ }
150
+ export function clampV3d(v3d, min, max) {
151
+ 'worklet';
152
+
153
+ return transformV3d(v3d, value => clamp(value, min, max));
154
+ }
155
+
156
+ // helpers
157
+
158
+ export function degToRad(deg) {
159
+ 'worklet';
160
+
161
+ return deg * Math.PI / 180;
162
+ }
163
+ export const zeroV3d = {
164
+ x: 0,
165
+ y: 0,
166
+ z: 0
167
+ };
168
+ //# sourceMappingURL=vector.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["scaleV2d","a","value","x","y","multiplyV2d","addV2d","b","angleToV2d","angle","Math","cos","sin","rotateV2d","rad","c","s","negateV2dX","negateV2dY","transformV2d","transformer","clampV2d","v2d","min","max","clamp","round2D","round","areV2dEqual","zeroV2d","scaleV3d","z","multiplyV3d","divV3d","negateV3d","addV3d","subtractV3d","componentsFromV3d","transformV3d","v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C,CAAC;AACxC;AAEA,OAAO,SAASC,QAAQA,CAACF,GAAQ,EAAEhB,GAAW,EAAEC,GAAW,EAAO;EAChE,SAAS;;EACT,OAAOc,YAAY,CAACC,GAAG,EAAGrC,KAAK,IAAKuB,KAAK,CAACvB,KAAK,EAAEqB,GAAG,EAAEC,GAAG,CAAC,CAAC;AAC7D;;AAEA;;AAEA,OAAO,SAASkB,QAAQA,CAACC,GAAW,EAAU;EAC5C,SAAS;;EACT,OAAQA,GAAG,GAAGjC,IAAI,CAACkC,EAAE,GAAI,GAAG;AAC9B;AAEA,OAAO,MAAMC,OAAO,GAAG;EAAE1C,CAAC,EAAE,CAAC;EAAEC,CAAC,EAAE,CAAC;EAAE2B,CAAC,EAAE;AAAE,CAAC","ignoreList":[]}
@@ -0,0 +1,23 @@
1
+ import { type SharedValue } from 'react-native-reanimated';
2
+ import type { TextureProps, TgpuRoot, TgpuTexture } from 'typegpu';
3
+ import type { ColorMask, DeepPartiallyOptional, GlareOptions } from '../types/types';
4
+ import type { V2d } from '../types/vector';
5
+ export interface SharedProps {
6
+ width: number;
7
+ height: number;
8
+ glareOptions?: Partial<GlareOptions>;
9
+ colorMaskOptions?: DeepPartiallyOptional<ColorMask, 'baseColor'>;
10
+ useTouchControl?: boolean;
11
+ touchPosition?: SharedValue<V2d>;
12
+ addTextureMask?: boolean;
13
+ addReverseHolo?: boolean;
14
+ addHolo?: boolean;
15
+ }
16
+ interface ContentProps extends SharedProps {
17
+ root: TgpuRoot;
18
+ imageTexture: TgpuTexture<TextureProps>;
19
+ maskTexture?: TgpuTexture<TextureProps>;
20
+ }
21
+ export default function Content({ addHolo, addReverseHolo, addTextureMask, colorMaskOptions, glareOptions, height, imageTexture, maskTexture, root, touchPosition, useTouchControl, width, }: ContentProps): import("react/jsx-runtime").JSX.Element;
22
+ export {};
23
+ //# sourceMappingURL=Content.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Content.d.ts","sourceRoot":"","sources":["../../../../src/components/Content.tsx"],"names":[],"mappings":"AAEA,OAAiB,EAEf,KAAK,WAAW,EAKjB,MAAM,yBAAyB,CAAC;AAGjC,OAAO,KAAK,EACV,YAAY,EAEZ,QAAQ,EACR,WAAW,EACZ,MAAM,SAAS,CAAC;AAyBjB,OAAO,KAAK,EAEV,SAAS,EACT,qBAAqB,EACrB,YAAY,EAEb,MAAM,gBAAgB,CAAC;AAMxB,OAAO,KAAK,EAAE,GAAG,EAAO,MAAM,iBAAiB,CAAC;AAgBhD,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC;IACrC,gBAAgB,CAAC,EAAE,qBAAqB,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;IACjE,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,aAAa,CAAC,EAAE,WAAW,CAAC,GAAG,CAAC,CAAC;IACjC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,UAAU,YAAa,SAAQ,WAAW;IACxC,IAAI,EAAE,QAAQ,CAAC;IACf,YAAY,EAAE,WAAW,CAAC,YAAY,CAAC,CAAC;IACxC,WAAW,CAAC,EAAE,WAAW,CAAC,YAAY,CAAC,CAAC;CACzC;AAUD,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,EAC9B,OAAO,EACP,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,YAAY,EACZ,MAAM,EACN,YAAY,EACZ,WAAW,EACX,IAAI,EACJ,aAAa,EACb,eAAe,EACf,KAAK,GACN,EAAE,YAAY,2CAiSd"}
@@ -0,0 +1,7 @@
1
+ import { type SharedProps } from './Content';
2
+ export interface ShineProps extends SharedProps {
3
+ imageURI: string;
4
+ maskURI?: string;
5
+ }
6
+ export declare function Shine({ imageURI, maskURI, ...props }: ShineProps): import("react/jsx-runtime").JSX.Element | null | undefined;
7
+ //# sourceMappingURL=Shine.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Shine.d.ts","sourceRoot":"","sources":["../../../../src/components/Shine.tsx"],"names":[],"mappings":"AAKA,OAAgB,EAAE,KAAK,WAAW,EAAE,MAAM,WAAW,CAAC;AAEtD,MAAM,WAAW,UAAW,SAAQ,WAAW;IAC7C,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,wBAAgB,KAAK,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,KAAK,EAAE,EAAE,UAAU,8DAyBhE"}
@@ -0,0 +1,6 @@
1
+ import { type PropsWithChildren } from 'react';
2
+ import { type ShineProps } from './Shine';
3
+ type ShineGroupProps = PropsWithChildren<Partial<ShineProps>>;
4
+ export declare function ShineGroup({ children, glareOptions, colorMaskOptions, maskURI, touchPosition, useTouchControl, addTextureMask, addHolo, addReverseHolo, }: ShineGroupProps): import("react/jsx-runtime").JSX.Element;
5
+ export {};
6
+ //# sourceMappingURL=ShineGroup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ShineGroup.d.ts","sourceRoot":"","sources":["../../../../src/components/ShineGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,iBAAiB,EAA+B,MAAM,OAAO,CAAC;AAY5E,OAAO,EAAS,KAAK,UAAU,EAAE,MAAM,SAAS,CAAC;AAEjD,KAAK,eAAe,GAAG,iBAAiB,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC;AAE9D,wBAAgB,UAAU,CAAC,EACzB,QAAQ,EACR,YAAY,EACZ,gBAAgB,EAChB,OAAO,EACP,aAAa,EACb,eAAuB,EACvB,cAAsB,EACtB,OAAe,EACf,cAAsB,GACvB,EAAE,eAAe,2CAoEjB"}
@@ -0,0 +1,9 @@
1
+ import { type TgpuFn } from 'typegpu';
2
+ import * as d from 'typegpu/data';
3
+ export declare const WAVE_CALLBACKS: {
4
+ readonly default: (pos: d.v2f) => d.v2f;
5
+ };
6
+ export declare const waveCallbackSlot: import("typegpu").TgpuSlot<TgpuFn<(pos: d.Vec2f) => d.Vec2f>>;
7
+ export type WaveCallbackFn = (pos: d.v2f) => d.v2f;
8
+ export declare const waveCallbackFn: import("typegpu").TgpuFnShell<[d.Vec2f], d.Vec2f>;
9
+ //# sourceMappingURL=waveCallback.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"waveCallback.d.ts","sourceRoot":"","sources":["../../../../src/enums/waveCallback.ts"],"names":[],"mappings":"AAAA,OAAa,EAAE,KAAK,MAAM,EAAE,MAAM,SAAS,CAAC;AAE5C,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAElC,eAAO,MAAM,cAAc;4BACV,CAAC,CAAC,GAAG;CAWZ,CAAC;AAEX,eAAO,MAAM,gBAAgB,0CAA0B,CAAC,CAAC,KAAK,KAAK,CAAC,CAAC,KAAK,EAAI,CAAC;AAE/E,MAAM,MAAM,cAAc,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,GAAG,CAAC;AACnD,eAAO,MAAM,cAAc,mDAA8B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export default function useAnimationFrame(cb: () => void): void;
2
+ //# sourceMappingURL=useAnimationFrame.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useAnimationFrame.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useAnimationFrame.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,EAAE,EAAE,MAAM,IAAI,QAkBvD"}
@@ -0,0 +1,4 @@
1
+ type Orientation = 'LANDSCAPE' | 'PORTRAIT';
2
+ export declare const useOrientation: () => Orientation | undefined;
3
+ export {};
4
+ //# sourceMappingURL=useOrientation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useOrientation.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useOrientation.ts"],"names":[],"mappings":"AAGA,KAAK,WAAW,GAAG,WAAW,GAAG,UAAU,CAAC;AAE5C,eAAO,MAAM,cAAc,+BAY1B,CAAC"}
@@ -1,12 +1,9 @@
1
- import { subscribeToOrientationChange, getAngleFromDimensions } from './shaders/utils';
2
- import type { BloomOptions, ColorMask, DeepPartiallyOptional } from './types/types';
3
- interface ShineProps {
4
- width: number;
5
- height: number;
6
- imageURI: string;
7
- bloomOptions?: Partial<BloomOptions>;
8
- colorMaskOptions?: DeepPartiallyOptional<ColorMask, 'baseColor'>;
9
- }
10
- export declare function Shine({ width, height, imageURI, bloomOptions, colorMaskOptions, }: ShineProps): import("react/jsx-runtime").JSX.Element;
11
- export { subscribeToOrientationChange, getAngleFromDimensions };
1
+ import { useOrientation } from './hooks/useOrientation';
2
+ import { getAngleFromDimensions, isLandscapeMode, subscribeToOrientationChange } from './shaders/utils';
3
+ export { subscribeToOrientationChange, getAngleFromDimensions, isLandscapeMode, useOrientation, };
4
+ export { Shine } from './components/Shine';
5
+ export { ShineGroup } from './components/ShineGroup';
6
+ export type { ShineProps } from './components/Shine';
7
+ export * from './utils/vector';
8
+ export type { V2d, V3d } from './types/vector';
12
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAKA,OAAO,EAKL,4BAA4B,EAC5B,sBAAsB,EACvB,MAAM,iBAAiB,CAAC;AA8BzB,OAAO,KAAK,EAEV,YAAY,EACZ,SAAS,EACT,qBAAqB,EACtB,MAAM,eAAe,CAAC;AAGvB,UAAU,UAAU;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC;IACrC,gBAAgB,CAAC,EAAE,qBAAqB,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;CAClE;AAED,wBAAgB,KAAK,CAAC,EACpB,KAAK,EACL,MAAM,EACN,QAAQ,EACR,YAAY,EACZ,gBAAgB,GACjB,EAAE,UAAU,2CAmQZ;AAED,OAAO,EAAE,4BAA4B,EAAE,sBAAsB,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EACL,sBAAsB,EACtB,eAAe,EACf,4BAA4B,EAC7B,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,4BAA4B,EAC5B,sBAAsB,EACtB,eAAe,EACf,cAAc,GACf,CAAC;AACF,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,YAAY,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,cAAc,gBAAgB,CAAC;AAC/B,YAAY,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC"}
@@ -9,29 +9,39 @@ export declare const textureBindGroupLayout: import("typegpu").TgpuBindGroupLayo
9
9
  sampler: "filtering";
10
10
  };
11
11
  }>;
12
- export declare const rotationValuesBindGroupLayout: import("typegpu").TgpuBindGroupLayout<{
12
+ export declare const maskTextureBindGroupLayout: import("typegpu").TgpuBindGroupLayout<{
13
+ texture: {
14
+ texture: "float";
15
+ dimension: string;
16
+ sampleType: string;
17
+ };
18
+ sampler: {
19
+ sampler: "filtering";
20
+ };
21
+ }>;
22
+ export declare const rotationBindGroupLayout: import("typegpu").TgpuBindGroupLayout<{
13
23
  vec: {
14
24
  uniform: d.Vec3f;
15
25
  };
16
26
  }>;
17
- export declare const bloomOptionsSchema: d.WgslStruct<{
27
+ export declare const glareSchema: d.WgslStruct<{
18
28
  glowPower: d.F32;
19
29
  hueShiftAngleMax: d.F32;
20
30
  hueShiftAngleMin: d.F32;
21
31
  hueBlendPower: d.F32;
22
32
  lightIntensity: d.F32;
23
- bloomIntensity: d.F32;
33
+ glareIntensity: d.F32;
24
34
  }>;
25
- export type bloomOptionsSchema = typeof bloomOptionsSchema;
26
- export declare const bloomOptionsBindGroupLayout: import("typegpu").TgpuBindGroupLayout<{
27
- bloomOptions: {
35
+ export type GlareSchema = typeof glareSchema;
36
+ export declare const glareBindGroupLayout: import("typegpu").TgpuBindGroupLayout<{
37
+ glareOptions: {
28
38
  uniform: d.WgslStruct<{
29
39
  glowPower: d.F32;
30
40
  hueShiftAngleMax: d.F32;
31
41
  hueShiftAngleMin: d.F32;
32
42
  hueBlendPower: d.F32;
33
43
  lightIntensity: d.F32;
34
- bloomIntensity: d.F32;
44
+ glareIntensity: d.F32;
35
45
  }>;
36
46
  };
37
47
  }>;
@@ -42,7 +52,7 @@ export declare const colorMaskSchema: d.WgslStruct<{
42
52
  lower: d.Vec3f;
43
53
  }>;
44
54
  }>;
45
- export type colorMaskSchema = typeof colorMaskSchema;
55
+ export type ColorMaskSchema = typeof colorMaskSchema;
46
56
  export declare const colorMaskBindGroupLayout: import("typegpu").TgpuBindGroupLayout<{
47
57
  mask: {
48
58
  uniform: d.WgslStruct<{
@@ -54,4 +64,32 @@ export declare const colorMaskBindGroupLayout: import("typegpu").TgpuBindGroupLa
54
64
  }>;
55
65
  };
56
66
  }>;
67
+ export declare const bufferData: {
68
+ readonly rotation: {
69
+ readonly schema: d.Vec3f;
70
+ readonly usage: "uniform";
71
+ };
72
+ readonly glare: {
73
+ readonly schema: d.WgslStruct<{
74
+ glowPower: d.F32;
75
+ hueShiftAngleMax: d.F32;
76
+ hueShiftAngleMin: d.F32;
77
+ hueBlendPower: d.F32;
78
+ lightIntensity: d.F32;
79
+ glareIntensity: d.F32;
80
+ }>;
81
+ readonly usage: "uniform";
82
+ };
83
+ readonly colorMask: {
84
+ readonly schema: d.WgslStruct<{
85
+ baseColor: d.Vec3f;
86
+ rgbToleranceRange: d.WgslStruct<{
87
+ upper: d.Vec3f;
88
+ lower: d.Vec3f;
89
+ }>;
90
+ }>;
91
+ readonly usage: "uniform";
92
+ };
93
+ };
94
+ export type BufferData = typeof bufferData;
57
95
  //# sourceMappingURL=bindGroupLayouts.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"bindGroupLayouts.d.ts","sourceRoot":"","sources":["../../../../src/shaders/bindGroupLayouts.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAElC,eAAO,MAAM,sBAAsB;;;;;;;;;EAGjC,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;EAExC,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;EAO7B,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,OAAO,kBAAkB,CAAC;AAE3D,eAAO,MAAM,2BAA2B;;;;;;;;;;;EAEtC,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;EAM1B,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,OAAO,eAAe,CAAC;AAErD,eAAO,MAAM,wBAAwB;;;;;;;;;;EAEnC,CAAC"}
1
+ {"version":3,"file":"bindGroupLayouts.d.ts","sourceRoot":"","sources":["../../../../src/shaders/bindGroupLayouts.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAGlC,eAAO,MAAM,sBAAsB;;;;;;;;;EAGjC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;EAGrC,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;EAElC,CAAC;AAEH,eAAO,MAAM,WAAW;;;;;;;EAOtB,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,OAAO,WAAW,CAAC;AAE7C,eAAO,MAAM,oBAAoB;;;;;;;;;;;EAE/B,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;EAM1B,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,OAAO,eAAe,CAAC;AAErD,eAAO,MAAM,wBAAwB;;;;;;;;;;EAEnC,CAAC;AAEH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;CAgBtB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,OAAO,UAAU,CAAC"}
@@ -1,34 +1,34 @@
1
1
  import { type TgpuBuffer, type TgpuRoot, type UniformFlag } from 'typegpu';
2
2
  import * as d from 'typegpu/data';
3
- import { bloomOptionsSchema, colorMaskSchema } from './bindGroupLayouts';
4
- import type { BloomOptions, ColorMask, PartiallyOptional } from '../types/types';
3
+ import { type ColorMaskSchema, type GlareSchema } from './bindGroupLayouts';
4
+ import type { GlareOptions, ColorMask, PartiallyOptional } from '../types/types';
5
5
  export declare const createRotationBuffer: (root: TgpuRoot, initValues?: {
6
6
  x: number;
7
7
  y: number;
8
8
  z: number;
9
9
  }) => TgpuBuffer<d.Vec3f> & UniformFlag;
10
- export declare const createRotationValuesBindGroup: (root: TgpuRoot, buffer: TgpuBuffer<d.Vec3f> & UniformFlag) => import("typegpu").TgpuBindGroup<{
10
+ export declare const createRotationValuesBindGroup: (root: TgpuRoot, buffer: TgpuBuffer<d.Vec3f>) => import("typegpu").TgpuBindGroup<{
11
11
  vec: {
12
12
  uniform: d.Vec3f;
13
13
  };
14
14
  }>;
15
- export declare const createBloomOptionsBuffer: (root: TgpuRoot, initValues?: Partial<BloomOptions>) => TgpuBuffer<d.WgslStruct<{
15
+ export declare const createGlareOptionsBuffer: (root: TgpuRoot, initValues?: Partial<GlareOptions>) => TgpuBuffer<d.WgslStruct<{
16
16
  glowPower: d.F32;
17
17
  hueShiftAngleMax: d.F32;
18
18
  hueShiftAngleMin: d.F32;
19
19
  hueBlendPower: d.F32;
20
20
  lightIntensity: d.F32;
21
- bloomIntensity: d.F32;
21
+ glareIntensity: d.F32;
22
22
  }>> & UniformFlag;
23
- export declare const createBloomOptionsBindGroup: (root: TgpuRoot, buffer: TgpuBuffer<bloomOptionsSchema> & UniformFlag) => import("typegpu").TgpuBindGroup<{
24
- bloomOptions: {
23
+ export declare const createGlareBindGroup: (root: TgpuRoot, buffer: TgpuBuffer<GlareSchema> & UniformFlag) => import("typegpu").TgpuBindGroup<{
24
+ glareOptions: {
25
25
  uniform: d.WgslStruct<{
26
26
  glowPower: d.F32;
27
27
  hueShiftAngleMax: d.F32;
28
28
  hueShiftAngleMin: d.F32;
29
29
  hueBlendPower: d.F32;
30
30
  lightIntensity: d.F32;
31
- bloomIntensity: d.F32;
31
+ glareIntensity: d.F32;
32
32
  }>;
33
33
  };
34
34
  }>;
@@ -39,7 +39,7 @@ export declare const createColorMaskBuffer: (root: TgpuRoot, initValues: Partial
39
39
  lower: d.Vec3f;
40
40
  }>;
41
41
  }>> & UniformFlag;
42
- export declare const createColorMaskBindGroup: (root: TgpuRoot, buffer: TgpuBuffer<colorMaskSchema> & UniformFlag) => import("typegpu").TgpuBindGroup<{
42
+ export declare const createColorMaskBindGroup: (root: TgpuRoot, buffer: TgpuBuffer<ColorMaskSchema> & UniformFlag) => import("typegpu").TgpuBindGroup<{
43
43
  mask: {
44
44
  uniform: d.WgslStruct<{
45
45
  baseColor: d.Vec3f;
@@ -1 +1 @@
1
- {"version":3,"file":"bindGroupUtils.d.ts","sourceRoot":"","sources":["../../../../src/shaders/bindGroupUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,QAAQ,EAAE,KAAK,WAAW,EAAE,MAAM,SAAS,CAAC;AAC3E,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAClC,OAAO,EAEL,kBAAkB,EAElB,eAAe,EAEhB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EACV,YAAY,EACZ,SAAS,EACT,iBAAiB,EAClB,MAAM,gBAAgB,CAAC;AAQxB,eAAO,MAAM,oBAAoB,GAC/B,MAAM,QAAQ,EACd,aAAa;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAC;IAAC,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MAAM,QAAQ,EACd,aAAa,OAAO,CAAC,YAAY,CAAC;;;;;;;iBAId,CAAC;AAEvB,eAAO,MAAM,oBAAoB,GAC/B,MAAM,QAAQ,EACd,QAAQ,UAAU,CAAC,WAAW,CAAC,GAAG,WAAW;;;;;;;;;;;EAI3C,CAAC;AAEL,eAAO,MAAM,qBAAqB,GAChC,MAAM,QAAQ,EACd,YAAY,iBAAiB,CAAC,SAAS,EAAE,WAAW,CAAC;;;;;;iBAOjC,CAAC;AAEvB,eAAO,MAAM,wBAAwB,GACnC,MAAM,QAAQ,EACd,QAAQ,UAAU,CAAC,eAAe,CAAC,GAAG,WAAW;;;;;;;;;;EAI/C,CAAC"}
@@ -0,0 +1,8 @@
1
+ import * as d from 'typegpu/data';
2
+ export declare const glareFragment: import("typegpu").TgpuFragmentFn<{
3
+ uv: d.Vec2f;
4
+ }, d.Vec4f>;
5
+ export declare const newGlareFragment: import("typegpu").TgpuFragmentFn<{
6
+ uv: d.Vec2f;
7
+ }, d.Vec4f>;
8
+ //# sourceMappingURL=glareFragment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"glareFragment.d.ts","sourceRoot":"","sources":["../../../../../src/shaders/fragmentShaders/glareFragment.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAUlC,eAAO,MAAM,aAAa;;WAqExB,CAAC;AAEH,eAAO,MAAM,gBAAgB;;WA4D3B,CAAC"}
@@ -0,0 +1,5 @@
1
+ import * as d from 'typegpu/data';
2
+ export declare const holoFragment: import("typegpu").TgpuFragmentFn<{
3
+ uv: d.Vec2f;
4
+ }, d.Vec4f>;
5
+ //# sourceMappingURL=holoFragment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"holoFragment.d.ts","sourceRoot":"","sources":["../../../../../src/shaders/fragmentShaders/holoFragment.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AASlC,eAAO,MAAM,YAAY;;WAwBvB,CAAC"}
@@ -0,0 +1,6 @@
1
+ import * as d from 'typegpu/data';
2
+ declare const maskFragment: import("typegpu").TgpuFragmentFn<{
3
+ uv: d.Vec2f;
4
+ }, d.Vec4f>;
5
+ export default maskFragment;
6
+ //# sourceMappingURL=maskFragment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"maskFragment.d.ts","sourceRoot":"","sources":["../../../../../src/shaders/fragmentShaders/maskFragment.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAOlC,QAAA,MAAM,YAAY;;WAoBhB,CAAC;AAEH,eAAe,YAAY,CAAC"}
@@ -0,0 +1,5 @@
1
+ import * as d from 'typegpu/data';
2
+ export declare const reverseHoloFragment: import("typegpu").TgpuFragmentFn<{
3
+ uv: d.Vec2f;
4
+ }, d.Vec4f>;
5
+ //# sourceMappingURL=reverseHoloFragment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reverseHoloFragment.d.ts","sourceRoot":"","sources":["../../../../../src/shaders/fragmentShaders/reverseHoloFragment.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAUlC,eAAO,MAAM,mBAAmB;;WA2D9B,CAAC"}
@@ -1,8 +1,13 @@
1
- import type { TgpuRenderPipeline } from 'typegpu';
1
+ import type { TgpuBindGroup, TgpuRenderPipeline, TgpuRoot, TgpuTexture } from 'typegpu';
2
2
  import type { BindGroupPair } from '../types/types';
3
- export declare const attachBindGroups: (pipeline: TgpuRenderPipeline, bindGroupPairs: BindGroupPair[]) => TgpuRenderPipeline<import("typegpu/data").Void | ((import("typegpu/data").U32 | import("typegpu/data").Bool | import("typegpu/data").F32 | import("typegpu/data").F16 | import("typegpu/data").I32 | import("typegpu/data").Vec2f | import("typegpu/data").Vec3f | import("typegpu/data").Vec4f | import("typegpu/data").Vec2h | import("typegpu/data").Vec3h | import("typegpu/data").Vec4h | import("typegpu/data").Vec2i | import("typegpu/data").Vec3i | import("typegpu/data").Vec4i | import("typegpu/data").Vec2u | import("typegpu/data").Vec3u | import("typegpu/data").Vec4u) | import("typegpu/data").BuiltinClipDistances | import("typegpu/data").Decorated<import("typegpu/data").U32 | import("typegpu/data").Bool | import("typegpu/data").F32 | import("typegpu/data").F16 | import("typegpu/data").I32 | import("typegpu/data").Vec2f | import("typegpu/data").Vec3f | import("typegpu/data").Vec4f | import("typegpu/data").Vec2h | import("typegpu/data").Vec3h | import("typegpu/data").Vec4h | import("typegpu/data").Vec2i | import("typegpu/data").Vec3i | import("typegpu/data").Vec4i | import("typegpu/data").Vec2u | import("typegpu/data").Vec3u | import("typegpu/data").Vec4u, import("typegpu/data").AnyAttribute<import("typegpu/data").Builtin<"vertex_index" | "position" | "clip_distances" | "instance_index" | "front_facing" | "frag_depth" | "sample_index" | "sample_mask" | "local_invocation_id" | "local_invocation_index" | "global_invocation_id" | "workgroup_id" | "num_workgroups" | "subgroup_invocation_id" | "subgroup_size" | "fragment">>[]>) | {
4
- [x: string]: (import("typegpu/data").U32 | import("typegpu/data").Bool | import("typegpu/data").F32 | import("typegpu/data").F16 | import("typegpu/data").I32 | import("typegpu/data").Vec2f | import("typegpu/data").Vec3f | import("typegpu/data").Vec4f | import("typegpu/data").Vec2h | import("typegpu/data").Vec3h | import("typegpu/data").Vec4h | import("typegpu/data").Vec2i | import("typegpu/data").Vec3i | import("typegpu/data").Vec4i | import("typegpu/data").Vec2u | import("typegpu/data").Vec3u | import("typegpu/data").Vec4u) | import("typegpu/data").BuiltinClipDistances | import("typegpu/data").Decorated<import("typegpu/data").U32 | import("typegpu/data").Bool | import("typegpu/data").F32 | import("typegpu/data").F16 | import("typegpu/data").I32 | import("typegpu/data").Vec2f | import("typegpu/data").Vec3f | import("typegpu/data").Vec4f | import("typegpu/data").Vec2h | import("typegpu/data").Vec3h | import("typegpu/data").Vec4h | import("typegpu/data").Vec2i | import("typegpu/data").Vec3i | import("typegpu/data").Vec4i | import("typegpu/data").Vec2u | import("typegpu/data").Vec3u | import("typegpu/data").Vec4u, import("typegpu/data").AnyAttribute<import("typegpu/data").Builtin<"vertex_index" | "position" | "clip_distances" | "instance_index" | "front_facing" | "frag_depth" | "sample_index" | "sample_mask" | "local_invocation_id" | "local_invocation_index" | "global_invocation_id" | "workgroup_id" | "num_workgroups" | "subgroup_invocation_id" | "subgroup_size" | "fragment">>[]>;
3
+ export declare const attachBindGroups: (pipeline: TgpuRenderPipeline, bindGroups: TgpuBindGroup[]) => TgpuRenderPipeline<import("typegpu/data").Void | ((import("typegpu/data").Vec2f | import("typegpu/data").Bool | import("typegpu/data").F32 | import("typegpu/data").F16 | import("typegpu/data").I32 | import("typegpu/data").U32 | import("typegpu/data").Vec2h | import("typegpu/data").Vec2i | import("typegpu/data").Vec2u | import("typegpu/data").Vec3f | import("typegpu/data").Vec3h | import("typegpu/data").Vec3i | import("typegpu/data").Vec3u | import("typegpu/data").Vec4f | import("typegpu/data").Vec4h | import("typegpu/data").Vec4i | import("typegpu/data").Vec4u) | import("typegpu/data").Decorated<import("typegpu/data").Vec2f | import("typegpu/data").Bool | import("typegpu/data").F32 | import("typegpu/data").F16 | import("typegpu/data").I32 | import("typegpu/data").U32 | import("typegpu/data").Vec2h | import("typegpu/data").Vec2i | import("typegpu/data").Vec2u | import("typegpu/data").Vec3f | import("typegpu/data").Vec3h | import("typegpu/data").Vec3i | import("typegpu/data").Vec3u | import("typegpu/data").Vec4f | import("typegpu/data").Vec4h | import("typegpu/data").Vec4i | import("typegpu/data").Vec4u, import("typegpu/data").AnyAttribute<import("typegpu/data").Builtin<"clip_distances" | "position" | "frag_depth" | "sample_mask" | "front_facing" | "sample_index" | "subgroup_invocation_id" | "subgroup_size" | "vertex_index" | "instance_index" | "local_invocation_id" | "local_invocation_index" | "global_invocation_id" | "workgroup_id" | "num_workgroups" | "fragment">>[]> | import("typegpu/data").BuiltinClipDistances) | {
4
+ [x: string]: (import("typegpu/data").Vec2f | import("typegpu/data").Bool | import("typegpu/data").F32 | import("typegpu/data").F16 | import("typegpu/data").I32 | import("typegpu/data").U32 | import("typegpu/data").Vec2h | import("typegpu/data").Vec2i | import("typegpu/data").Vec2u | import("typegpu/data").Vec3f | import("typegpu/data").Vec3h | import("typegpu/data").Vec3i | import("typegpu/data").Vec3u | import("typegpu/data").Vec4f | import("typegpu/data").Vec4h | import("typegpu/data").Vec4i | import("typegpu/data").Vec4u) | import("typegpu/data").Decorated<import("typegpu/data").Vec2f | import("typegpu/data").Bool | import("typegpu/data").F32 | import("typegpu/data").F16 | import("typegpu/data").I32 | import("typegpu/data").U32 | import("typegpu/data").Vec2h | import("typegpu/data").Vec2i | import("typegpu/data").Vec2u | import("typegpu/data").Vec3f | import("typegpu/data").Vec3h | import("typegpu/data").Vec3i | import("typegpu/data").Vec3u | import("typegpu/data").Vec4f | import("typegpu/data").Vec4h | import("typegpu/data").Vec4i | import("typegpu/data").Vec4u, import("typegpu/data").AnyAttribute<import("typegpu/data").Builtin<"clip_distances" | "position" | "frag_depth" | "sample_mask" | "front_facing" | "sample_index" | "subgroup_invocation_id" | "subgroup_size" | "vertex_index" | "instance_index" | "local_invocation_id" | "local_invocation_index" | "global_invocation_id" | "workgroup_id" | "num_workgroups" | "fragment">>[]> | import("typegpu/data").BuiltinClipDistances;
5
5
  }>;
6
- export declare const getDefaultTarget: (presentationFormat: GPUTextureFormat) => GPUColorTargetState;
6
+ export declare const blend: GPUBlendState;
7
+ export declare const getDefaultTarget: (presentationFormat: GPUTextureFormat, blendMode?: GPUBlendState) => GPUColorTargetState;
7
8
  export declare const attachBindGroupsToPass: (pass: any, bindGroupPairs: BindGroupPair[]) => any;
9
+ export declare const createMaskPipeline: (root: TgpuRoot, maskTexture: TgpuTexture | undefined, bindGroups: TgpuBindGroup[], sampler: GPUSampler, presentationFormat: GPUTextureFormat) => TgpuRenderPipeline | void;
10
+ export declare const createReverseHoloPipeline: (root: TgpuRoot, texture: TgpuTexture | undefined, bindGroups: TgpuBindGroup[], sampler: GPUSampler, presentationFormat: GPUTextureFormat) => TgpuRenderPipeline | void;
11
+ export declare const createRainbowHoloPipeline: (root: TgpuRoot, texture: TgpuTexture | undefined, bindGroups: TgpuBindGroup[], sampler: GPUSampler, presentationFormat: GPUTextureFormat) => TgpuRenderPipeline | void;
12
+ export declare function renderPipelinesInSinglePass(root: TgpuRoot, pipelines: TgpuRenderPipeline[], view: GPUTextureView): void;
8
13
  //# sourceMappingURL=pipelineSetups.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pipelineSetups.d.ts","sourceRoot":"","sources":["../../../../src/shaders/pipelineSetups.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAClD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAEpD,eAAO,MAAM,gBAAgB,GAC3B,UAAU,kBAAkB,EAC5B,gBAAgB,aAAa,EAAE;;EAOhC,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAC3B,oBAAoB,gBAAgB,KACnC,mBAgBF,CAAC;AAEF,eAAO,MAAM,sBAAsB,GACjC,MAAM,GAAG,EACT,gBAAgB,aAAa,EAAE,QAOhC,CAAC"}
1
+ {"version":3,"file":"pipelineSetups.d.ts","sourceRoot":"","sources":["../../../../src/shaders/pipelineSetups.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,kBAAkB,EAClB,QAAQ,EACR,WAAW,EACZ,MAAM,SAAS,CAAC;AACjB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAepD,eAAO,MAAM,gBAAgB,GAC3B,UAAU,kBAAkB,EAC5B,YAAY,aAAa,EAAE;;EAK1B,CAAC;AAEJ,eAAO,MAAM,KAAK,EAAE,aAWnB,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAC3B,oBAAoB,gBAAgB,EACpC,YAAY,aAAa,KACxB,mBAKF,CAAC;AAEF,eAAO,MAAM,sBAAsB,GACjC,MAAM,GAAG,EACT,gBAAgB,aAAa,EAAE,QAOhC,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAC7B,MAAM,QAAQ,EACd,aAAa,WAAW,GAAG,SAAS,EACpC,YAAY,aAAa,EAAE,EAC3B,SAAS,UAAU,EACnB,oBAAoB,gBAAgB,KACnC,kBAAkB,GAAG,IAqBvB,CAAC;AAEF,eAAO,MAAM,yBAAyB,GACpC,MAAM,QAAQ,EACd,SAAS,WAAW,GAAG,SAAS,EAChC,YAAY,aAAa,EAAE,EAC3B,SAAS,UAAU,EACnB,oBAAoB,gBAAgB,KACnC,kBAAkB,GAAG,IAsBvB,CAAC;AAEF,eAAO,MAAM,yBAAyB,GACpC,MAAM,QAAQ,EACd,SAAS,WAAW,GAAG,SAAS,EAChC,YAAY,aAAa,EAAE,EAC3B,SAAS,UAAU,EACnB,oBAAoB,gBAAgB,KACnC,kBAAkB,GAAG,IAmBvB,CAAC;AAEF,wBAAgB,2BAA2B,CACzC,IAAI,EAAE,QAAQ,EACd,SAAS,EAAE,kBAAkB,EAAE,EAC/B,IAAI,EAAE,cAAc,QAsBrB"}
@@ -1,3 +1,3 @@
1
1
  declare const getBitmapFromURI: (uri: string) => Promise<ImageBitmap>;
2
2
  export default getBitmapFromURI;
3
- //# sourceMappingURL=resourceManagement.d.ts.map
3
+ //# sourceMappingURL=bitmaps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bitmaps.d.ts","sourceRoot":"","sources":["../../../../../src/shaders/resourceManagement/bitmaps.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,gBAAgB,GAAU,KAAK,MAAM,KAAG,OAAO,CAAC,WAAW,CAgBhE,CAAC;AAIF,eAAe,gBAAgB,CAAC"}
@@ -0,0 +1,28 @@
1
+ import type { TgpuRoot, TgpuBuffer, ValidateBufferSchema } from 'typegpu';
2
+ export type BufferUsageType = 'uniform' | 'storage' | 'vertex';
3
+ type BufferWithUsageFromEntry<TEntry extends {
4
+ schema: ValidateBufferSchema<any>;
5
+ usage: BufferUsageType;
6
+ }> = TEntry['usage'] extends 'uniform' ? TgpuBuffer<TEntry['schema']> & {
7
+ usableAsUniform: true;
8
+ } : TEntry['usage'] extends 'storage' ? TgpuBuffer<TEntry['schema']> & {
9
+ usableAsStorage: true;
10
+ } : TEntry['usage'] extends 'vertex' ? TgpuBuffer<TEntry['schema']> & {
11
+ usableAsVertex: true;
12
+ } : never;
13
+ export declare class TypedBufferMap<TSchemas extends Record<string, {
14
+ schema: ValidateBufferSchema<any>;
15
+ usage: BufferUsageType;
16
+ }>> {
17
+ private schemas;
18
+ private buffers;
19
+ constructor(schemas: TSchemas);
20
+ set<K extends keyof TSchemas>(key: K, buffer: BufferWithUsageFromEntry<TSchemas[K]>): void;
21
+ get<K extends keyof TSchemas>(key: K): BufferWithUsageFromEntry<TSchemas[K]> | undefined;
22
+ addBuffer<K extends keyof TSchemas>(root: TgpuRoot, key: K, initValues?: TSchemas[K]['schema']['_TSType']): BufferWithUsageFromEntry<TSchemas[K]>;
23
+ keys(): (keyof TSchemas)[];
24
+ has<K extends keyof TSchemas>(key: K): boolean;
25
+ delete<K extends keyof TSchemas>(key: K): void;
26
+ }
27
+ export {};
28
+ //# sourceMappingURL=bufferManager.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bufferManager.d.ts","sourceRoot":"","sources":["../../../../../src/shaders/resourceManagement/bufferManager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAE1E,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;AAE/D,KAAK,wBAAwB,CAC3B,MAAM,SAAS;IAAE,MAAM,EAAE,oBAAoB,CAAC,GAAG,CAAC,CAAC;IAAC,KAAK,EAAE,eAAe,CAAA;CAAE,IAC1E,MAAM,CAAC,OAAO,CAAC,SAAS,SAAS,GACjC,UAAU,CAAC,MAAM,CAAC,Q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MAAM,CAAC,CAAC,SAAS,MAAM,QAAQ,EAAE,GAAG,EAAE,CAAC,GAAG,IAAI;CAO/C"}
@@ -0,0 +1,8 @@
1
+ import { type TextureProps, type TgpuRoot, type TgpuTexture } from 'typegpu';
2
+ export declare const createTexture: (root: TgpuRoot, size: {
3
+ width: number;
4
+ height: number;
5
+ }) => Promise<TgpuTexture>;
6
+ export declare const loadTexture: (root: TgpuRoot, imageBitmap: ImageBitmap, texture: TgpuTexture) => Promise<void>;
7
+ export declare function loadBitmap(root: TgpuRoot, imageURI: string, setTexture: (texture: TgpuTexture<TextureProps>) => void): Promise<void>;
8
+ //# sourceMappingURL=textures.d.ts.map