| 10 | using namespace gte; |
| 11 | |
| 12 | VertexColorEffect::VertexColorEffect(std::shared_ptr<ProgramFactory> const& factory) |
| 13 | { |
| 14 | int32_t api = factory->GetAPI(); |
| 15 | mProgram = factory->CreateFromSources(*msVSSource[api], *msPSSource[api], ""); |
| 16 | if (mProgram) |
| 17 | { |
| 18 | mProgram->GetVertexShader()->Set("PVWMatrix", mPVWMatrixConstant); |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | void VertexColorEffect::SetPVWMatrixConstant(std::shared_ptr<ConstantBuffer> const& buffer) |
| 23 | { |
nothing calls this directly
no test coverage detected