mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-29 13:20:54 +00:00
Remove rdctype namespace. Rename rdctype::str -> rdcstr, rdcarray, etc
* Since these types are more prevalent than originally designed, it makes more sense to remove the namespace for ease of typing/naming. * Also add a specialised type 'bytebuf' for an array of bytes. * This makes mapping easier to SWIG since there's no special casing for namespaced arrays. Especially so for nested cases like rdctype::array<rdctype::str> -> rdcarray<rdcstr>
This commit is contained in:
@@ -108,8 +108,8 @@ struct VulkanRegisterCommand : public Command
|
||||
void VerifyVulkanLayer(const GlobalEnvironment &env, int argc, char *argv[])
|
||||
{
|
||||
VulkanLayerFlags flags = VulkanLayerFlags::NoFlags;
|
||||
rdctype::array<rdctype::str> myJSONs;
|
||||
rdctype::array<rdctype::str> otherJSONs;
|
||||
rdcarray<rdcstr> myJSONs;
|
||||
rdcarray<rdcstr> otherJSONs;
|
||||
|
||||
bool needUpdate = RENDERDOC_NeedVulkanLayerRegistration(&flags, &myJSONs, &otherJSONs);
|
||||
|
||||
@@ -138,20 +138,20 @@ void VerifyVulkanLayer(const GlobalEnvironment &env, int argc, char *argv[])
|
||||
const bool registerAll = bool(flags & VulkanLayerFlags::RegisterAll);
|
||||
const bool updateAllowed = bool(flags & VulkanLayerFlags::UpdateAllowed);
|
||||
|
||||
for(const rdctype::str &j : otherJSONs)
|
||||
for(const rdcstr &j : otherJSONs)
|
||||
std::cerr << (updateAllowed ? "Unregister/update: " : "Unregister: ") << j.c_str() << std::endl;
|
||||
|
||||
if(!(flags & VulkanLayerFlags::ThisInstallRegistered))
|
||||
{
|
||||
if(registerAll)
|
||||
{
|
||||
for(const rdctype::str &j : myJSONs)
|
||||
for(const rdcstr &j : myJSONs)
|
||||
std::cerr << (updateAllowed ? "Register/update: " : "Register: ") << j.c_str() << std::endl;
|
||||
}
|
||||
else
|
||||
{
|
||||
std::cerr << (updateAllowed ? "Register one of:" : "Register/update one of:") << std::endl;
|
||||
for(const rdctype::str &j : myJSONs)
|
||||
for(const rdcstr &j : myJSONs)
|
||||
std::cerr << " -- " << j.c_str() << "\n";
|
||||
}
|
||||
}
|
||||
@@ -265,7 +265,7 @@ void DisplayRendererPreview(IReplayController *renderer, TextureDisplay &display
|
||||
|
||||
xcb_map_window(connection, window);
|
||||
|
||||
rdctype::array<WindowingSystem> systems = renderer->GetSupportedWindowSystems();
|
||||
rdcarray<WindowingSystem> systems = renderer->GetSupportedWindowSystems();
|
||||
|
||||
bool xcb = false, xlib = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user