MCPcopy Create free account
hub / github.com/davideberly/GeometricTools / CreateFromFile

Method CreateFromFile

GTE/Graphics/ProgramFactory.cpp:55–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55std::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
66std::shared_ptr<ComputeProgram> ProgramFactory::CreateFromSource(std::string const& csSource)
67{

Callers 15

FindRootsGPUMethod · 0.45
ExecuteMethod · 0.45
CreateWeightsShaderMethod · 0.45
GpuShortestPathMethod · 0.45
ExecuteMethod · 0.45
SMBlurEffectMethod · 0.45
CreateSceneMethod · 0.45
ReflectNestedStructMethod · 0.45
ReflectSimpleBuffersMethod · 0.45
ReflectAppendConsumeMethod · 0.45
TestSubnormalsMethod · 0.45

Calls

no outgoing calls

Tested by 3

CreateWeightsShaderMethod · 0.36
GpuShortestPathMethod · 0.36
TestSubnormalsMethod · 0.36