MCPcopy Create free account
hub / github.com/aliasIsolation/aliasIsolation / addVertexShader

Function addVertexShader

src/dll/shaderRegistry.cpp:65–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63 }
64
65 ShaderHandle addVertexShader(std::string path) {
66 path = getDataFilePath("shaders\\" + path, true);
67
68 mutex.lock();
69 {
70 auto existing = vsPathToHandle.find(path);
71 if (existing != vsPathToHandle.end()) {
72 mutex.unlock();
73 return existing->second;
74 }
75 }
76 ShaderHandle handle(shaderReloadInfo.size());
77 shaderReloadInfo.push_back(ShaderReloadInfo { path, ShaderType::Vertex, FILETIME { 0, 0 } });
78 loadedShaders.push_back(CompiledShader { nullptr });
79 vsPathToHandle[path] = handle;
80 mutex.unlock();
81 return handle;
82 }
83
84 ShaderHandle addComputeShader(std::string path) {
85 path = getDataFilePath("shaders\\" + path, true);

Callers 1

CreateVertexShader_hookFunction · 0.85

Calls 1

getDataFilePathFunction · 0.85

Tested by

no test coverage detected