Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WGSL: Runtime-sized arrays not in 'storage' address space are being generated #5613

Open
aleino-nv opened this issue Nov 20, 2024 · 1 comment
Assignees
Labels
goal:forward looking Feature needed at a later date, not connected to a specific use case.

Comments

@aleino-nv
Copy link
Collaborator

Affected tests:

  • tests/autodiff/diff-ptr-type-array.slang

Example output:

WGPU error: Error while parsing WGSL: :8:67 error: runtime-sized arrays can only be used in the <storage> address space
fn MyPtrType_accumulate_0( this_0 : MyPtrType_0,  this_buffer_0 : array<f32>,  idx_0 : u32,  value_0 : f32)
                                                                  ^^^^^^^^^^

:8:51 note: while instantiating parameter this_buffer_0
fn MyPtrType_accumulate_0( this_0 : MyPtrType_0,  this_buffer_0 : array<f32>,  idx_0 : u32,  value_0 : f32)
                                                  ^^^^^^^^^^^^^


 - While validating [ShaderModuleDescriptor]
 - While calling [Device].CreateShaderModule([ShaderModuleDescriptor]).
@aleino-nv
Copy link
Collaborator Author

May be array of runtime-sized array/buffer and therefore out of scope.

@bmillsNV bmillsNV added the goal:forward looking Feature needed at a later date, not connected to a specific use case. label Nov 21, 2024
@bmillsNV bmillsNV added this to the Q4 2024 (Fall) milestone Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
goal:forward looking Feature needed at a later date, not connected to a specific use case.
Projects
None yet
Development

No branches or pull requests

2 participants