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

Function GetTextureTypeName

shadercompiler/TextureFunctionConversionDX11.cpp:79–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79static const char* GetTextureTypeName( int textureType )
80{
81 switch( textureType )
82 {
83 case OP_TEXTURE1D:
84 return "1D";
85 case OP_TEXTURE2D:
86 return "2D";
87 case OP_TEXTURE3D:
88 return "3D";
89 case OP_TEXTURECUBE:
90 return "CUBE";
91 default:
92 return "";
93 }
94}
95
96static bool AssignTextureType( ParserState& state, Symbol* texture, int type, const ScannerToken& token )
97{

Callers 2

AssignTextureTypeFunction · 0.85
FindTextureToSamplerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected