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

Function MslTextureTemplateType

shadercompiler/OutputHLSL.cpp:415–426  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

413}
414
415Type MslTextureTemplateType( const Type& textureType )
416{
417 if( textureType.templateParameter )
418 {
419 // Metal expects type of only one texture component here.
420 return ScalarType( *textureType.templateParameter );
421 }
422 else
423 {
424 return TypeFromTokenType( OP_FLOAT );
425 }
426}
427
428void PrintTypeMSL( CodeStream& os, Type type )
429{

Callers 1

PrintTypeMSLFunction · 0.85

Calls 2

ScalarTypeFunction · 0.85
TypeFromTokenTypeFunction · 0.85

Tested by

no test coverage detected