Use rdcfixedarray in parameters for functions instead of C arrays

* This maps better to tuples in python
This commit is contained in:
baldurk
2020-12-15 22:52:38 +00:00
parent 2b0f9c2eba
commit 3aaccc4fda
25 changed files with 101 additions and 65 deletions
+4 -3
View File
@@ -133,7 +133,8 @@ public:
return m_Proxy->GetMinMax(m_TextureID, sub, typeCast, minval, maxval);
}
bool GetHistogram(ResourceId texid, const Subresource &sub, CompType typeCast, float minval,
float maxval, bool channels[4], rdcarray<uint32_t> &histogram)
float maxval, const rdcfixedarray<bool, 4> &channels,
rdcarray<uint32_t> &histogram)
{
return m_Proxy->GetHistogram(m_TextureID, sub, typeCast, minval, maxval, channels, histogram);
}
@@ -283,8 +284,8 @@ public:
{
return new ShaderDebugTrace();
}
ShaderDebugTrace *DebugThread(uint32_t eventId, const uint32_t groupid[3],
const uint32_t threadid[3])
ShaderDebugTrace *DebugThread(uint32_t eventId, const rdcfixedarray<uint32_t, 3> &groupid,
const rdcfixedarray<uint32_t, 3> &threadid)
{
return new ShaderDebugTrace();
}