MCPcopy Create free account
hub / github.com/baldurk/renderdoc / GetSectionCount

Method GetSectionCount

renderdoc/core/remote_server.cpp:1936–1965  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1934}
1935
1936int RemoteServer::GetSectionCount()
1937{
1938 if(!Connected())
1939 return 0;
1940
1941 {
1942 WRITE_DATA_SCOPE();
1943 SCOPED_SERIALISE_CHUNK(RemoteServerPacket::GetSectionCount);
1944 }
1945
1946 int count = 0;
1947
1948 {
1949 READ_DATA_SCOPE();
1950 RemoteServerPacket type = ser.ReadChunk<RemoteServerPacket>();
1951
1952 if(type == RemoteServerPacket::GetSectionCount)
1953 {
1954 SERIALISE_ELEMENT(count);
1955 }
1956 else
1957 {
1958 RDCERR("Unexpected response to GetSectionCount");
1959 }
1960
1961 ser.EndChunk();
1962 }
1963
1964 return count;
1965}
1966
1967int RemoteServer::FindSectionByName(const rdcstr &name)
1968{

Callers 1

ExecuteMethod · 0.45

Calls 1

EndChunkMethod · 0.80

Tested by

no test coverage detected