@flighthq/render-gl 0.5.1-next.1471.4e82419 → 0.5.1-next.1520.4887418

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 CHANGED
@@ -13,5 +13,5 @@ Import the supported application-facing API from `@flighthq/render-gl`. The `@fl
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/render-gl@0.5.1-next.1471.4e82419](https://github.com/flighthq/flight/tree/4e82419a6322f8a673da169994c79fa561016515/packages/render-gl)
17
- - [License](https://github.com/flighthq/flight/blob/4e82419a6322f8a673da169994c79fa561016515/LICENSE.md)
16
+ - [Source for @flighthq/render-gl@0.5.1-next.1520.4887418](https://github.com/flighthq/flight/tree/4887418ca29a53ac811258c3112aead6594c343f/packages/render-gl)
17
+ - [License](https://github.com/flighthq/flight/blob/4887418ca29a53ac811258c3112aead6594c343f/LICENSE.md)
@@ -1,11 +1,11 @@
1
+ export * from './enableGlRenderStateGuards';
2
+ export * from './enableGlRenderTextureGuards';
3
+ export * from './enableGlTextureResolverGuards';
4
+ export * from './explainGlTextureResolution';
1
5
  export * from './glCompressedTexture';
2
6
  export * from './glCubeRenderTarget';
3
7
  export * from './glDraw';
4
8
  export * from './glExternalTexture';
5
- export * from './enableGlRenderTextureGuards';
6
- export * from './enableGlRenderStateGuards';
7
- export * from './enableGlTextureResolverGuards';
8
- export * from './explainGlTextureResolution';
9
9
  export * from './glFullscreenPass';
10
10
  export * from './glLinearToSrgbPass';
11
11
  export * from './glMaterialRegistry';
@@ -17,20 +17,15 @@ export * from './glRenderPass';
17
17
  export * from './glRenderState';
18
18
  export * from './glRenderStateBracket';
19
19
  export * from './glRenderTarget';
20
+ export * from './glRenderTargetPool';
20
21
  export * from './glRenderTexture';
21
22
  export * from './glRenderTexturePool';
22
- export * from './glRenderTargetPool';
23
23
  export * from './glRenderView';
24
24
  export * from './glShader';
25
25
  export * from './glShaderBinding';
26
+ export * from './glShaderRegistry';
26
27
  export * from './glSkinPaletteTexture';
27
- export * from './glTextureUpload';
28
28
  export * from './glTextureResolver';
29
+ export * from './glTextureUpload';
29
30
  export * from './glTextureVideoUpload';
30
- export { initializeEmptyGlRenderRegistries } from './glPipeline';
31
- export { initializeDefaultGlBitmapShader, initializeGlBitmapShader } from './glShader';
32
- export { initializeGlTextureRenderTargetPool } from './glRenderTargetPool';
33
- export { initializeGlRenderTexturePool } from './glRenderTexturePool';
34
- export { initializeGlSkinPaletteTexture } from './glSkinPaletteTexture';
35
- export { initializeGlContextState } from './glRenderState';
36
31
  //# sourceMappingURL=contract.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,UAAU,CAAC;AACzB,cAAc,qBAAqB,CAAC;AACpC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iCAAiC,CAAC;AAChD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,cAAc,CAAC;AAC7B,cAAc,yBAAyB,CAAC;AACxC,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,c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AAC;AAClC,cAAc,wBAAwB,CAAC"}
package/dist/contract.js CHANGED
@@ -1,11 +1,11 @@
1
+ export * from './enableGlRenderStateGuards';
2
+ export * from './enableGlRenderTextureGuards';
3
+ export * from './enableGlTextureResolverGuards';
4
+ export * from './explainGlTextureResolution';
1
5
  export * from './glCompressedTexture';
2
6
  export * from './glCubeRenderTarget';
3
7
  export * from './glDraw';
4
8
  export * from './glExternalTexture';
5
- export * from './enableGlRenderTextureGuards';
6
- export * from './enableGlRenderStateGuards';
7
- export * from './enableGlTextureResolverGuards';
8
- export * from './explainGlTextureResolution';
9
9
  export * from './glFullscreenPass';
10
10
  export * from './glLinearToSrgbPass';
11
11
  export * from './glMaterialRegistry';
@@ -17,20 +17,15 @@ export * from './glRenderPass';
17
17
  export * from './glRenderState';
18
18
  export * from './glRenderStateBracket';
19
19
  export * from './glRenderTarget';
20
+ export * from './glRenderTargetPool';
20
21
  export * from './glRenderTexture';
21
22
  export * from './glRenderTexturePool';
22
- export * from './glRenderTargetPool';
23
23
  export * from './glRenderView';
24
24
  export * from './glShader';
25
25
  export * from './glShaderBinding';
26
+ export * from './glShaderRegistry';
26
27
  export * from './glSkinPaletteTexture';
27
- export * from './glTextureUpload';
28
28
  export * from './glTextureResolver';
29
+ export * from './glTextureUpload';
29
30
  export * from './glTextureVideoUpload';
30
- export { initializeEmptyGlRenderRegistries } from './glPipeline';
31
- export { initializeDefaultGlBitmapShader, initializeGlBitmapShader } from './glShader';
32
- export { initializeGlTextureRenderTargetPool } from './glRenderTargetPool';
33
- export { initializeGlRenderTexturePool } from './glRenderTexturePool';
34
- export { initializeGlSkinPaletteTexture } from './glSkinPaletteTexture';
35
- export { initializeGlContextState } from './glRenderState';
36
31
  //# sourceMappingURL=contract.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"contract.js","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,UAAU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,cAAc,sBAAsB,CAAC;AACrC,cAAc,UAAU,CAAC;AACzB,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,cAAc,CAAC;AAC7B,cAAc,yBAAyB,CAAC;AACxC,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC"}
@@ -21,7 +21,7 @@ export function initializeEmptyGlRenderRegistries(out) {
21
21
  out.modifierSnippetRevision = 0;
22
22
  out.pbrExtensions = createKeyedTable('GlPbrExtension', 'Unregistered');
23
23
  out.pbrExtensionRevision = 0;
24
- out.renderEffects = createKeyedTable('GlRenderEffect', 'Unregistered');
24
+ out.effects = createKeyedTable('GlEffect', 'Unregistered');
25
25
  out.renderers = createKeyedTable('NodeRenderer', 'Unregistered');
26
26
  out.textureResolvers = createKeyedTable('GlTextureResolver', 'Unregistered');
27
27
  out.velocityWriters = createKeyedTable('GlVelocityWriter', 'Unregistered');
@@ -1 +1 @@
1
- {"version":3,"file":"glPipeline.js","sourceRoot":"","sources":["../src/glPipeline.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAG/D,MAAM,UAAU,+BAA+B;IAC7C,MAAM,GAAG,GAAG,EAAwB,CAAC;I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,GAAG,CAAC,CAAC;IAC7B,GAAG,CAAC,OAAO,GAAG,gBAAgB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IAC3D,GAAG,CAAC,SAAS,GAAG,gBAAgB,CAAC,cAAc,EAAE,cAAc,CAAC,CAAC;IACjE,GAAG,CAAC,gBAAgB,GAAG,gBAAgB,CAAC,mBAAmB,EAAE,cAAc,CAAC,CAAC;IAC7E,GAAG,CAAC,eAAe,GAAG,gBAAgB,CAAC,kBAAkB,EAAE,cAAc,CAAC,CAAC;AAC7E,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { EntityConstruction, GlBitmapShader, GlRenderState } from '@flighthq/types/contract';
1
+ import type { GlRenderState } from '@flighthq/types/contract';
2
2
  import type { GlShaderLocations } from '@flighthq/types/contract';
3
3
  export declare function createGlState(options?: {
4
4
  allowSmoothing?: boolean;
@@ -8,7 +8,6 @@ export declare function createGlState(options?: {
8
8
  canvas: HTMLCanvasElement;
9
9
  shaderLoc: GlShaderLocations;
10
10
  };
11
- export declare function initializeGlBitmapShader(out: EntityConstruction<GlBitmapShader>, bind: GlBitmapShader['bind'], locations: GlBitmapShader['locations'], program: GlBitmapShader['program']): void;
12
11
  export declare function makeGL(width?: number, height?: number): WebGL2RenderingContext;
13
12
  export declare function makeShaderLoc(): GlShaderLocations;
14
13
  //# sourceMappingURL=glTestHelper.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"glTestHelper.d.ts","sourceRoot":"","sources":["../src/glTestHelper.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,cAAc,EAAE,aAAa,EAAwB,MAAM,0BAA0B,CAAC;AAExH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAKlE,wBAAgB,aAAa,CAAC,OAAO,CAAC,EAAE;IAAE,cAAc,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG;IACrE,KAAK,EAAE,aAAa,CAAC;IACrB,EAAE,EAAE,sBAAsB,CAAC;IAC3B,MAAM,EAAE,iBAAiB,CAAC;IAC1B,SAAS,EAAE,iBAAiB,CAAC;CAC9B,CA2DA;AAED,wBAAgB,wBAAwB,CACtC,GAAG,EAAE,kBAAkB,CAAC,cAAc,CAAC,EACvC,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC,EAC5B,SAAS,EAAE,cAAc,CAAC,WAAW,CAAC,EACtC,OAAO,EAAE,cAAc,CAAC,SAAS,CAAC,GACjC,IAAI,CAIN;AAKD,wBAAgB,MAAM,CAAC,KAAK,SAAM,EAAE,MAAM,SAAM,GAAG,sBAAsB,CAQxE;AAED,wBAAgB,aAAa,IAAI,iBAAiB,CAYjD"}
1
+ {"version":3,"file":"glTestHelper.d.ts","sourceRoot":"","sources":["../src/glTestHelper.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAsC,aAAa,EAAwB,MAAM,0BAA0B,CAAC;AAExH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAMlE,wBAAgB,aAAa,CAAC,OAAO,CAAC,EAAE;IAAE,cAAc,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG;IACrE,KAAK,EAAE,aAAa,CAAC;IACrB,EAAE,EAAE,sBAAsB,CAAC;IAC3B,MAAM,EAAE,iBAAiB,CAAC;IAC1B,SAAS,EAAE,iBAAiB,CAAC;CAC9B,CA2DA;AAgBD,wBAAgB,MAAM,CAAC,KAAK,SAAM,EAAE,MAAM,SAAM,GAAG,sBAAsB,CAQxE;AAED,wBAAgB,aAAa,IAAI,iBAAiB,CAYjD"}
@@ -1,6 +1,7 @@
1
1
  import { allocateEntity, finishEntity } from '@flighthq/entity/contract';
2
2
  import { createRenderState } from '@flighthq/render/contract';
3
3
  import { EntityRuntimeKey } from '@flighthq/types/contract';
4
+ import { vi } from 'vitest';
4
5
  import { allocateEmptyGlRenderRegistries } from './glPipeline';
5
6
  import { createGlContextState, createGlRenderStateRuntime } from './glRenderState';
6
7
  export function createGlState(options) {
@@ -60,7 +61,7 @@ export function createGlState(options) {
60
61
  state[EntityRuntimeKey] = runtime;
61
62
  return { state, gl, canvas, shaderLoc };
62
63
  }
63
- export function initializeGlBitmapShader(out, bind, locations, program) {
64
+ function initializeGlBitmapShader(out, bind, locations, program) {
64
65
  out.bind = bind;
65
66
  out.locations = locations;
66
67
  out.program = program;
@@ -1 +1 @@
1
- {"version":3,"file":"glTestHelper.js","sourceRoot":"","sources":["../src/glTestHelper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAE9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAG5D,OAAO,EAAE,+BAA+B,EAAE,MAAM,cAAc,CAAC;AAC/D,OAAO,EAAE,oBAAoB,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAC;AAEnF,MAAM,UAAU,aAAa,CAAC,OAAsC;IAMlE,MAAM,MAAM,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;IAChD,MAAM,CAAC,KAAK,GAAG,GAAG,CAAC;IACnB,MAAM,CAAC,MAAM,GAAG,GAAG,CAAC;IACpB,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC;IACpB,MAAM,YAAY,GAAG,oBAAoB,CAAC,EAAE,CAAC,CAAC;IAC9C,MAAM,QAAQ,GAAG,+BAA+B,EAAE,CAAC;IACnD,MAAM,SAAS,GAAG,aAAa,EAAE,CAAC;IAClC,MAAM,KAAK,GAAG,iBAAiB,CAAC;QAC9B,cAAc,EAAE,OAAO,EAAE,cAAc,IAAI,IAAI;KAChD,CAAkB,CAAC;IAEpB,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE;QACnB,cAAc,EAAE,IAAI;QACpB,YAAY;QACZ,EAAE;QACF,QAAQ;KACT,CAAC,CAAC;IAEH,MAAM,OAAO,GAAG,0BAA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,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC;AAC1C,CAAC;AAED,SAAS,wBAAwB,CAC/B,GAAuC,EACvC,IAA4B,EAC5B,SAAsC,EACtC,OAAkC;IAElC,GAAG,CAAC,IAAI,GAAG,IAAI,CAAC;IAChB,GAAG,CAAC,SAAS,GAAG,SAAS,CAAC;IAC1B,GAAG,CAAC,OAAO,GAAG,OAAO,CAAC;AACxB,CAAC;AAED,6EAA6E;AAC7E,uEAAuE;AACvE,mFAAmF;AACnF,MAAM,UAAU,MAAM,CAAC,KAAK,GAAG,GAAG,EAAE,MAAM,GAAG,GAAG;IAC9C,MAAM,MAAM,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;IAChD,MAAM,EAAE,GAAG,MAAM,CAAC,UAAU,CAAC,QAAQ,CAA2B,CAAC;IACjE,MAAM,CAAC,gBAAgB,CAAC,EAAE,EAAE;QAC1B,mBAAmB,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE;QAC1D,kBAAkB,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE;KACzD,CAAC,CAAC;IACH,OAAO,EAAE,CAAC;AACZ,CAAC;AAED,MAAM,UAAU,aAAa;IAC3B,OAAO;QACL,OAAO,EAAE,EAAkB;QAC3B,WAAW,EAAE,CAAC;QACd,WAAW,EAAE,CAAC;QACd,SAAS,EAAE,EAA0B;QACrC,QAAQ,EAAE,EAA0B;QACpC,aAAa,EAAE,EAA0B;QACzC,YAAY,EAAE,EAA0B;QACxC,oBAAoB,EAAE,EAA0B;QAChD,UAAU,EAAE,EAA0B;KACvC,CAAC;AACJ,CAAC"}
package/dist/index.d.ts CHANGED
@@ -1,2 +1,20 @@
1
- export { acquireGlRenderTexture, applyGlBlendMode, beginGlCubeRenderFace, beginGlRenderPass, bindGlImageResourceTexture, bindGlRenderTexture, bindGlTexture, clearGlRenderTarget, clearGlRenderTargetAttachments, clearGlRenderTexture, createExternalGlTexture, allocateEmptyGlRenderRegistries, createGlCubeRenderTarget, createGlRenderState, createGlRenderTexturePool, createGlRenderViewResources, createGlScreenRenderTarget, createGlTextureRenderTarget, destroyGlCubeRenderTarget, destroyGlTextureRenderTarget, destroyGlRenderTexture, destroyGlRenderTexturePool, destroyGlRenderViewResources, destroyGlRenderState, disposeExternalGlTexture, drawGlFullscreenPass, drawGlQuad, fillGlRect, enableGlRenderTextureGuards, enableGlRenderStateGuards, enableGlTextureResolverGuards, enableGlBlendModeSupport, endGlRenderPass, endGlCubeRenderFace, explainGlTextureRenderTarget, explainGlRenderTexture, explainGlTextureResolution, getGlCurrentRenderPass, isGlRenderTargetFormatSupported, popGlRenderState, registerGlBitmapTextureResolver, registerGlCompressedTextureDecoder, registerGlCompressedImageTextureResolver, registerGlCompressedTextureUpload, registerGlImageTextureResolver, registerGlRenderTextureResolver, registerStandardGlTextureResolvers, registerGlTextureResolver, presentGlRenderTarget, pushGlRenderState, renderIntoGlRenderTexture, releaseGlRenderTexture, resizeGlRenderViewResources, resolveGlTexture, setGlRenderTransform2D, standardGlBlendRealizations, standardGlTextureResolvers, uploadGlCompressedTextureContainer, withGlRenderState, withGlRenderTextures, } from './contract';
1
+ export { enableGlRenderStateGuards } from './enableGlRenderStateGuards';
2
+ export { enableGlRenderTextureGuards } from './enableGlRenderTextureGuards';
3
+ export { enableGlTextureResolverGuards } from './enableGlTextureResolverGuards';
4
+ export * from './explainGlTextureResolution';
5
+ export { registerGlCompressedTextureDecoder, registerGlCompressedTextureUpload } from './glCompressedTexture';
6
+ export { beginGlCubeRenderFace, createGlCubeRenderTarget, destroyGlCubeRenderTarget, endGlCubeRenderFace, } from './glCubeRenderTarget';
7
+ export { enableGlBlendModeSupport } from './glDraw';
8
+ export { createExternalGlTexture, disposeExternalGlTexture } from './glExternalTexture';
9
+ export { clearGlRenderTarget, clearGlRenderTargetAttachments } from './glFullscreenPass';
10
+ export { allocateEmptyGlRenderRegistries } from './glPipeline';
11
+ export * from './glPresentRenderTarget';
12
+ export { beginGlRenderPass, endGlRenderPass, getGlCurrentRenderPass } from './glRenderPass';
13
+ export { createGlRenderState, destroyGlRenderState } from './glRenderState';
14
+ export * from './glRenderStateBracket';
15
+ export { createGlScreenRenderTarget, createGlTextureRenderTarget, destroyGlTextureRenderTarget, explainGlTextureRenderTarget, isGlRenderTargetFormatSupported, } from './glRenderTarget';
16
+ export { clearGlRenderTexture, destroyGlRenderTexture, explainGlRenderTexture, renderIntoGlRenderTexture, } from './glRenderTexture';
17
+ export { acquireGlRenderTexture, createGlRenderTexturePool, destroyGlRenderTexturePool, releaseGlRenderTexture, withGlRenderTextures, } from './glRenderTexturePool';
18
+ export * from './glRenderView';
19
+ export * from './glTextureResolver';
2
20
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EACtB,gBAAgB,EAChB,qBAAqB,EACrB,iBAAiB,EACjB,0BAA0B,EAC1B,mBAAmB,EACnB,aAAa,EACb,mBAAmB,EACnB,8BAA8B,EAC9B,oBAAoB,EACpB,uBAAuB,EACvB,+BAA+B,EAC/B,wBAAwB,EACxB,mBAAmB,EACnB,yBAAyB,EACzB,2BAA2B,EAC3B,0BAA0B,EAC1B,2BAA2B,EAC3B,yBAAyB,EACzB,4BAA4B,EAC5B,sBAAsB,EACtB,0BAA0B,EAC1B,4BAA4B,EAC5B,oBAAoB,EACpB,wBAAwB,EACxB,oBAAoB,EACpB,UAAU,EACV,UAAU,EACV,2BAA2B,EAC3B,yBAAyB,EACzB,6BAA6B,EAC7B,wBAAwB,EACxB,eAAe,EACf,mBAAmB,EACnB,4BAA4B,EAC5B,sBAAsB,EACtB,0BAA0B,EAC1B,sBAAsB,EACtB,+BAA+B,EAC/B,gBAAgB,EAChB,+BAA+B,EAC/B,kCAAkC,EAClC,w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ChC,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,oBAAoB,EACpB,sBAAsB,EACtB,sBAAsB,EACtB,yBAAyB,GAC1B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,sBAAsB,EACtB,yBAAyB,EACzB,0BAA0B,EAC1B,sBAAsB,EACtB,oBAAoB,GACrB,MAAM,uBAAuB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC"}
package/dist/index.js CHANGED
@@ -1,2 +1,20 @@
1
- export { acquireGlRenderTexture, applyGlBlendMode, beginGlCubeRenderFace, beginGlRenderPass, bindGlImageResourceTexture, bindGlRenderTexture, bindGlTexture, clearGlRenderTarget, clearGlRenderTargetAttachments, clearGlRenderTexture, createExternalGlTexture, allocateEmptyGlRenderRegistries, createGlCubeRenderTarget, createGlRenderState, createGlRenderTexturePool, createGlRenderViewResources, createGlScreenRenderTarget, createGlTextureRenderTarget, destroyGlCubeRenderTarget, destroyGlTextureRenderTarget, destroyGlRenderTexture, destroyGlRenderTexturePool, destroyGlRenderViewResources, destroyGlRenderState, disposeExternalGlTexture, drawGlFullscreenPass, drawGlQuad, fillGlRect, enableGlRenderTextureGuards, enableGlRenderStateGuards, enableGlTextureResolverGuards, enableGlBlendModeSupport, endGlRenderPass, endGlCubeRenderFace, explainGlTextureRenderTarget, explainGlRenderTexture, explainGlTextureResolution, getGlCurrentRenderPass, isGlRenderTargetFormatSupported, popGlRenderState, registerGlBitmapTextureResolver, registerGlCompressedTextureDecoder, registerGlCompressedImageTextureResolver, registerGlCompressedTextureUpload, registerGlImageTextureResolver, registerGlRenderTextureResolver, registerStandardGlTextureResolvers, registerGlTextureResolver, presentGlRenderTarget, pushGlRenderState, renderIntoGlRenderTexture, releaseGlRenderTexture, resizeGlRenderViewResources, resolveGlTexture, setGlRenderTransform2D, standardGlBlendRealizations, standardGlTextureResolvers, uploadGlCompressedTextureContainer, withGlRenderState, withGlRenderTextures, } from './contract';
1
+ export { enableGlRenderStateGuards } from './enableGlRenderStateGuards';
2
+ export { enableGlRenderTextureGuards } from './enableGlRenderTextureGuards';
3
+ export { enableGlTextureResolverGuards } from './enableGlTextureResolverGuards';
4
+ export * from './explainGlTextureResolution';
5
+ export { registerGlCompressedTextureDecoder, registerGlCompressedTextureUpload } from './glCompressedTexture';
6
+ export { beginGlCubeRenderFace, createGlCubeRenderTarget, destroyGlCubeRenderTarget, endGlCubeRenderFace, } from './glCubeRenderTarget';
7
+ export { enableGlBlendModeSupport } from './glDraw';
8
+ export { createExternalGlTexture, disposeExternalGlTexture } from './glExternalTexture';
9
+ export { clearGlRenderTarget, clearGlRenderTargetAttachments } from './glFullscreenPass';
10
+ export { allocateEmptyGlRenderRegistries } from './glPipeline';
11
+ export * from './glPresentRenderTarget';
12
+ export { beginGlRenderPass, endGlRenderPass, getGlCurrentRenderPass } from './glRenderPass';
13
+ export { createGlRenderState, destroyGlRenderState } from './glRenderState';
14
+ export * from './glRenderStateBracket';
15
+ export { createGlScreenRenderTarget, createGlTextureRenderTarget, destroyGlTextureRenderTarget, explainGlTextureRenderTarget, isGlRenderTargetFormatSupported, } from './glRenderTarget';
16
+ export { clearGlRenderTexture, destroyGlRenderTexture, explainGlRenderTexture, renderIntoGlRenderTexture, } from './glRenderTexture';
17
+ export { acquireGlRenderTexture, createGlRenderTexturePool, destroyGlRenderTexturePool, releaseGlRenderTexture, withGlRenderTextures, } from './glRenderTexturePool';
18
+ export * from './glRenderView';
19
+ export * from './glTextureResolver';
2
20
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EACtB,gBAAgB,EAChB,qBAAqB,EACrB,iBAAiB,EACjB,0BAA0B,EAC1B,mBAAmB,EACnB,aAAa,EACb,mBAAmB,EACnB,8BAA8B,EAC9B,oBAAoB,EACpB,uBAAuB,EACvB,+BAA+B,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wB,EAAE,MAAM,qBAAqB,CAAC;AACxF,OAAO,EAAE,mBAAmB,EAAE,8BAA8B,EAAE,MAAM,oBAAoB,CAAC;AACzF,OAAO,EAAE,+BAA+B,EAAE,MAAM,cAAc,CAAC;AAC/D,cAAc,yBAAyB,CAAC;AACxC,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAC5F,OAAO,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAC5E,cAAc,wBAAwB,CAAC;AACvC,OAAO,EACL,0BAA0B,EAC1B,2BAA2B,EAC3B,4BAA4B,EAC5B,4BAA4B,EAC5B,+BAA+B,GAChC,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,oBAAoB,EACpB,sBAAsB,EACtB,sBAAsB,EACtB,yBAAyB,GAC1B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,sBAAsB,EACtB,yBAAyB,EACzB,0BAA0B,EAC1B,sBAAsB,EACtB,oBAAoB,GACrB,MAAM,uBAAuB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flighthq/render-gl",
3
- "version": "0.5.1-next.1471.4e82419",
3
+ "version": "0.5.1-next.1520.4887418",
4
4
  "author": "Joshua Granick and other contributors",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -38,17 +38,17 @@
38
38
  "clean:dist": "tsx ../../scripts/clean-package-dist.ts"
39
39
  },
40
40
  "dependencies": {
41
- "@flighthq/color": "0.5.1-next.1471.4e82419",
42
- "@flighthq/entity": "0.5.1-next.1471.4e82419",
43
- "@flighthq/geometry": "0.5.1-next.1471.4e82419",
44
- "@flighthq/log": "0.5.1-next.1471.4e82419",
45
- "@flighthq/node": "0.5.1-next.1471.4e82419",
46
- "@flighthq/registry": "0.5.1-next.1471.4e82419",
47
- "@flighthq/render": "0.5.1-next.1471.4e82419",
48
- "@flighthq/scene2d": "0.5.1-next.1471.4e82419",
49
- "@flighthq/signals": "0.5.1-next.1471.4e82419",
50
- "@flighthq/texture": "0.5.1-next.1471.4e82419",
51
- "@flighthq/types": "0.5.1-next.1471.4e82419"
41
+ "@flighthq/color": "0.5.1-next.1520.4887418",
42
+ "@flighthq/entity": "0.5.1-next.1520.4887418",
43
+ "@flighthq/geometry": "0.5.1-next.1520.4887418",
44
+ "@flighthq/log": "0.5.1-next.1520.4887418",
45
+ "@flighthq/node": "0.5.1-next.1520.4887418",
46
+ "@flighthq/registry": "0.5.1-next.1520.4887418",
47
+ "@flighthq/render": "0.5.1-next.1520.4887418",
48
+ "@flighthq/scene2d": "0.5.1-next.1520.4887418",
49
+ "@flighthq/signals": "0.5.1-next.1520.4887418",
50
+ "@flighthq/texture": "0.5.1-next.1520.4887418",
51
+ "@flighthq/types": "0.5.1-next.1520.4887418"
52
52
  },
53
53
  "devDependencies": {
54
54
  "typescript": "^5.3.0"
@@ -13,7 +13,7 @@ describe('allocateEmptyGlRenderRegistries', () => {
13
13
  expect(registries.meshMaterialRenderers.shape).toBe('keyed');
14
14
  expect(registries.modifierSnippets.shape).toBe('keyed');
15
15
  expect(registries.pbrExtensions.shape).toBe('keyed');
16
- expect(registries.renderEffects.shape).toBe('keyed');
16
+ expect(registries.effects.shape).toBe('keyed');
17
17
  expect(registries.shapeRasterizer).toBeNull();
18
18
  // Opt-in: the stroke kernel's slot is allocated by enable*StrokePathTessellation, not by the
19
19
  // pipeline, so a pipeline nobody opted in on carries no table for it.
@@ -20,7 +20,7 @@ import type {
20
20
  GlColorAdjustmentMaterialFeature,
21
21
  GlColorAdjustmentMaterialFeatureGuard,
22
22
  GlRenderOptions,
23
- RenderEffectPaddingResolver,
23
+ EffectPaddingResolver,
24
24
  RenderState,
25
25
  } from '@flighthq/types/contract';
26
26
  import { EntityRuntimeKey, RegistryEntryState } from '@flighthq/types/contract';
@@ -65,16 +65,16 @@ function createTestGlRenderState(gl: WebGL2RenderingContext, options: GlRenderOp
65
65
  return createGlRenderState(gl, testPipeline, options);
66
66
  }
67
67
 
68
- function getPaddingResolver(state: RenderState, kind: string): RenderEffectPaddingResolver | null {
68
+ function getPaddingResolver(state: RenderState, kind: string): EffectPaddingResolver | null {
69
69
  const table = getRenderStateRuntime(state).registries.effectPaddingResolvers;
70
70
  return table === undefined ? null : getRegistryTableEntry(table, kind);
71
71
  }
72
72
 
73
- function registerPaddingResolver(state: RenderState, kind: string, resolver: RenderEffectPaddingResolver): void {
73
+ function registerPaddingResolver(state: RenderState, kind: string, resolver: EffectPaddingResolver): void {
74
74
  const runtime = getRenderStateRuntime(state);
75
75
  runtime.registries.effectPaddingResolvers = withRegistryTableEntry(
76
76
  runtime.registries.effectPaddingResolvers ??
77
- createKeyedTable<RenderEffectPaddingResolver>('RenderEffectPaddingResolver', 'Zero'),
77
+ createKeyedTable<EffectPaddingResolver>('EffectPaddingResolver', 'Zero'),
78
78
  kind,
79
79
  resolver,
80
80
  );
@@ -243,8 +243,8 @@ describe('createGlRenderState (context sharing)', () => {
243
243
  enableColorAdjustments(screen);
244
244
  enableColorAdjustmentGuards(screen);
245
245
  enableGlRenderStateGuards(screen);
246
- getGlRenderStateRuntime(screen).registries.renderEffects = withRegistryTableEntry(
247
- getGlRenderStateRuntime(screen).registries.renderEffects,
246
+ getGlRenderStateRuntime(screen).registries.effects = withRegistryTableEntry(
247
+ getGlRenderStateRuntime(screen).registries.effects,
248
248
  'acme.Effect',
249
249
  { runner: effectRunner as never },
250
250
  );
@@ -325,7 +325,7 @@ describe('createGlRenderState (context sharing)', () => {
325
325
  expect(offscreenRuntime.registries.modifierSnippetRevision).toBe(screenRuntime.registries.modifierSnippetRevision);
326
326
  expect(offscreenRuntime.registries.pbrExtensions).toBe(screenRuntime.registries.pbrExtensions);
327
327
  expect(offscreenRuntime.registries.pbrExtensionRevision).toBe(screenRuntime.registries.pbrExtensionRevision);
328
- expect(offscreenRuntime.registries.renderEffects).toBe(screenRuntime.registries.renderEffects);
328
+ expect(offscreenRuntime.registries.effects).toBe(screenRuntime.registries.effects);
329
329
  expect(offscreenRuntime.registries.shapeRasterizer).toBe(screenRuntime.registries.shapeRasterizer);
330
330
  expect(offscreenRuntime.registries.strokeTessellator).toBe(screenRuntime.registries.strokeTessellator);
331
331
  expect(offscreenRuntime.registries.textureResolvers).toBe(screenRuntime.registries.textureResolvers);
@@ -336,7 +336,7 @@ describe('createGlRenderState (context sharing)', () => {
336
336
  materialRenderer,
337
337
  );
338
338
  expect(getRegistryTableEntry(offscreenRuntime.registries.textureResolvers, 'acme.Texture')).toBe(textureResolver);
339
- expect(getRegistryTableEntry(offscreenRuntime.registries.renderEffects, 'acme.Effect')?.runner).toBe(effectRunner);
339
+ expect(getRegistryTableEntry(offscreenRuntime.registries.effects, 'acme.Effect')?.runner).toBe(effectRunner);
340
340
  expect(getPaddingResolver(offscreen, 'acme.Effect')).toBe(paddingResolver);
341
341
 
342
342
  screenRuntime.context.currentShader = { locations: null, program: {} as WebGLProgram };
@@ -443,9 +443,9 @@ describe('createGlRenderStateRuntime', () => {
443
443
  });
444
444
  expect(runtime.registries.pbrExtensions.entries.size).toBe(0);
445
445
  expect(runtime.registries.pbrExtensionRevision).toBe(0);
446
- expect(runtime.registries.renderEffects).toMatchObject({
446
+ expect(runtime.registries.effects).toMatchObject({
447
447
  onMiss: 'Unregistered',
448
- registry: 'GlRenderEffect',
448
+ registry: 'GlEffect',
449
449
  shape: 'keyed',
450
450
  });
451
451
  expect(runtime.registries.compressedTextureDecoder).toBeNull();