Skip to content

three.webgpu.js contains identically-named items "arrayNeedsUint32", "Uniform", and "UniformsGroup" that are also found in three.core.js #30404

@PoseidonEnergy

Description

@PoseidonEnergy

Description

three.core.js exports the following items:

arrayNeedsUint32
Uniform
UniformsGroup

three.webgpu.js exports the items listed above on behalf of three.core.js, but also redeclares them for its own use.

Was this intentional?

#############################################################################################

arrayNeedsUint32

three.core.js:

function arrayNeedsUint32( array ) {

three.webgpu.js:

https://github.com/mrdoob/three.js/blob/27a171511dc9b001641e0a97fe81b7a51d89ec14/build/three.webgpu.js#L24063

#############################################################################################

Uniform

three.core.js:

class Uniform {

three.webgpu.js:

https://github.com/mrdoob/three.js/blob/27a171511dc9b001641e0a97fe81b7a51d89ec14/build/three.webgpu.js#L39497

#############################################################################################

UniformsGroup

three.core.js:

class UniformsGroup extends EventDispatcher {

three.webgpu.js:

https://github.com/mrdoob/three.js/blob/27a171511dc9b001641e0a97fe81b7a51d89ec14/build/three.webgpu.js#L50559

#############################################################################################

Version

173dev

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions