@luma.gl/webgl 9.0.0-alpha.39 → 9.0.0-alpha.40

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 (167) hide show
  1. package/LICENSE +2 -1
  2. package/dist/adapter/converters/device-parameters.d.ts.map +1 -1
  3. package/dist/adapter/converters/device-parameters.js.map +1 -1
  4. package/dist/adapter/converters/sampler-parameters.d.ts.map +1 -1
  5. package/dist/adapter/converters/sampler-parameters.js.map +1 -1
  6. package/dist/adapter/converters/shader-formats.d.ts.map +1 -1
  7. package/dist/adapter/converters/shader-formats.js.map +1 -1
  8. package/dist/adapter/converters/texture-formats.d.ts.map +1 -1
  9. package/dist/adapter/converters/texture-formats.js.map +1 -1
  10. package/dist/adapter/converters/vertex-formats.d.ts.map +1 -1
  11. package/dist/adapter/converters/vertex-formats.js.map +1 -1
  12. package/dist/adapter/device-helpers/device-features.d.ts.map +1 -1
  13. package/dist/adapter/device-helpers/device-features.js.map +1 -1
  14. package/dist/adapter/device-helpers/device-limits.d.ts.map +1 -1
  15. package/dist/adapter/device-helpers/device-limits.js.map +1 -1
  16. package/dist/adapter/device-helpers/get-device-info.d.ts.map +1 -1
  17. package/dist/adapter/device-helpers/get-device-info.js.map +1 -1
  18. package/dist/adapter/device-helpers/is-old-ie.d.ts.map +1 -1
  19. package/dist/adapter/device-helpers/is-old-ie.js.map +1 -1
  20. package/dist/adapter/helpers/decode-webgl-types.d.ts.map +1 -1
  21. package/dist/adapter/helpers/decode-webgl-types.js.map +1 -1
  22. package/dist/adapter/helpers/get-shader-info.d.ts.map +1 -1
  23. package/dist/adapter/helpers/get-shader-info.js.map +1 -1
  24. package/dist/adapter/helpers/get-shader-layout.d.ts.map +1 -1
  25. package/dist/adapter/helpers/get-shader-layout.js.map +1 -1
  26. package/dist/adapter/helpers/parse-shader-compiler-log.d.ts.map +1 -1
  27. package/dist/adapter/helpers/parse-shader-compiler-log.js.map +1 -1
  28. package/dist/adapter/helpers/set-uniform.d.ts.map +1 -1
  29. package/dist/adapter/helpers/set-uniform.js.map +1 -1
  30. package/dist/adapter/helpers/webgl-topology-utils.d.ts.map +1 -1
  31. package/dist/adapter/helpers/webgl-topology-utils.js.map +1 -1
  32. package/dist/adapter/objects/constants-to-keys.d.ts.map +1 -1
  33. package/dist/adapter/objects/constants-to-keys.js.map +1 -1
  34. package/dist/adapter/objects/webgl-renderbuffer.d.ts.map +1 -1
  35. package/dist/adapter/objects/webgl-renderbuffer.js.map +1 -1
  36. package/dist/adapter/objects/webgl-resource.d.ts.map +1 -1
  37. package/dist/adapter/objects/webgl-resource.js.map +1 -1
  38. package/dist/adapter/resources/webgl-buffer.d.ts.map +1 -1
  39. package/dist/adapter/resources/webgl-buffer.js.map +1 -1
  40. package/dist/adapter/resources/webgl-command-buffer.d.ts.map +1 -1
  41. package/dist/adapter/resources/webgl-command-buffer.js.map +1 -1
  42. package/dist/adapter/resources/webgl-command-encoder.d.ts.map +1 -1
  43. package/dist/adapter/resources/webgl-command-encoder.js.map +1 -1
  44. package/dist/adapter/resources/webgl-external-texture.js.map +1 -1
  45. package/dist/adapter/resources/webgl-framebuffer.d.ts.map +1 -1
  46. package/dist/adapter/resources/webgl-framebuffer.js.map +1 -1
  47. package/dist/adapter/resources/webgl-render-pass.d.ts.map +1 -1
  48. package/dist/adapter/resources/webgl-render-pass.js.map +1 -1
  49. package/dist/adapter/resources/webgl-render-pipeline.d.ts.map +1 -1
  50. package/dist/adapter/resources/webgl-render-pipeline.js +12 -3
  51. package/dist/adapter/resources/webgl-render-pipeline.js.map +1 -1
  52. package/dist/adapter/resources/webgl-sampler.d.ts.map +1 -1
  53. package/dist/adapter/resources/webgl-sampler.js.map +1 -1
  54. package/dist/adapter/resources/webgl-shader.d.ts.map +1 -1
  55. package/dist/adapter/resources/webgl-shader.js.map +1 -1
  56. package/dist/adapter/resources/webgl-texture.d.ts.map +1 -1
  57. package/dist/adapter/resources/webgl-texture.js.map +1 -1
  58. package/dist/adapter/resources/webgl-vertex-array.d.ts.map +1 -1
  59. package/dist/adapter/resources/webgl-vertex-array.js.map +1 -1
  60. package/dist/adapter/webgl-canvas-context.d.ts.map +1 -1
  61. package/dist/adapter/webgl-canvas-context.js.map +1 -1
  62. package/dist/adapter/webgl-device.d.ts.map +1 -1
  63. package/dist/adapter/webgl-device.js.map +1 -1
  64. package/dist/classic/accessor.d.ts.map +1 -1
  65. package/dist/classic/accessor.js.map +1 -1
  66. package/dist/classic/buffer-with-accessor.d.ts.map +1 -1
  67. package/dist/classic/buffer-with-accessor.js.map +1 -1
  68. package/dist/classic/clear.d.ts.map +1 -1
  69. package/dist/classic/clear.js.map +1 -1
  70. package/dist/classic/copy-and-blit.d.ts.map +1 -1
  71. package/dist/classic/copy-and-blit.js.map +1 -1
  72. package/dist/classic/format-utils.d.ts.map +1 -1
  73. package/dist/classic/format-utils.js.map +1 -1
  74. package/dist/classic/typed-array-utils.d.ts.map +1 -1
  75. package/dist/classic/typed-array-utils.js.map +1 -1
  76. package/dist/context/context/create-browser-context.d.ts.map +1 -1
  77. package/dist/context/context/create-browser-context.js.map +1 -1
  78. package/dist/context/context/create-headless-context.d.ts.map +1 -1
  79. package/dist/context/context/create-headless-context.js.map +1 -1
  80. package/dist/context/context/webgl-checks.d.ts.map +1 -1
  81. package/dist/context/context/webgl-checks.js.map +1 -1
  82. package/dist/context/debug/spector.d.ts.map +1 -1
  83. package/dist/context/debug/spector.js.map +1 -1
  84. package/dist/context/debug/webgl-developer-tools.d.ts.map +1 -1
  85. package/dist/context/debug/webgl-developer-tools.js.map +1 -1
  86. package/dist/context/parameters/unified-parameter-api.d.ts.map +1 -1
  87. package/dist/context/parameters/unified-parameter-api.js.map +1 -1
  88. package/dist/context/parameters/webgl-parameter-tables.d.ts.map +1 -1
  89. package/dist/context/parameters/webgl-parameter-tables.js.map +1 -1
  90. package/dist/context/polyfill/context-data.d.ts.map +1 -1
  91. package/dist/context/polyfill/context-data.js.map +1 -1
  92. package/dist/context/polyfill/get-parameter-polyfill.d.ts.map +1 -1
  93. package/dist/context/polyfill/get-parameter-polyfill.js.map +1 -1
  94. package/dist/context/polyfill/polyfill-context.d.ts.map +1 -1
  95. package/dist/context/polyfill/polyfill-context.js.map +1 -1
  96. package/dist/context/polyfill/polyfill-table.d.ts.map +1 -1
  97. package/dist/context/polyfill/polyfill-table.js.map +1 -1
  98. package/dist/context/polyfill/polyfill-vertex-array-object.d.ts.map +1 -1
  99. package/dist/context/polyfill/polyfill-vertex-array-object.js.map +1 -1
  100. package/dist/context/state-tracker/deep-array-equal.d.ts.map +1 -1
  101. package/dist/context/state-tracker/deep-array-equal.js.map +1 -1
  102. package/dist/context/state-tracker/track-context-state.d.ts.map +1 -1
  103. package/dist/context/state-tracker/track-context-state.js.map +1 -1
  104. package/dist/context/state-tracker/with-parameters.d.ts.map +1 -1
  105. package/dist/context/state-tracker/with-parameters.js.map +1 -1
  106. package/dist/dist.dev.js +11 -3
  107. package/dist/index.cjs +11 -3
  108. package/dist/index.d.ts.map +1 -1
  109. package/dist/index.js.map +1 -1
  110. package/dist/types.d.ts.map +1 -1
  111. package/dist/types.js.map +1 -1
  112. package/dist.min.js +18 -18
  113. package/package.json +5 -5
  114. package/src/adapter/converters/device-parameters.ts +3 -0
  115. package/src/adapter/converters/sampler-parameters.ts +3 -0
  116. package/src/adapter/converters/shader-formats.ts +3 -0
  117. package/src/adapter/converters/texture-formats.ts +3 -0
  118. package/src/adapter/converters/vertex-formats.ts +3 -0
  119. package/src/adapter/device-helpers/device-features.ts +3 -0
  120. package/src/adapter/device-helpers/device-limits.ts +2 -0
  121. package/src/adapter/device-helpers/get-device-info.ts +3 -0
  122. package/src/adapter/device-helpers/is-old-ie.ts +3 -0
  123. package/src/adapter/helpers/decode-webgl-types.ts +3 -0
  124. package/src/adapter/helpers/get-shader-info.ts +1 -0
  125. package/src/adapter/helpers/get-shader-layout.ts +1 -0
  126. package/src/adapter/helpers/parse-shader-compiler-log.ts +2 -0
  127. package/src/adapter/helpers/set-uniform.ts +3 -0
  128. package/src/adapter/helpers/webgl-topology-utils.ts +3 -0
  129. package/src/adapter/objects/constants-to-keys.ts +3 -0
  130. package/src/adapter/objects/webgl-renderbuffer.ts +3 -0
  131. package/src/adapter/objects/webgl-resource.ts +2 -0
  132. package/src/adapter/resources/webgl-buffer.ts +3 -0
  133. package/src/adapter/resources/webgl-command-buffer.ts +1 -0
  134. package/src/adapter/resources/webgl-command-encoder.ts +3 -0
  135. package/src/adapter/resources/webgl-external-texture.ts +3 -0
  136. package/src/adapter/resources/webgl-framebuffer.ts +1 -0
  137. package/src/adapter/resources/webgl-render-pass.ts +3 -0
  138. package/src/adapter/resources/webgl-render-pipeline.ts +15 -3
  139. package/src/adapter/resources/webgl-sampler.ts +1 -0
  140. package/src/adapter/resources/webgl-shader.ts +2 -0
  141. package/src/adapter/resources/webgl-texture.ts +2 -0
  142. package/src/adapter/resources/webgl-vertex-array.ts +1 -0
  143. package/src/adapter/webgl-canvas-context.ts +2 -0
  144. package/src/adapter/webgl-device.ts +2 -0
  145. package/src/classic/accessor.ts +3 -0
  146. package/src/classic/buffer-with-accessor.ts +1 -0
  147. package/src/classic/clear.ts +3 -0
  148. package/src/classic/copy-and-blit.ts +2 -0
  149. package/src/classic/format-utils.ts +3 -0
  150. package/src/classic/typed-array-utils.ts +1 -0
  151. package/src/context/context/create-browser-context.ts +1 -0
  152. package/src/context/context/create-headless-context.ts +3 -0
  153. package/src/context/context/webgl-checks.ts +2 -0
  154. package/src/context/debug/spector.ts +2 -0
  155. package/src/context/debug/webgl-developer-tools.ts +2 -0
  156. package/src/context/parameters/unified-parameter-api.ts +3 -0
  157. package/src/context/parameters/webgl-parameter-tables.ts +3 -0
  158. package/src/context/polyfill/context-data.ts +3 -0
  159. package/src/context/polyfill/get-parameter-polyfill.ts +3 -0
  160. package/src/context/polyfill/polyfill-context.ts +3 -0
  161. package/src/context/polyfill/polyfill-table.ts +3 -0
  162. package/src/context/polyfill/polyfill-vertex-array-object.ts +3 -0
  163. package/src/context/state-tracker/deep-array-equal.ts +2 -0
  164. package/src/context/state-tracker/track-context-state.ts +3 -0
  165. package/src/context/state-tracker/with-parameters.ts +3 -0
  166. package/src/index.ts +3 -0
  167. package/src/types.ts +3 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luma.gl/webgl",
