[vk, SPIR-V] Various changes in an attempt to fix MH on Android
This commit is contained in:
parent
eb98fcd8ab
commit
d6551b049c
10 changed files with 287 additions and 44 deletions
|
@ -1,3 +1,6 @@
|
|||
// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
|
@ -35,6 +38,12 @@ enum class TextureType : u32 {
|
|||
};
|
||||
constexpr u32 NUM_TEXTURE_TYPES = 9;
|
||||
|
||||
enum class TextureComponentType : u32 {
|
||||
Float,
|
||||
Sint,
|
||||
Uint,
|
||||
};
|
||||
|
||||
enum class TexturePixelFormat {
|
||||
A8B8G8R8_UNORM,
|
||||
A8B8G8R8_SNORM,
|
||||
|
@ -174,7 +183,9 @@ struct StorageBufferDescriptor {
|
|||
};
|
||||
|
||||
struct TextureBufferDescriptor {
|
||||
bool has_secondary;
|
||||
TextureComponentType component_type{TextureComponentType::Float};
|
||||
u8 component_bit_size{};
|
||||
bool has_secondary{};
|
||||
u32 cbuf_index;
|
||||
u32 cbuf_offset;
|
||||
u32 shift_left;
|
||||
|
@ -207,6 +218,8 @@ struct TextureDescriptor {
|
|||
bool is_depth;
|
||||
bool is_multisample;
|
||||
bool has_secondary;
|
||||
TextureComponentType component_type{TextureComponentType::Float};
|
||||
u8 component_bit_size{};
|
||||
u32 cbuf_index;
|
||||
u32 cbuf_offset;
|
||||
u32 shift_left;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue