mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-24 23:46:41 +00:00
Add TextureViewer.GetChannelVisibility that returns a tuple
* This is more natural to access and use from python. The old function could probably be removed but since we also changed the name we'll keep it.
This commit is contained in:
@@ -981,6 +981,10 @@ struct ITextureViewerInvoker : UIThreadInvoker<ITextureViewer>
|
||||
{
|
||||
return InvokeRetFunction<uint32_t>(&ITextureViewer::GetChannelVisibilityBits);
|
||||
}
|
||||
rdcfixedarray<bool, 4> GetChannelVisibility()
|
||||
{
|
||||
return InvokeRetFunction<rdcfixedarray<bool, 4>>(&ITextureViewer::GetChannelVisibility);
|
||||
}
|
||||
void SetChannelVisibility(bool red, bool green, bool blue, bool alpha)
|
||||
{
|
||||
return InvokeVoidFunction(&ITextureViewer::SetChannelVisibility, red, green, blue, alpha);
|
||||
|
||||
Reference in New Issue
Block a user