mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-04-10 09:48:58 +02:00
spirv log cleanup 1
This commit is contained in:
parent
19e2dba35a
commit
2ba40a452f
1 changed files with 7 additions and 0 deletions
|
|
@ -1342,6 +1342,9 @@ void EmitContext::DefineImageBuffers(const Info& info, u32& binding) {
|
|||
const Id id{AddGlobalVariable(pointer_type, spv::StorageClass::UniformConstant)};
|
||||
Decorate(id, spv::Decoration::Binding, binding);
|
||||
Decorate(id, spv::Decoration::DescriptorSet, 0U);
|
||||
if (format == spv::ImageFormat::Unknown) {
|
||||
Decorate(id, spv::Decoration::NonReadable);
|
||||
}
|
||||
Name(id, NameOf(stage, desc, "imgbuf"));
|
||||
image_buffers.push_back({
|
||||
.id = id,
|
||||
|
|
@ -1398,6 +1401,10 @@ void EmitContext::DefineImages(const Info& info, u32& binding, u32& scaling_inde
|
|||
const Id id{AddGlobalVariable(pointer_type, spv::StorageClass::UniformConstant)};
|
||||
Decorate(id, spv::Decoration::Binding, binding);
|
||||
Decorate(id, spv::Decoration::DescriptorSet, 0U);
|
||||
const spv::ImageFormat format{GetImageFormat(desc.format)};
|
||||
if (format == spv::ImageFormat::Unknown) {
|
||||
Decorate(id, spv::Decoration::NonReadable);
|
||||
}
|
||||
Name(id, NameOf(stage, desc, "img"));
|
||||
images.push_back({
|
||||
.id = id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue