| 59 | } // namespace HLSL |
| 60 | |
| 61 | VectorFieldRenderer::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 | |
| 76 | static constexpr char DefaultPSMain[] = R"( |
| 77 | void main(in float4 Pos : SV_Position, |
nothing calls this directly
no outgoing calls
no test coverage detected