specialization: Fix buffer storage mistake.

This commit is contained in:
squidbus 2025-01-08 17:52:26 -08:00
parent 3a7b2bf948
commit 2df4f24987

View File

@ -100,7 +100,7 @@ struct StageSpecialization {
ForEachSharp(binding, buffers, info->buffers,
[](auto& spec, const auto& desc, AmdGpu::Buffer sharp) {
spec.stride = sharp.GetStride();
spec.is_storage = desc.is_written;
spec.is_storage = desc.IsStorage(sharp);
if (!spec.is_storage) {
spec.size = sharp.GetSize();
}