mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-04-11 20:28:59 +02:00
[vk, spir-v] Adding decoration for NonWritable buffers if vertexPipelineStoresAndAtomics isn't available
This commit is contained in:
parent
a65552af38
commit
ba5bb52c11
1 changed files with 3 additions and 0 deletions
|
|
@ -315,6 +315,9 @@ void DefineSsbos(EmitContext& ctx, StorageTypeDefinition& type_def,
|
|||
ctx.Decorate(id, spv::Decoration::Binding, binding);
|
||||
ctx.Decorate(id, spv::Decoration::DescriptorSet, 0U);
|
||||
ctx.Name(id, fmt::format("ssbo{}", index));
|
||||
if (!desc.is_written) {
|
||||
ctx.Decorate(id, spv::Decoration::NonWritable);
|
||||
}
|
||||
if (ctx.profile.supported_spirv >= 0x00010400) {
|
||||
ctx.interfaces.push_back(id);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue