mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-12 13:00:32 +00:00
Remove redundant numSubresources struct member that was just mips*slices
This commit is contained in:
@@ -307,7 +307,6 @@ namespace renderdoc
|
||||
public bool cubemap;
|
||||
public UInt32 mips;
|
||||
public UInt32 arraysize;
|
||||
public UInt32 numSubresources;
|
||||
public TextureCreationFlags creationFlags;
|
||||
public UInt32 msQual, msSamp;
|
||||
public UInt64 byteSize;
|
||||
|
||||
@@ -52,7 +52,6 @@ namespace renderdocui.Windows.Dialogs
|
||||
tex.cubemap = true;
|
||||
tex.msSamp = 2;
|
||||
tex.mips = 5;
|
||||
tex.numSubresources = tex.arraysize * tex.mips;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -115,7 +114,7 @@ namespace renderdocui.Windows.Dialogs
|
||||
|
||||
String[] cubeFaces = { "X+", "X-", "Y+", "Y-", "Z+", "Z-" };
|
||||
|
||||
UInt32 numSlices = (Math.Max(1, tex.depth) * tex.numSubresources) / tex.mips;
|
||||
UInt32 numSlices = Math.Max(tex.arraysize, tex.depth);
|
||||
|
||||
sliceSelect.Items.Clear();
|
||||
|
||||
|
||||
@@ -1723,7 +1723,7 @@ namespace renderdocui.Windows
|
||||
|
||||
sliceFace.Items.Clear();
|
||||
|
||||
if (tex.numSubresources == tex.mips && tex.depth <= 1)
|
||||
if (tex.arraysize == 1 && tex.depth <= 1)
|
||||
{
|
||||
sliceFace.Enabled = false;
|
||||
}
|
||||
@@ -1735,7 +1735,7 @@ namespace renderdocui.Windows
|
||||
|
||||
String[] cubeFaces = { "X+", "X-", "Y+", "Y-", "Z+", "Z-" };
|
||||
|
||||
UInt32 numSlices = (Math.Max(1, tex.depth) * tex.numSubresources) / tex.mips;
|
||||
UInt32 numSlices = tex.arraysize;
|
||||
|
||||
// for 3D textures, display the number of slices at this mip
|
||||
if(tex.depth > 1)
|
||||
|
||||
Reference in New Issue
Block a user