| 642 | } |
| 643 | |
| 644 | bool DoesProfileMatchStage( const InlineString& profile, InputStageType stage ) |
| 645 | { |
| 646 | if( profile == MakeInlineString( "" ) ) |
| 647 | { |
| 648 | return true; |
| 649 | } |
| 650 | switch( stage ) |
| 651 | { |
| 652 | case VERTEX_STAGE: |
| 653 | return profile == MakeInlineString( "vs" ); |
| 654 | case PIXEL_STAGE: |
| 655 | return profile == MakeInlineString( "ps" ); |
| 656 | case COMPUTE_STAGE: |
| 657 | return profile == MakeInlineString( "cs" ); |
| 658 | case GEOMETRY_STAGE: |
| 659 | return profile == MakeInlineString( "gs" ); |
| 660 | case HULL_STAGE: |
| 661 | return profile == MakeInlineString( "hs" ); |
| 662 | case DOMAIN_STAGE: |
| 663 | return profile == MakeInlineString( "ds" ); |
| 664 | default: |
| 665 | return false; |
| 666 | } |
| 667 | } |
| 668 | |
| 669 | int AllocateRegister( std::set<int>& set ) |
| 670 | { |
no test coverage detected