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

Method Get

GTE/Graphics/Shader.cpp:22–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20}
21
22int32_t Shader::Get(std::string const& name) const
23{
24 for (int32_t lookup = 0; lookup < NUM_LOOKUP_INDICES; ++lookup)
25 {
26 int32_t handle = 0;
27 for (auto const& data : mData[lookup])
28 {
29 if (name == data.name)
30 {
31 return handle;
32 }
33 ++handle;
34 }
35 }
36 return -1;
37}
38
39uint32_t Shader::GetConstantBufferSize(int32_t handle) const
40{

Callers 3

CompileMethod · 0.45
ShareMethod · 0.45
CompileShaderMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected