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

Method GetSupportedVertexInputs

Hydrogent/src/HnRenderPass.cpp:814–828  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

812}
813
814HnRenderPass::SupportedVertexInputsSetType HnRenderPass::GetSupportedVertexInputs(const HnMaterial* Material)
815{
816 SupportedVertexInputsSetType SupportedInputs{{pxr::HdTokens->points, pxr::HdTokens->normals, pxr::HdTokens->displayColor}};
817 if (Material != nullptr)
818 {
819 const auto& TexCoordSets = Material->GetTextureCoordinateSets();
820 for (const auto& TexCoordSet : TexCoordSets)
821 {
822 if (!TexCoordSet.PrimVarName.IsEmpty())
823 SupportedInputs.emplace(TexCoordSet.PrimVarName);
824 }
825 }
826
827 return SupportedInputs;
828}
829
830PBR_Renderer::PSO_FLAGS HnRenderPass::GetMaterialPSOFlags(const HnMaterial& Material)
831{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected