KhronosGroup / KhronosGroup/Vulkan-Docs

Allow arrays sized with specialization constants in Buffer variables?

Open
#2,539 4 comments 0 reactions 1 assignee Claimed by @Tobski View on GitHub
Dominant language
JavaScript
Stars
3.3k
Forks
549
Avg merge
5d 5h
Merged PRs (30d)
2

Description

[If I understand the spec correctly](https://docs.vulkan.org/spec/latest/appendices/spirvenv.html#VUID-StandaloneSpirv-Function-04681), arrays sized with specialization constants cannot be used for Buffer variables except for some input and output variables. That is a bit surprising, and means structures containing such arrays cannot be read or written from Uniform or StorageBuffer memory. For PhysicalStorageBuffer you could work around it by looking for the elements after the struct, but that complicates things. Is there any particular reason for this restriction?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.