Skip to content

Commit

Permalink
specialization: Fix buffer storage mistake.
Browse files Browse the repository at this point in the history
  • Loading branch information
squidbus committed Jan 9, 2025
1 parent 3a7b2bf commit 2df4f24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shader_recompiler/specialization.h
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 2df4f24

Please sign in to comment.