MCPcopy Create free account
hub / github.com/carbonengine/trinity / GetPlatformIdString

Function GetPlatformIdString

shadercompiler/Platforms.h:64–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64inline const char* GetPlatformIdString( Platform platform )
65{
66 switch( platform )
67 {
68 case PLATFORM_DX11:
69 return "2";
70 case PLATFORM_DX12:
71 return "6";
72 case PLATFORM_METAL:
73 return "10";
74 default:
75 return "INVALID";
76 }
77}
78
79inline Platform ParsePlatform( const char* name )
80{

Callers 2

CompileEffectMethod · 0.85
ParsePlatformFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected