| 1002 | } |
| 1003 | |
| 1004 | void PrintStageInfo( YamlOutput& listing, const StageData& stage, const EffectData& result ) |
| 1005 | { |
| 1006 | if( !listing.enabled() ) |
| 1007 | { |
| 1008 | return; |
| 1009 | } |
| 1010 | if( !stage.constants.empty() ) |
| 1011 | { |
| 1012 | listing.literal( "constants" ).list(); |
| 1013 | for( auto it = stage.constants.begin(); it != stage.constants.end(); ++it ) |
| 1014 | { |
| 1015 | listing.dict() |
| 1016 | .literal( "name" ) |
| 1017 | .literal( g_stringTable.GetString( it->name ) ) |
| 1018 | .literal( "constantType" ) |
| 1019 | .literal( ToString( it->type ) ) |
| 1020 | // .literal( "offset" ).literal( it->offset ) |
| 1021 | // .literal( "size" ).literal( it->size ) |
| 1022 | .literal( "dimension" ) |
| 1023 | .literal( it->dimension ) |
| 1024 | .literal( "arrayElements" ) |
| 1025 | .literal( it->elements ) |
| 1026 | .literal( "autoregister" ) |
| 1027 | .literal( it->isAutoregister ) |
| 1028 | .literal( "sRGB" ) |
| 1029 | .literal( it->isSRGB ); |
| 1030 | auto annotations = result.annotations.find( it->name ); |
| 1031 | if( annotations != result.annotations.end() ) |
| 1032 | { |
| 1033 | PrintAnnotations( listing, annotations->second.annotations ); |
| 1034 | } |
| 1035 | listing.end(); |
| 1036 | } |
| 1037 | listing.end(); |
| 1038 | } |
| 1039 | if( !stage.samplers.empty() ) |
| 1040 | { |
| 1041 | listing.literal( "samplers" ).list(); |
| 1042 | for( auto it = stage.samplers.begin(); it != stage.samplers.end(); ++it ) |
| 1043 | { |
| 1044 | listing.dict() |
| 1045 | .literal( "register" ) |
| 1046 | .literal( it->first ) |
| 1047 | .literal( "name" ) |
| 1048 | .literal( g_stringTable.GetString( it->second.name ) ) |
| 1049 | .literal( "filter" ) |
| 1050 | .literal( int( it->second.filter ) ) |
| 1051 | .literal( "comparison" ) |
| 1052 | .literal( int( it->second.comparison ) ) |
| 1053 | .literal( "minFilter" ) |
| 1054 | .literal( int( it->second.minFilter ) ) |
| 1055 | .literal( "magFilter" ) |
| 1056 | .literal( int( it->second.magFilter ) ) |
| 1057 | .literal( "mipFilter" ) |
| 1058 | .literal( int( it->second.mipFilter ) ) |
| 1059 | .literal( "addressU" ) |
| 1060 | .literal( int( it->second.addressU ) ) |
| 1061 | .literal( "addressV" ) |
no test coverage detected