| 413 | } |
| 414 | |
| 415 | Type 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 | |
| 428 | void PrintTypeMSL( CodeStream& os, Type type ) |
| 429 | { |
no test coverage detected