| 53 | } |
| 54 | |
| 55 | std::shared_ptr<ComputeProgram> ProgramFactory::CreateFromFile( |
| 56 | std::string const& csFile) |
| 57 | { |
| 58 | LogAssert(csFile != "", "A program must have a compute shader."); |
| 59 | |
| 60 | std::string csSource = GetStringFromFile(csFile); |
| 61 | LogAssert(csSource != "", "Empty compute shader source string."); |
| 62 | |
| 63 | return CreateFromNamedSource(csFile, csSource); |
| 64 | } |
| 65 | |
| 66 | std::shared_ptr<ComputeProgram> ProgramFactory::CreateFromSource(std::string const& csSource) |
| 67 | { |
no outgoing calls