mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-05-15 01:56:59 +02:00
[gl, vk, spv] Added component type handling for texture buffers and resolve pixel format variants
This commit is contained in:
parent
69f6a0573c
commit
7786d69036
10 changed files with 372 additions and 5 deletions
|
|
@ -696,6 +696,7 @@ void TexturePass(Environment& env, IR::Program& program, const HostTranslateInfo
|
|||
.secondary_shift_left = cbuf.secondary_shift_left,
|
||||
.count = cbuf.count,
|
||||
.size_shift = DESCRIPTOR_SIZE_SHIFT,
|
||||
.component_type = ReadTextureComponentType(env, cbuf),
|
||||
});
|
||||
} else {
|
||||
index = descriptors.Add(TextureDescriptor{
|
||||
|
|
|
|||
|
|
@ -194,6 +194,7 @@ struct TextureBufferDescriptor {
|
|||
u32 secondary_shift_left;
|
||||
u32 count;
|
||||
u32 size_shift;
|
||||
SamplerComponentType component_type;
|
||||
|
||||
auto operator<=>(const TextureBufferDescriptor&) const = default;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue