[D3D12] Align mipmap storage size to power of 2 when untiling

This commit is contained in:
Triang3l
2018-10-05 20:48:11 +03:00
parent 34946c57b0
commit 128ac2a3f9
46 changed files with 9921 additions and 9854 deletions

View File

@@ -281,9 +281,14 @@ class TextureCache {
uint32_t endianness;
// vec4 3.
// Block-aligned and, for mipmaps, power-of-two-aligned width and height.
uint32_t guest_storage_width_height[2];
uint32_t guest_format;
uint32_t padding_3;
// vec4 4.
// Offset within the packed mip for small mips.
uint32_t guest_mip_offset[3];
uint32_t guest_format;
static constexpr uint32_t kGuestPitchTiled = UINT32_MAX;
};