Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Bump luma to 9.0.0-beta.6 #8567

Merged
merged 17 commits into from
Mar 4, 2024
Merged

Conversation

felixpalmer
Copy link
Collaborator

@felixpalmer felixpalmer commented Mar 1, 2024

Background

This bump introduces the removal of WebGL1 support, so unsurprisingly a number of things break.

Change List

  • Use WebGL2RenderingContext everywhere
  • Remove unneeded compatibility checks
  • Use device.createTexture instead of WEBGLRenderBuffer
  • Add workaround for broken wireframe rendering

@coveralls
Copy link

coveralls commented Mar 4, 2024

Coverage Status

coverage: 70.681% (+0.04%) from 70.643%
when pulling 5050c3d on felix/bump-luma-9.0.0-beta.6
into 02885af on master.

@felixpalmer felixpalmer marked this pull request as ready for review March 4, 2024 11:44
modules/core/src/lib/deck-picker.ts Show resolved Hide resolved
height: 1,
mipmaps: false,

// TODO fix getWebGLTextureParameters() in luma to avoid passing deprecated parameters
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will break very soon. Let's put up a luma PR on this ASAP.

@@ -192,7 +192,7 @@ export default class SolidPolygonLayer<DataT = any, ExtraPropsT extends {} = {}>
// Provide a preproject function if the coordinates are in lnglat
preproject,
fp64: this.use64bitPositions(),
IndexType: !device || device.features.has('index-uint32-webgl1') ? Uint32Array : Uint16Array
IndexType: Uint32Array
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FWIWI - the Buffer class has an indexType prop (just in case aligning is useful)

 /** If props.usage includes Buffer.INDEX */
  indexType?: 'uint16' | 'uint32';

@@ -40,7 +40,7 @@ import * as testUtils from '@deck.gl/test-utils';
test('Top-level imports', t0 => {
const hasEmptyExports = obj => {
for (const key in obj) {
if (!obj[key]) {
if (obj[key] === undefined) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we getting null exports?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, test-utils exports device which is now null

@@ -18,24 +18,24 @@ _global.HTMLVideoElement = dom.window.HTMLVideoElement;
_global.requestAnimationFrame = cb => setTimeout(cb, 0);
_global.cancelAnimationFrame = t => clearTimeout(t);

import {gl, device} from '@deck.gl/test-utils';
import {mockCanvasApi} from './utils/mock-canvas-api';
// import {gl, device} from '@deck.gl/test-utils';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be cleaned up in a follow-up, obviously.

@felixpalmer felixpalmer merged commit 0306cac into master Mar 4, 2024
3 checks passed
@felixpalmer felixpalmer deleted the felix/bump-luma-9.0.0-beta.6 branch March 4, 2024 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants