Code Monkey home page Code Monkey logo

Comments (8)

redcamel avatar redcamel commented on June 10, 2024 1

@cx20
一度全体的に把握してみるとsetSubDataのほうが多壊れています。
平日に変更点を把握して修正するようにします。

from redgpu.

redcamel avatar redcamel commented on June 10, 2024 1

@cx20
パーティクルも処理した。
GPUBuffer.setSubData is deprecated。も近いうちに解決そうです。

from redgpu.

redcamel avatar redcamel commented on June 10, 2024 1

@cx20 WebGPUのDescriptor仕様が変更されました。
bindings===> entries
二箇所を修正すると、動作します。

before
image
current
image

image

from redgpu.

redcamel avatar redcamel commented on June 10, 2024

@cx20
修正し始めました。
釘ボンサイ多くの変化があったかですね^^

from redgpu.

redcamel avatar redcamel commented on June 10, 2024

@cx20
テクスチャビューを作成して管理する部分の変化があるのは明らかだがもしかしたら助けてくれるようなことはありますか?

現在
パーティクルを除いた大部分の動作が使用可能になりました。

バッファのsetSubDataはマッピングされたバッファに移動行けばそうですが。より確実なポイントをキャッチするためにいくつかの方面にテスト中です。

from redgpu.

redcamel avatar redcamel commented on June 10, 2024

@cx20 fixed all deprecated API.

from redgpu.

cx20 avatar cx20 commented on June 10, 2024

@redcamel Thanks for fixing. However, I got an error with the Triangle sample.

https://cx20.github.io/webgpu-test/examples/redgpu/triangle/index.html

BaseMaterial.js:22 
Uncaught (in promise) TypeError: Failed to execute 'createBindGroupLayout' on 'GPUDevice': required member entries is undefined.
    at makeUniformBindLayout (BaseMaterial.js:22)
    at new BaseMaterial (BaseMaterial.js:63)
    at new VertexColorMaterial (index.js:37)
    at RedGPUContext.<anonymous> (index.js:90)
    at RedGPUContext.js:166
uniformsBindGroupLayoutDescriptor
 {bindings: Array(0)}
  bindings: Array(0)

Perhaps the bindings needs to be changed to entries,.

from redgpu.

cx20 avatar cx20 commented on June 10, 2024

@redcamel Sorry. It was my mistake. After fixing the sample as you say, it now works with Chrome Canary.

from redgpu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.