forked from Dynamitos/Seele
Descriptors now work in metal hopefully
This commit is contained in:
1 parent
49e94d3b74
commit
6417ab940d
45 files changed
+435
-476
No files matched your search
@@ -116,15 +116,16 @@ void Seele::beginCompilation(const ShaderCompilationInfo& info, SlangCompileTarg
|
||||
for (size_t i = 0; i < signature->getParameterCount(); ++i) {
|
||||
auto param = signature->getParameterByIndex(i);
|
||||
layout->addMapping(param->getName(), param->getBindingIndex());
|
||||
std::cout << param->getName() << ": " << param->getBindingIndex() << std::endl;
|
||||
}
|
||||
|
||||
// workaround
|
||||
layout->addMapping("pVertexData", 1);
|
||||
layout->addMapping("pMaterial", 4);
|
||||
layout->addMapping("pLightEnv", 3);
|
||||
layout->addMapping("pRayTracingParams", 5);
|
||||
layout->addMapping("pScene", 2);
|
||||
layout->addMapping("pWaterMaterial", 1);
|
||||
//layout->addMapping("pVertexData", 1);
|
||||
//layout->addMapping("pMaterial", 4);
|
||||
//layout->addMapping("pLightEnv", 3);
|
||||
//layout->addMapping("pRayTracingParams", 5);
|
||||
//layout->addMapping("pScene", 2);
|
||||
//layout->addMapping("pWaterMaterial", 1);
|
||||
}
|
||||
|
||||
Pair<Slang::ComPtr<slang::IBlob>, std::string> Seele::generateShader(const ShaderCreateInfo& createInfo) {
|
||||
|
||||
Reference in new issue
Block a user