| 20 | } |
| 21 | |
| 22 | int32_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 | |
| 39 | uint32_t Shader::GetConstantBufferSize(int32_t handle) const |
| 40 | { |
no outgoing calls
no test coverage detected