3
- "version": "9.0.0-alpha.39",
3
+ "version": "9.0.0-alpha.40",
4
4
  "description": "WebGL2 adapter for the luma.gl API",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -44,12 +44,12 @@
44
44
  },
45
45
  "dependencies": {
46
46
  "@babel/runtime": "^7.0.0",
47
- "@luma.gl/constants": "9.0.0-alpha.39",
48
- "@luma.gl/core": "9.0.0-alpha.39",
47
+ "@luma.gl/constants": "9.0.0-alpha.40",
48
+ "@luma.gl/core": "9.0.0-alpha.40",
49
49
  "@probe.gl/env": "^4.0.2"
50
50
  },
51
51
  "devDependencies": {
52
- "@luma.gl/test-utils": "9.0.0-alpha.39"
52
+ "@luma.gl/test-utils": "9.0.0-alpha.40"
53
53
  },
54
- "gitHead": "23bf413d42ebbc224e4f7afac135c4cf805af85f"
54
+ "gitHead": "5a6f2bc7a4d24a65b74ae905844ad5bfc36c5645"
55
55
  }
@@ -1,3 +1,6 @@
1
+ // luma.gl, MIT license
2
+ // Copyright (c) vis.gl contributors
3
+
1
4
  import {
2
5
  Device,
3
6
  Parameters,
@@ -1,3 +1,6 @@
1
+ // luma.gl, MIT license
2
+ // Copyright (c) vis.gl contributors
3
+
1
4
  // SAMPLER FILTERS
2
5
  import {SamplerParameters} from '@luma.gl/core';
3
6
  import {GL, GLSamplerParameters} from '@luma.gl/constants';
@@ -1,3 +1,6 @@
1
+ // luma.gl, MIT license
2
+ // Copyright (c) vis.gl contributors
3
+
1
4
  import {GL} from '@luma.gl/constants';
2
5
  import {ShaderAttributeType, ShaderDataType} from '@luma.gl/core';
3
6
 
@@ -1,3 +1,6 @@
1
+ // luma.gl, MIT license
2
+ // Copyright (c) vis.gl contributors
3
+
1
4
  import type {TextureFormat, DeviceFeature} from '@luma.gl/core';
2
5
  import {decodeTextureFormat} from '@luma.gl/core';
3
6
  import {GL} from '@luma.gl/constants';
@@ -1,3 +1,6 @@
1
+ // luma.gl, MIT license
2
+ // Copyright (c) vis.gl contributors
3
+
1
4
  import {GL} from '@luma.gl/constants';
2
5
  import {VertexFormat, VertexType} from '@luma.gl/core';
3
6
 
@@ -1,3 +1,6 @@
1
+ // luma.gl, MIT license
2
+ // Copyright (c) vis.gl contributors
3
+
1
4
  // Feature detection for WebGL
2
5
  // Provides a function that enables simple checking of which WebGL features are
3
6
  // available in an WebGL1 or WebGL2 environment.
@@ -1,4 +1,6 @@
1
1
  // luma.gl, MIT license
2
+ // Copyright (c) vis.gl contributors
3
+
2
4
  import type {DeviceLimits} from '@luma.gl/core';
3
5
  import {GL} from '@luma.gl/constants';
4
6
  import {getWebGL2Context} from '../../context/context/webgl-checks';
@@ -1,3 +1,6 @@
1
+ // luma.gl, MIT license
2
+ // Copyright (c) vis.gl contributors
3
+
1
4
  import {DeviceInfo} from '@luma.gl/core';
2
5
  import {GL} from '@luma.gl/constants';
3
6
  import {isWebGL2} from '../../context/context/webgl-checks';
@@ -1,3 +1,6 @@
1
+ // luma.gl, MIT license
2
+ // Copyright (c) vis.gl contributors
3
+
1
4
  // opts allows user agent to be overridden for testing
2
5
  export function isOldIE(opts = {}) {
3
6
  const navigator = typeof window !== 'undefined' ? window.navigator || {} : {};
@@ -1,3 +1,6 @@
1
+ // luma.gl, MIT license
2
+ // Copyright (c) vis.gl contributors
3
+
1
4
  import {ShaderUniformType, ShaderAttributeType, VertexFormat} from '@luma.gl/core';
2
5
  import {GL, GLUniformType, GLSamplerType, GLCompositeType, GLDataType} from '@luma.gl/constants';
3
6
 
@@ -1,4 +1,5 @@
1
1
  // luma.gl, MIT license
2
+ // Copyright (c) vis.gl contributors
2
3
 
3
4
  // Note: This was the only dependency that made @luma.gl/webgl depend on @luma.gl/shadertools
4
5
  // This file was coped from shadertools to avoid the dependency
@@ -1,4 +1,5 @@
1
1
  // luma.gl, MIT license
2
+ // Copyright (c) vis.gl contributors
2
3
 
3
4
  import type {
4
5
  ShaderLayout,
@@ -1,4 +1,6 @@
1
1
  // luma.gl, MIT license
2
+ // Copyright (c) vis.gl contributors
3
+
2
4
  import type {CompilerMessage} from '@luma.gl/core';
3
5
 
4
6
  const MESSAGE_TYPES = ['warning', 'error', 'info'];
@@ -1,3 +1,6 @@
1
+ // luma.gl, MIT license
2
+ // Copyright (c) vis.gl contributors
3
+
1
4
  /* eslint-disable */
2
5
 
3
6
  // Uniforms
@@ -1,3 +1,6 @@
1
+ // luma.gl, MIT license
2
+ // Copyright (c) vis.gl contributors
3
+
1
4
  import {GL, GLPrimitiveTopology, GLPrimitive} from '@luma.gl/constants';
2
5
 
3
6
  // Counts the number of complete primitives given a number of vertices and a drawMode
@@ -1,3 +1,6 @@
1
+ // luma.gl, MIT license
2
+ // Copyright (c) vis.gl contributors
3
+
1
4
  import {assert} from '@luma.gl/core';
2
5
  import {GL} from '@luma.gl/constants';
3
6
 
@@ -1,3 +1,6 @@
1
+ // luma.gl, MIT license
2
+ // Copyright (c) vis.gl contributors
3
+
1
4
  import {assert, ResourceProps, TextureFormat} from '@luma.gl/core';
2
5
  import {GL} from '@luma.gl/constants';
3
6
  import {WebGLDevice} from '../webgl-device';
@@ -1,4 +1,6 @@
1
1
  // luma.gl, MIT license
2
+ // Copyright (c) vis.gl contributors
3
+
2
4
  import {Resource, assert, uid, stubRemovedMethods} from '@luma.gl/core';
3
5
  import type {Device, ResourceProps} from '@luma.gl/core';
4
6
  import {GL} from '@luma.gl/constants';
@@ -1,3 +1,6 @@
1
+ // luma.gl, MIT license
2
+ // Copyright (c) vis.gl contributors
3
+
1
4
  import type {BufferProps} from '@luma.gl/core';
2
5
  import {Buffer, assert} from '@luma.gl/core';
3
6
  import {GL} from '@luma.gl/constants';
@@ -1,4 +1,5 @@
1
1
  // luma.gl, MIT license
2
+ // Copyright (c) vis.gl contributors
2
3
 
3
4
  import type {
4
5
  CopyBufferToBufferOptions,
@@ -1,3 +1,6 @@
1
+ // luma.gl, MIT license
2
+ // Copyright (c) vis.gl contributors
3
+
1
4
  import {CommandEncoder, CommandEncoderProps} from '@luma.gl/core';
2
5
  import type {
3
6
  CopyBufferToBufferOptions,
@@ -1,3 +1,6 @@
1
+ // luma.gl, MIT license
2
+ // Copyright (c) vis.gl contributors
3
+
1
4
  /*
2
5
  export class WEBGLExternalTexture extends WEBGLTexture {
3
6
  readonly device: WebGLDevice;
@@ -1,4 +1,5 @@
1
1
  // luma.gl, MIT license
2
+ // Copyright (c) vis.gl contributors
2
3
 
3
4
  import type {FramebufferProps, TextureFormat} from '@luma.gl/core';
4
5
  import {Framebuffer, Texture, assert} from '@luma.gl/core';
@@ -1,3 +1,6 @@
1
+ // luma.gl, MIT license
2
+ // Copyright (c) vis.gl contributors
3
+
1
4
  import {RenderPass, RenderPassProps, NumberArray, RenderPassParameters} from '@luma.gl/core';
2
5
  import {WebGLDevice} from '../webgl-device';
3
6
  import {GL, GLParameters} from '@luma.gl/constants';
@@ -1,4 +1,6 @@
1
1
  // luma.gl, MIT license
2
+ // Copyright (c) vis.gl contributors
3
+
2
4
  import type {UniformValue, RenderPipelineProps, Binding} from '@luma.gl/core';
3
5
  import type {ShaderLayout, PrimitiveTopology} from '@luma.gl/core';
4
6
  import type {RenderPass, VertexArray} from '@luma.gl/core';
@@ -15,6 +17,7 @@ import {setUniform} from '../helpers/set-uniform';
15
17
  import {WebGLDevice} from '../webgl-device';
16
18
  import {WEBGLBuffer} from './webgl-buffer';
17
19
  import {WEBGLShader} from './webgl-shader';
20
+ import {WEBGLFramebuffer} from './webgl-framebuffer';
18
21
  import {WEBGLTexture} from './webgl-texture';
19
22
  // import {WEBGLVertexArray} from './webgl-vertex-array';
20
23
  import {WEBGLRenderPass} from './webgl-render-pass';
@@ -144,7 +147,7 @@ export class WEBGLRenderPipeline extends RenderPipeline {
144
147
  }
145
148
  break;
146
149
  case 'texture':
147
- if (!(value instanceof WEBGLTexture)) {
150
+ if (!(value instanceof WEBGLTexture || value instanceof WEBGLFramebuffer)) {
148
151
  throw new Error('texture value');
149
152
  }
150
153
  break;
@@ -405,10 +408,19 @@ export class WEBGLRenderPipeline extends RenderPipeline {
405
408
  break;
406
409
 
407
410
  case 'texture':
408
- if (!(value instanceof WEBGLTexture)) {
411
+ if (!(value instanceof WEBGLTexture || value instanceof WEBGLFramebuffer)) {
409
412
  throw new Error('texture');
410
413
  }
411
- const texture: WEBGLTexture = value;
414
+ let texture: WEBGLTexture;
415
+ if (value instanceof WEBGLTexture) {
416
+ texture = value;
417
+ } else if (value instanceof WEBGLFramebuffer && value.colorAttachments[0] instanceof WEBGLTexture) {
418
+ log.warn('Passing framebuffer in texture binding may be deprecated. Use fbo.colorAttachments[0] instead')();
419
+ texture = value.colorAttachments[0];
420
+ } else {
421
+ throw new Error('No texture');
422
+ }
423
+
412
424
  gl2.activeTexture(GL.TEXTURE0 + textureUnit);
413
425
  gl2.bindTexture(texture.target, texture.handle);
414
426
  // gl2.bindSampler(textureUnit, sampler.handle);
@@ -1,4 +1,5 @@
1
1
  // luma.gl, MIT license
2
+ // Copyright (c) vis.gl contributors
2
3
 
3
4
  import {Sampler, SamplerProps} from '@luma.gl/core';
4
5
  import {GL, GLSamplerParameters} from '@luma.gl/constants';
@@ -1,4 +1,6 @@
1
1
  // luma.gl, MIT license
2
+ // Copyright (c) vis.gl contributors
3
+
2
4
  import {log, uid, Shader, ShaderProps, CompilerMessage, formatCompilerLog} from '@luma.gl/core';
3
5
  import {GL} from '@luma.gl/constants';
4
6
  import {getShaderInfo} from '../helpers/get-shader-info';
@@ -1,4 +1,6 @@
1
1
  // luma.gl, MIT license
2
+ // Copyright (c) vis.gl contributors
3
+
2
4
  // Texture class.
3
5
  // @todo
4
6
  // - [ ] cube texture init params
@@ -1,4 +1,5 @@
1
1
  // luma.gl, MIT license
2
+ // Copyright (c) vis.gl contributors
2
3
 
3
4
  import type {Device, Buffer, VertexArrayProps, TypedArray, NumberArray} from '@luma.gl/core';
4
5
  import {VertexArray, getScratchArray, fillArray} from '@luma.gl/core';
@@ -1,4 +1,6 @@
1
1
  // luma.gl, MIT license
2
+ // Copyright (c) vis.gl contributors
3
+
2
4
  import type {CanvasContextProps} from '@luma.gl/core';
3
5
  import {CanvasContext} from '@luma.gl/core';
4
6
  import {WebGLDevice} from './webgl-device';
@@ -1,4 +1,6 @@
1
1
  // luma.gl, MIT license
2
+ // Copyright (c) vis.gl contributors
3
+
2
4
  import type {
3
5
  DeviceProps,
4
6
  DeviceInfo,
@@ -1,3 +1,6 @@
1
+ // luma.gl, MIT license
2
+ // Copyright (c) vis.gl contributors
3
+
1
4
  import {assert, checkProps, Buffer, AccessorObject} from '@luma.gl/core';
2
5
  import {GL} from '@luma.gl/constants';
3
6
  import {getTypedArrayFromGLType} from './typed-array-utils';
@@ -1,4 +1,5 @@
1
1
  // luma.gl, MIT license
2
+ // Copyright (c) vis.gl contributors
2
3
 
3
4
  import type {Device, BufferProps, TypedArray} from '@luma.gl/core';
4
5
  import {assert, checkProps} from '@luma.gl/core';
@@ -1,3 +1,6 @@
1
+ // luma.gl, MIT license
2
+ // Copyright (c) vis.gl contributors
3
+
1
4
  import {Device, Framebuffer, assert} from '@luma.gl/core';
2
5
  import {WebGLDevice} from '../adapter/webgl-device';
3
6
  import {withGLParameters} from '../context/state-tracker/with-parameters';
@@ -1,4 +1,6 @@
1
1
  // luma.gl, MIT license
2
+ // Copyright (c) vis.gl contributors
3
+
2
4
  import {assert, Texture, Framebuffer, FramebufferProps} from '@luma.gl/core';
3
5
  import {GL} from '@luma.gl/constants';
4
6
 
@@ -1,3 +1,6 @@
1
+ // luma.gl, MIT license
2
+ // Copyright (c) vis.gl contributors
3
+
1
4
  import {assert} from '@luma.gl/core';
2
5
  import {GL} from '@luma.gl/constants';
3
6
 
@@ -1,4 +1,5 @@
1
1
  // luma.gl, MIT license
2
+ // Copyright (c) vis.gl contributors
2
3
 
3
4
  import {TypedArray, TypedArrayConstructor} from '@luma.gl/core';
4
5
  import {GL, GLDataType, GLPixelType} from '@luma.gl/constants';
@@ -1,4 +1,5 @@
1
1
  // luma.gl, MIT license
2
+ // Copyright (c) vis.gl contributors
2
3
 
3
4
  /**
4
5
  * ContextProps
@@ -1,3 +1,6 @@
1
+ // luma.gl, MIT license
2
+ // Copyright (c) vis.gl contributors
3
+
1
4
  const ERR_HEADLESSGL_FAILED =
2
5
  'Failed to create WebGL context in Node.js, headless gl returned null';
3
6
 
@@ -1,4 +1,6 @@
1
1
  // luma.gl, MIT license
2
+ // Copyright (c) vis.gl contributors
3
+
2
4
  import {assert} from '@luma.gl/core';
3
5
 
4
6
  const ERR_CONTEXT = 'Invalid WebGLRenderingContext';
@@ -1,4 +1,6 @@
1
1
  // luma.gl, MIT license
2
+ // Copyright (c) vis.gl contributors
3
+
2
4
  import {log, loadScript} from '@luma.gl/core';
3
5
 
4
6
  /** Spector debug initialization options */
@@ -1,4 +1,6 @@
1
1
  // luma.gl, MIT license
2
+ // Copyright (c) vis.gl contributors
3
+
2
4
  import {log, loadScript} from '@luma.gl/core';
3
5
  import {GL} from '@luma.gl/constants';
4
6
  import {isBrowser} from '@probe.gl/env'
@@ -1,3 +1,6 @@
1
+ // luma.gl, MIT license
2
+ // Copyright (c) vis.gl contributors
3
+
1
4
  // Provides a unified API for getting and setting any WebGL parameter
2
5
  // Also knows default values of all parameters, enabling fast cache initialization
3
6
  // Provides base functionality for the state caching.
@@ -1,3 +1,6 @@
1
+ // luma.gl, MIT license
2
+ // Copyright (c) vis.gl contributors
3
+
1
4
  // Tables describing WebGL parameters
2
5
  import {GL, GLParameters} from '@luma.gl/constants';
3
6
  import {isWebGL2} from '../context/webgl-checks';
@@ -1,3 +1,6 @@
1
+ // luma.gl, MIT license
2
+ // Copyright (c) vis.gl contributors
3
+
1
4
  /**
2
5
  * Stores luma.gl specific state associated with a context
3
6
  */
@@ -1,3 +1,6 @@
1
+ // luma.gl, MIT license
2
+ // Copyright (c) vis.gl contributors
3
+
1
4
  /* eslint-disable no-inline-comments, max-len, camelcase */
2
5
  import {GL} from '@luma.gl/constants';
3
6
  import {isWebGL2} from '../context/webgl-checks';
@@ -1,3 +1,6 @@
1
+ // luma.gl, MIT license
2
+ // Copyright (c) vis.gl contributors
3
+
1
4
  // WebGL1/WebGL2 extension polyfill support
2
5
  //
3
6
  // Provides a function that creates polyfills for WebGL2 functions based
@@ -1,3 +1,6 @@
1
+ // luma.gl, MIT license
2
+ // Copyright (c) vis.gl contributors
3
+
1
4
  import {assert} from '@luma.gl/core';
2
5
  import {GL} from '@luma.gl/constants';
3
6
  import {isWebGL2} from '../context/webgl-checks';
@@ -1,3 +1,6 @@
1
+ // luma.gl, MIT license
2
+ // Copyright (c) vis.gl contributors
3
+
1
4
  /*
2
5
  ** Copyright (c) 2015 The Khronos Group Inc.
3
6
  **
@@ -1,3 +1,5 @@
1
+ // luma.gl, MIT license
2
+ // Copyright (c) vis.gl contributors
1
3
 
2
4
  /** deeply compare two arrays */
3
5
  export function deepArrayEqual(x: any, y: any): boolean {
@@ -1,3 +1,6 @@
1
+ // luma.gl, MIT license
2
+ // Copyright (c) vis.gl contributors
3
+
1
4
  // Support for listening to context state changes and intercepting state queries
2
5
  // NOTE: this system does not handle buffer bindings
3
6
  import {assert} from '@luma.gl/core';
@@ -1,3 +1,6 @@
1
+ // luma.gl, MIT license
2
+ // Copyright (c) vis.gl contributors
3
+
1
4
  import type {Device} from '@luma.gl/core';
2
5
  import {WebGLDevice} from '../../adapter/webgl-device';
3
6
  import {GLParameters, setGLParameters} from '../parameters/unified-parameter-api';
package/src/index.ts CHANGED
@@ -1,3 +1,6 @@
1
+ // luma.gl, MIT license
2
+ // Copyright (c) vis.gl contributors
3
+
1
4
  // luma.gl Base WebGL wrapper library
2
5
  // Provides simple class/function wrappers around the low level webgl objects
3
6
  // These classes are intentionally close to the WebGL API
package/src/types.ts CHANGED
@@ -1,3 +1,6 @@
1
+ // luma.gl, MIT license
2
+ // Copyright (c) vis.gl contributors
3
+
1
4
  export type AccessorObject = {
2
5
  size?: number;
3
6
  index?: number;