Skip to content

Conversation

@donmccurdy
Copy link
Collaborator

Applies changes required for removing BufferWithAccessor from luma.gl v9.

We'll have to do something about sync getData, but I'm leaving that for another PR.

const source = bufferWithAccessor.getData({length: fromLength});
const data = new Float32Array(toLength);
// TODO(donmccurdy): Might need a helper function here.
const sourceData = buffer.getData();
Copy link
Collaborator

Choose a reason for hiding this comment

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

What has happened to fromLength?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Short answer: Oversight, and I've restored it for now, thanks!

Long answer: I think this is being used in combination with dynamic resizing of buffers, which is something we're going to want to avoid in v9. I'm also not sure whether we're keeping a synchronous method for reading buffers, since that doesn't appear to be supported in WebGPU, but switching to an async method here is a larger change than I wanted to try in this PR.

@donmccurdy donmccurdy force-pushed the donmccurdy/remove-bufferwithaccessor branch from 8f7f2e5 to e25f50f Compare December 12, 2023 02:47
@donmccurdy
Copy link
Collaborator Author

Merging. I will also look into removing reliance on the getData() function (which is part of the Buffer interface now, but only implemented by BufferWithAccessor). But some of the key uses of that function are related to transform feedback, which is not currently in a state we can test here on master, so I will probably hold off on those changes until I can test transform feedback in the DeckGL master branch.

@donmccurdy donmccurdy merged commit 3033517 into master Dec 12, 2023
@donmccurdy donmccurdy deleted the donmccurdy/remove-bufferwithaccessor branch December 12, 2023 15:59
felixpalmer added a commit that referenced this pull request Jan 4, 2024
Basic picking working

useNormalizedColors

Forward undefined/null

log on null object

Co-authored-by: Ib Green <ib@foursquare.com>

Move uniformStore binding to _getModel

Type uniformStore

Tidy

Tidy

Bump luma

API update

chore(ci): Update CI dependencies (#8331)

* chore(ci): Update CI to Node.js v18
* chore(ci): Update checkout, setup-node, and setup-python actions

[website] Fix FirstPersonView broken video URL (#8330)

Bump luma

Improve types

Tidy

Remove unneeded state.uniformStore

carto/fetchMap: fix support for quantile color scale in numeric columns for static quadbin/h3 tilesets (#8347)

docs: fix source link for `fly-to-interpolator` (#8320)

carto: add typedocs to source types (#8343)

Remove use of deprecated BufferWithAccessor (#8345)

[v9] Fix GoogleMapsOverlay by not clearing canvas (#8351)

[website] GEOMATICO-371 | Taxo map biodiversity map showcase (#8169)

Update Scatterplot to GLSL 300 (#8369)

Update PathLayer to GLSL 300 (#8370)

Update ArcLayer, LineLayer, PolygonLayer to GLSL 300 (#8371)

Update BitmapLayer, IconLayer, PointCloudLayer, TripsLayer to GLSL 300 (#8372)

Update remaining shaders to GLSL 300 (#8373)

Co-authored-by: felixpalmer <felixpalmer@gmail.com>

Bump vite from 4.4.9 to 4.5.1 (#8341)

Bump luma

Fix build

Switch to ShaderInputs in ScatterployLayer

Picking working again (without highlight)
@donmccurdy donmccurdy added this to the v9.0 milestone Jan 11, 2024
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.

3 participants