From 34067190522816fee4a3b6aaa4549cad9303de84 Mon Sep 17 00:00:00 2001 From: Adam Sawicki Date: Sun, 14 Jan 2024 20:31:17 +0100 Subject: [PATCH] GpuMemDumpVis: Fixed VK_IMAGE_USAGE_STORAGE_BIT to be treated like COLOR_ATTACHMENT --- tools/GpuMemDumpVis/GpuMemDumpVis.py | 2 +- tools/GpuMemDumpVis/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/GpuMemDumpVis/GpuMemDumpVis.py b/tools/GpuMemDumpVis/GpuMemDumpVis.py index d530567..2189e63 100644 --- a/tools/GpuMemDumpVis/GpuMemDumpVis.py +++ b/tools/GpuMemDumpVis/GpuMemDumpVis.py @@ -159,7 +159,7 @@ def TypeToColor(type, usage): elif type == 'IMAGE_OPTIMAL': if (usage & 0x20) != 0: # DEPTH_STENCIL_ATTACHMENT return 246, 128, 255, 255 # Pink - elif (usage & 0xD0) != 0: # INPUT_ATTACHMENT | TRANSIENT_ATTACHMENT | COLOR_ATTACHMENT + elif (usage & 0xD8) != 0: # INPUT_ATTACHMENT | TRANSIENT_ATTACHMENT | COLOR_ATTACHMENT | STORAGE return 179, 179, 255, 255 # Blue elif (usage & 0x4) != 0: # SAMPLED return 0, 255, 255, 255 # Aqua diff --git a/tools/GpuMemDumpVis/README.md b/tools/GpuMemDumpVis/README.md index 082e8f2..afcda05 100644 --- a/tools/GpuMemDumpVis/README.md +++ b/tools/GpuMemDumpVis/README.md @@ -36,7 +36,7 @@ You can also use typical options: * ![Buffer 3](README_files/Legend_Buffer_3.png "Buffer 3") Buffer with usage containing UNIFORM_BUFFER or UNIFORM_TEXEL_BUFFER (Vulkan). * ![Buffer 4](README_files/Legend_Buffer_4.png "Buffer 4") Other buffer. * ![Image 1](README_files/Legend_Image_1.png "Image 1") Image with OPTIMAL tiling and usage containing DEPTH_STENCIL_ATTACHMENT (Vulkan) or a texture with usage containing D3D12_RESOURCE_FLAG_ALLOW_DEPTH_STENCIL (D3D12). -* ![Image 2](README_files/Legend_Image_2.png "Image 2") Image with OPTIMAL tiling and usage containing INPUT_ATTACHMENT, TRANSIENT_ATTACHMENT or COLOR_ATTACHMENT (Vulkan), or a texture with usage containing D3D12_RESOURCE_FLAG_ALLOW_RENDER_TARGET or D3D12_RESOURCE_FLAG_ALLOW_UNORDERED_ACCESS (D3D12). +* ![Image 2](README_files/Legend_Image_2.png "Image 2") Image with OPTIMAL tiling and usage containing INPUT_ATTACHMENT, TRANSIENT_ATTACHMENT, COLOR_ATTACHMENT, or STORAGE (Vulkan), or a texture with usage containing D3D12_RESOURCE_FLAG_ALLOW_RENDER_TARGET or D3D12_RESOURCE_FLAG_ALLOW_UNORDERED_ACCESS (D3D12). * ![Image 3](README_files/Legend_Image_3.png "Image 3") Image with OPTIMAL tiling and usage containing SAMPLED (Vulkan) or a texture with usage not containing D3D12_RESOURCE_FLAG_DENY_SHARED_RESOURCE (D3D12). * ![Image 4](README_files/Legend_Image_4.png "Image 4") Other image with OPTIMAL tiling (Vulkan) or a texture (D3D12). * ![Image Linear](README_files/Legend_Image_Linear.png "Image Linear") Image with LINEAR tiling (Vulkan).