| 1494 | } |
| 1495 | |
| 1496 | std::string PBR_Renderer::GetPSOutputStruct(PSO_FLAGS PSOFlags) |
| 1497 | { |
| 1498 | // struct PSOutput |
| 1499 | // { |
| 1500 | // float4 Color : SV_Target0; |
| 1501 | // float4 CustomData : SV_Target1; |
| 1502 | // }; |
| 1503 | |
| 1504 | std::stringstream ss; |
| 1505 | ss << "struct PSOutput" << std::endl |
| 1506 | << "{" << std::endl |
| 1507 | << " float4 Color : SV_Target0;" << std::endl; |
| 1508 | if (PSOFlags & PSO_FLAG_ENABLE_CUSTOM_DATA_OUTPUT) |
| 1509 | { |
| 1510 | ss << " float4 CustomData : SV_Target1;" << std::endl; |
| 1511 | } |
| 1512 | ss << "};" << std::endl; |
| 1513 | return ss.str(); |
| 1514 | } |
| 1515 | |
| 1516 | static constexpr char DefaultPSMainFooter[] = R"( |
| 1517 | PSOutput PSOut; |
nothing calls this directly
no outgoing calls
no test coverage detected