mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-21 21:26:12 +00:00
Use view format instead of resource format for Vulkan
* Since the Vulkan views are tighter and more strictly specified, we can always safely use the view format (in the non-mutable case it must exactly match the underlying resource's format).
This commit is contained in:
@@ -61,6 +61,9 @@ namespace renderdoc
|
||||
public string SamplerName;
|
||||
public bool customSamplerName;
|
||||
|
||||
[CustomMarshalAs(CustomUnmanagedType.CustomClass)]
|
||||
public ResourceFormat viewfmt;
|
||||
|
||||
public UInt32 baseMip;
|
||||
public UInt32 baseLayer;
|
||||
|
||||
@@ -370,6 +373,9 @@ namespace renderdoc
|
||||
public ResourceId view;
|
||||
public ResourceId img;
|
||||
|
||||
[CustomMarshalAs(CustomUnmanagedType.CustomClass)]
|
||||
public ResourceFormat viewfmt;
|
||||
|
||||
public UInt32 baseMip;
|
||||
public UInt32 baseArray;
|
||||
};
|
||||
|
||||
@@ -620,7 +620,7 @@ namespace renderdocui.Windows.PipelineState
|
||||
node = parentNodes.Add(new object[] {
|
||||
"", bindset, slotname, typename, name,
|
||||
dim,
|
||||
format,
|
||||
descriptorBind.viewfmt.ToString(),
|
||||
arraydim,
|
||||
});
|
||||
|
||||
@@ -1450,7 +1450,7 @@ namespace renderdocui.Windows.PipelineState
|
||||
{
|
||||
UInt32 w = 1, h = 1, d = 1;
|
||||
UInt32 a = 1;
|
||||
string format = "Unknown";
|
||||
string format = p.viewfmt.ToString();
|
||||
string name = "Texture " + p.ToString();
|
||||
string typename = "Unknown";
|
||||
object tag = null;
|
||||
@@ -1471,7 +1471,6 @@ namespace renderdocui.Windows.PipelineState
|
||||
h = texs[t].height;
|
||||
d = texs[t].depth;
|
||||
a = texs[t].arraysize;
|
||||
format = texs[t].format.ToString();
|
||||
name = texs[t].name;
|
||||
typename = texs[t].resType.Str();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user