Skip to content

Commit

Permalink
fix(docs): Fix typos in webgpu-vs-webgl.md (#2038)
Browse files Browse the repository at this point in the history
  • Loading branch information
TkinterinShanghai committed Mar 18, 2024
1 parent e393572 commit 86887c5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/api-guide/background/webgpu-vs-webgl.md
Expand Up @@ -31,13 +31,13 @@ But there are also explicit features such as command queues, bind groups and ren

## WebGL compatibility

The WebGPU designers had many challenging goals, however backwards compatibility WebGL was clearly not among them. While this was likely This lack of backwards is quite significant. And it is not just a simple matter of essentially the same APIs being arbitrarily renamed, but the structure of the API is different and the behavior of objects (immutability etc) does invalidate many reasonable assumptions made by WebGL applications.
The WebGPU designers had many challenging goals, however backwards compatibility WebGL was clearly not among them. While this was likely This lack of backwards is quite significant. And it is not just a simple matter of essentially the same APIs being arbitrarily renamed, but the structure of the API is different and the behavior of objects (immutability etc) does invalidate many reasonable assumptions made by WebGL applications.

## Breaking changes

The luma.gl API with its focus on providing direct access to the GPU and the GPU API is perhaps impacted more by the incompatibilities between the WebGPU and the WebGL APIs thatn other WebGL frameworks that tend to provide higher-level, game-engine type abstractions in their APIs (such as a "renderer" class).
The luma.gl API with its focus on providing direct access to the GPU and the GPU API is perhaps impacted more by the incompatibilities between the WebGPU and the WebGL APIs than other WebGL frameworks that tend to provide higher-level, game-engine type abstractions in their APIs (such as a "renderer" class).

To be sure, the effort required to support WebGPU is big in both cases, but sometimes the required implementation changes in other frameworks can perhapsw be hidden inside their abstractions, and avoid breaking API changes, whereas in luma.gl, we have to expose the change and break some APIs.
To be sure, the effort required to support WebGPU is big in both cases, but sometimes the required implementation changes in other frameworks can perhaps be hidden inside their abstractions, and avoid breaking API changes, whereas in luma.gl, we have to expose the change and break some APIs.

## Differences

Expand Down Expand Up @@ -97,4 +97,4 @@ While these are valuable, some of them require extra effort and planning when or

## Additional Information

There are many other examples, this is only a partial list.
There are many other examples, this is only a partial list.

0 comments on commit 86887c5

Please sign in to comment.