[GPU/Vulkan] Maybe fix minimum mip level. Probably breaks everything.
This commit is contained in:
@@ -327,7 +327,8 @@ struct TextureInfo {
|
||||
uint32_t height; // height in pixels
|
||||
uint32_t depth; // depth in layers
|
||||
uint32_t pitch; // pitch in blocks
|
||||
uint32_t mip_levels;
|
||||
uint32_t mip_min_level;
|
||||
uint32_t mip_max_level;
|
||||
bool is_tiled;
|
||||
bool has_packed_mips;
|
||||
|
||||
@@ -342,6 +343,8 @@ struct TextureInfo {
|
||||
return format_info()->type == FormatType::kCompressed;
|
||||
}
|
||||
|
||||
uint32_t mip_levels() const { return 1 + (mip_max_level - mip_min_level); }
|
||||
|
||||
static bool Prepare(const xenos::xe_gpu_texture_fetch_t& fetch,
|
||||
TextureInfo* out_info);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user