MCPcopy Create free account
hub / github.com/DiligentGraphics/DiligentFX / GetPSOutputStruct

Method GetPSOutputStruct

PBR/src/PBR_Renderer.cpp:1496–1514  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1494}
1495
1496std::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
1516static constexpr char DefaultPSMainFooter[] = R"(
1517 PSOutput PSOut;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected