| 679 | |
| 680 | |
| 681 | void PrintStageInfo( YamlOutput& listing, const StageData& stage, const EffectData& result ) |
| 682 | { |
| 683 | if( !listing.enabled() ) |
| 684 | { |
| 685 | return; |
| 686 | } |
| 687 | if( !stage.constants.empty() ) |
| 688 | { |
| 689 | listing.literal( "constants" ).list(); |
| 690 | for( auto it = stage.constants.begin(); it != stage.constants.end(); ++it ) |
| 691 | { |
| 692 | listing.dict() |
| 693 | .literal( "name" ) |
| 694 | .literal( g_stringTable.GetString( it->name ) ) |
| 695 | .literal( "constantType" ) |
| 696 | .literal( ToString( it->type ) ) |
| 697 | .literal( "dimension" ) |
| 698 | .literal( it->dimension ) |
| 699 | .literal( "arrayElements" ) |
| 700 | .literal( it->elements ) |
| 701 | .literal( "autoregister" ) |
| 702 | .literal( it->isAutoregister ) |
| 703 | .literal( "sRGB" ) |
| 704 | .literal( it->isSRGB ); |
| 705 | auto annotations = result.annotations.find( it->name ); |
| 706 | if( annotations != result.annotations.end() ) |
| 707 | { |
| 708 | PrintAnnotations( listing, annotations->second.annotations ); |
| 709 | } |
| 710 | listing.end(); |
| 711 | } |
| 712 | listing.end(); |
| 713 | } |
| 714 | if( !stage.samplers.empty() ) |
| 715 | { |
| 716 | listing.literal( "samplers" ).list(); |
| 717 | for( auto it = stage.samplers.begin(); it != stage.samplers.end(); ++it ) |
| 718 | { |
| 719 | listing.dict() |
| 720 | .literal( "register" ) |
| 721 | .literal( it->first ) |
| 722 | .literal( "name" ) |
| 723 | .literal( g_stringTable.GetString( it->second.name ) ) |
| 724 | .literal( "filter" ) |
| 725 | .literal( int( it->second.filter ) ) |
| 726 | .literal( "comparison" ) |
| 727 | .literal( int( it->second.comparison ) ) |
| 728 | .literal( "minFilter" ) |
| 729 | .literal( int( it->second.minFilter ) ) |
| 730 | .literal( "magFilter" ) |
| 731 | .literal( int( it->second.magFilter ) ) |
| 732 | .literal( "mipFilter" ) |
| 733 | .literal( int( it->second.mipFilter ) ) |
| 734 | .literal( "addressU" ) |
| 735 | .literal( int( it->second.addressU ) ) |
| 736 | .literal( "addressV" ) |
| 737 | .literal( int( it->second.addressV ) ) |
| 738 | .literal( "addressW" ) |
no test coverage detected