Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about wgpu-rs

Read more about wgpu-rs

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 - wgpu-rs

wgpu Compute Write Direct to Surface Texture View

I am relatively new to using gpu apis, even newer to wgpu, and wanted to mess around with compute shaders drawing to a surface. However, it seems that this is not allowed directly? During run time upo...
test-img

BayL

rust

graphics

compute-shader

wgpu-rs

Votes: 0

Answers: 2

Latest Answer

The compute shader cannot write to surface texture directly, that is the responsibility of the fragment shader. Since swapchain uses double or multi-buffering technology, the surface texture changes f...
test-img

Jinlei Li

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