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

Function DimensionString

renderdoc/driver/gl/gl_resources.cpp:858–866  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

856}
857
858static rdcstr DimensionString(int dimensions, GLint width, GLint height, GLint depth)
859{
860 if(dimensions == 1)
861 return StringFormat::Fmt("%d", width);
862 else if(dimensions == 2)
863 return StringFormat::Fmt("%dx%d", width, height);
864 else
865 return StringFormat::Fmt("%dx%dx%d", width, depth);
866}
867
868rdcstr GetTextureCompleteStatus(GLenum target, GLuint tex, GLuint sampler)
869{

Callers 1

GetTextureCompleteStatusFunction · 0.85

Calls 1

FmtFunction · 0.85

Tested by

no test coverage detected