|
|
|
@ -46,7 +46,7 @@ std::string Name(const ImageBase& image) {
|
|
|
|
|
return "Invalid";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
std::string Name(const ImageViewBase& image_view) {
|
|
|
|
|
std::string Name(const ImageViewBase& image_view, GPUVAddr addr) {
|
|
|
|
|
const u32 width = image_view.size.width;
|
|
|
|
|
const u32 height = image_view.size.height;
|
|
|
|
|
const u32 depth = image_view.size.depth;
|
|
|
|
@ -56,23 +56,25 @@ std::string Name(const ImageViewBase& image_view) {
|
|
|
|
|
const std::string level = num_levels > 1 ? fmt::format(":{}", num_levels) : "";
|
|
|
|
|
switch (image_view.type) {
|
|
|
|
|
case ImageViewType::e1D:
|
|
|
|
|
return fmt::format("ImageView 1D {}{}", width, level);
|
|
|
|
|
return fmt::format("ImageView 1D 0x{:X} {}{}", addr, width, level);
|
|
|
|
|
case ImageViewType::e2D:
|
|
|
|
|
return fmt::format("ImageView 2D {}x{}{}", width, height, level);
|
|
|
|
|
return fmt::format("ImageView 2D 0x{:X} {}x{}{}", addr, width, height, level);
|
|
|
|
|
case ImageViewType::Cube:
|
|
|
|
|
return fmt::format("ImageView Cube {}x{}{}", width, height, level);
|
|
|
|
|
return fmt::format("ImageView Cube 0x{:X} {}x{}{}", addr, width, height, level);
|
|
|
|
|
case ImageViewType::e3D:
|
|
|
|
|
return fmt::format("ImageView 3D {}x{}x{}{}", width, height, depth, level);
|
|
|
|
|
return fmt::format("ImageView 3D 0x{:X} {}x{}x{}{}", addr, width, height, depth, level);
|
|
|
|
|
case ImageViewType::e1DArray:
|
|
|
|
|
return fmt::format("ImageView 1DArray {}{}|{}", width, level, num_layers);
|
|
|
|
|
return fmt::format("ImageView 1DArray 0x{:X} {}{}|{}", addr, width, level, num_layers);
|
|
|
|
|
case ImageViewType::e2DArray:
|
|
|
|
|
return fmt::format("ImageView 2DArray {}x{}{}|{}", width, height, level, num_layers);
|
|
|
|
|
return fmt::format("ImageView 2DArray 0x{:X} {}x{}{}|{}", addr, width, height, level,
|
|
|
|
|
num_layers);
|
|
|
|
|
case ImageViewType::CubeArray:
|
|
|
|
|
return fmt::format("ImageView CubeArray {}x{}{}|{}", width, height, level, num_layers);
|
|
|
|
|
return fmt::format("ImageView CubeArray 0x{:X} {}x{}{}|{}", addr, width, height, level,
|
|
|
|
|
num_layers);
|
|
|
|
|
case ImageViewType::Rect:
|
|
|
|
|
return fmt::format("ImageView Rect {}x{}{}", width, height, level);
|
|
|
|
|
return fmt::format("ImageView Rect 0x{:X} {}x{}{}", addr, width, height, level);
|
|
|
|
|
case ImageViewType::Buffer:
|
|
|
|
|
return fmt::format("BufferView {}", width);
|
|
|
|
|
return fmt::format("BufferView 0x{:X} {}", addr, width);
|
|
|
|
|
}
|
|
|
|
|
return "Invalid";
|
|
|
|
|
}
|
|
|
|
|