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

Method VectorFieldRenderer

Components/src/VectorFieldRenderer.cpp:61–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59} // namespace HLSL
60
61VectorFieldRenderer::VectorFieldRenderer(const CreateInfo& CI) :
62 m_pDevice{CI.pDevice},
63 m_pStateCache{CI.pStateCache},
64 m_RTVFormats{CI.RTVFormats, CI.RTVFormats + CI.NumRenderTargets},
65 m_DSVFormat{CI.DSVFormat},
66 m_PSMainSource{CI.PSMainSource != nullptr ? CI.PSMainSource : ""},
67 m_PackMatrixRowMajor{CI.PackMatrixRowMajor},
68 m_AsyncShaders{CI.AsyncShaders}
69{
70 DEV_CHECK_ERR(m_pDevice != nullptr, "Device must not be null");
71
72 CreateUniformBuffer(m_pDevice, sizeof(HLSL::VectorFieldRenderAttribs), "Vector Field Render Attribs CB", &m_RenderAttribsCB);
73 VERIFY_EXPR(m_RenderAttribsCB != nullptr);
74}
75
76static constexpr char DefaultPSMain[] = R"(
77void main(in float4 Pos : SV_Position,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected