Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about webgpu

Read more about webgpu

python (65.2k questions)

javascript (44.3k questions)

reactjs (22.7k questions)

java (20.8k questions)

c# (17.4k questions)

html (16.3k questions)

r (13.7k questions)

android (13k questions)

Questions - webgpu

A way to load .wglsl files in Typescript files using esbuild?

I'm using esbuild as a tool to bundle my Typescript code but i can't find a way to configure a loader for ".wgsl" files. Mi app.ts file : import shader from './shader.wgsl'; //webgpu logic ...
test-img

Zentyk

typescript

shader

esbuild

webgpu

Votes: 0

Answers: 3

Latest Answer

You want something like esbuild-plugin-glsl (which is a GLSL import plugin for esbuild, whereas ts-shader-loader is an import plugin for webpack).
test-img

Sean Vieira

Is it possible to index dynamically into a WebGPU storage buffer?

I'm trying write a WGSL shader that reads an octree that is stored in a storage buffer. The problem is, the compiler doesn't like the dynamic index I'm calculating to access leaves in the storage buff...
test-img

iLoch

rust

shader

webgpu

wgpu-rs

Votes: 0

Answers: 1

Latest Answer

Indexing into storage buffers is totally fine. What Naga doesn't like is this line: let cell = grid.cells[grid_index].data; ... because grid isn't a storage buffer, it's just a value "on the sta...
test-img

kvark

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved